icinga2/icinga/icingaapplication.h

31 lines
624 B
C++

#ifndef ICINGAAPPLICATION_H
#define ICINGAAPPLICATION_H
namespace icinga
{
class IcingaApplication : public Application
{
private:
ConnectionManager::Ptr m_ConnectionManager;
int ConfigObjectCreatedHandler(ConfigHiveEventArgs::Ptr ea);
int ConfigObjectRemovedHandler(ConfigHiveEventArgs::Ptr ea);
public:
typedef shared_ptr<IcingaApplication> Ptr;
typedef weak_ptr<IcingaApplication> WeakPtr;
IcingaApplication(void);
virtual int Main(const vector<string>& args);
void PrintUsage(const string& programPath);
virtual ConnectionManager::Ptr GetConnectionManager(void);
};
}
#endif /* ICINGAAPPLICATION_H */