advertising.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00029 #ifndef ADVERTISING_H
00030 #define ADVERTISING_H
00031 #include "../plugin.h"
00032 #include "../botkernel.h"
00033
00034 #ifndef HAVE_TINYXML
00035 #include "../tinyxml/tinyxml.h"
00036 #else
00037 #include <tinyxml.h>
00038 #endif
00039
00040
00041 #include "admin.h"
00042 #include <time.h>
00043 #include <iostream>
00044 using namespace std;
00045
00051 class Advertising : public Plugin
00052 {
00053 private:
00055 TiXmlDocument * doc ;
00057 TiXmlNode* root;
00059 void initFile();
00060 public:
00062 Advertising(BotKernel*);
00064 time_t addAdvertise(string,unsigned int,unsigned int,string,string);
00066 bool delAdvertise(string);
00068 bool adExists(string);
00070 vector<string> getAdvertiseInfos(string);
00072 vector<string> getAdvertisesList();
00074 void deleteOutdatedAds();
00076 void launchAdvertise(BotKernel*,string,unsigned int);
00077 };
00078
00079
00080 #endif
00081