Utilisateur:Djobot/page.h
Apparence
// ******************************************************************************** // // djobot, bot pour wikipédia. Sous licence gpl au nom de djo0012. // // l'utilisation de ce bot est sous la responsabilité de son utilisateur, // en aucun cas je ne peut être tenu responsable des actions effectuées avec // ce bot par d'autre personne que moi-même. // // je ne garantis en aucun cas le bon fonctionnement de ce code. // // fichier page.h version 1.0 // // gère toute l'interaction avec la Wikipédia francophone. // // ******************************************************************************** #ifndef PAGE_H_DJOBOT #define PAGE_H_DJOBOT #include<iostream> #include<string> #include<winsock2.h> #include<sstream> #include<fstream> using namespace std; class page { public: //variable string fullPage; string arcticleHTML; string article; // wpTextbox1 string reponse; //methode page(); page(string wikiPageName); page(string wikiPageName,bool edit); virtual ~page(); void sendPage(); void sendPage(int type); void resume(string resum); void minoredit(bool minor); void watch(bool watch); void login(); void recupArt(); void recupHTML(); void open(string val); private: //variable string Edittime; // wpEdittime string EditToken; string AutoSummary; string Summary; // wpSummary string pageName; string pageAdresse; string Minoredit; // wpMinoredit string Watch; // wpWatchthis string articleOriginal; int sock; //methode struct in_addr resolve (char *name); void socketCrea(); void closesock(); void getPage(); void page::pageok(string wikiPageName,bool edit); }; void wait(); template<typename T> std::string str( const T & Value ); #endif