2012-04-02 08:56:30 +02:00
|
|
|
#ifndef ICINGAAPPLICATION_H
|
|
|
|
#define ICINGAAPPLICATION_H
|
2012-03-31 16:29:53 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
class IcingaApplication : public Application
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
ConnectionManager::RefType m_ConnectionManager;
|
|
|
|
|
2012-04-01 09:30:38 +02:00
|
|
|
int ConfigObjectCreatedHandler(ConfigHiveEventArgs::RefType ea);
|
|
|
|
int ConfigObjectRemovedHandler(ConfigHiveEventArgs::RefType ea);
|
|
|
|
|
2012-03-31 16:29:53 +02:00
|
|
|
public:
|
|
|
|
typedef shared_ptr<IcingaApplication> RefType;
|
|
|
|
typedef weak_ptr<IcingaApplication> WeakRefType;
|
|
|
|
|
|
|
|
IcingaApplication(void);
|
|
|
|
|
|
|
|
virtual int Main(const vector<string>& args);
|
|
|
|
|
2012-04-02 13:09:33 +02:00
|
|
|
void PrintUsage(const string& programPath);
|
|
|
|
|
2012-03-31 16:29:53 +02:00
|
|
|
virtual ConnectionManager::RefType GetConnectionManager(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-02 08:56:30 +02:00
|
|
|
#endif /* ICINGAAPPLICATION_H */
|