3 |
|
|
4 |
#include <string> |
#include <string> |
5 |
|
|
|
|
|
6 |
//time_t is defines as long int ! //No need to include time.h |
//time_t is defines as long int ! //No need to include time.h |
7 |
|
|
8 |
class SmsCounter |
class SmsCounter |
23 |
|
|
24 |
bool isDaemon; |
bool isDaemon; |
25 |
bool isDebug; |
bool isDebug; |
26 |
|
bool daemonized; |
27 |
int uid; |
int uid; |
28 |
int gid; |
int gid; |
29 |
volatile bool mainContinue; |
volatile bool mainContinue; |
30 |
|
volatile bool reloadConfig; |
31 |
|
|
32 |
std::string configFilePath; |
std::string configFilePath; |
33 |
|
|
36 |
|
|
37 |
long int daemonStart; |
long int daemonStart; |
38 |
|
|
39 |
|
|
40 |
SmsCounter smsCounter; |
SmsCounter smsCounter; |
41 |
|
|
42 |
class PluginManager* GetPluginManager(); |
class PluginManager* GetPluginManager(); |
44 |
class ConfigFile* GetConfigfile(); |
class ConfigFile* GetConfigfile(); |
45 |
void SetConfigfile(class ConfigFile*); |
void SetConfigfile(class ConfigFile*); |
46 |
|
|
|
void logMessage(std::string str); |
|
|
void setLogfile(std::string file) {_logFile = file;} |
|
47 |
|
|
48 |
void loadConfig(int argc, char* argv[]); |
void loadConfig(int argc, char* argv[]); |
49 |
|
|
50 |
std::string getStatusMessage(); |
|
51 |
|
std::string getStatusMessage(); |
52 |
private: |
private: |
53 |
Common(); |
Common(); |
54 |
Common(const Common&) {} |
Common(const Common&) {} |
55 |
Common& operator=(const Common) {return *this;} |
Common& operator=(const Common) |
56 |
|
{ |
57 |
|
return *this; |
58 |
|
} |
59 |
~Common(); |
~Common(); |
60 |
|
|
61 |
|
|
66 |
|
|
67 |
void printUsage(); |
void printUsage(); |
68 |
|
|
69 |
std::string _logFile; |
|
70 |
}; |
}; |
71 |
|
|
72 |
|
|