123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // Created by robin on 8/8/15.
- //
-
- #ifndef PDNS_SLAVE_MAINCLASS_H
- #define PDNS_SLAVE_MAINCLASS_H
-
- #include <Business/CryptoBusiness.h>
- #include <boost/shared_ptr.hpp>
- #include "libmilter/mfapi.h"
- #include "libmilter/mfdef.h"
-
- class MainClass {
- public:
- static MainClass* getInstance();
-
- MainClass(int argc, char* argv[]);
- virtual ~MainClass();
-
- int main();
-
- sfsistat mlfiHeader(SMFICTX *ctx);
-
- std::string randomizeString(const std::string& str);
-
- protected:
- int loadConfig(const std::string& filePath);
-
- int launchMilter(const std::string& socket);
-
- int launchDecrypt(const std::vector<std::string> values);
-
- private:
- int _argc;
-
- char** _argv;
-
- std::shared_ptr<CryptoBusiness> _cryptoBusiness;
-
- static MainClass* _instance;
-
- };
-
-
- #endif //PDNS_SLAVE_MAINCLASS_H
|