Changeset View
Changeset View
Standalone View
Standalone View
plugins/htmlinterface/torrentlistgenerator.h
Show All 39 Lines | 39 | /** | |||
---|---|---|---|---|---|
40 | Content generator which generates XML with all torrents in it. | 40 | Content generator which generates XML with all torrents in it. | ||
41 | */ | 41 | */ | ||
42 | class TorrentListGenerator | 42 | class TorrentListGenerator | ||
43 | { | 43 | { | ||
44 | public: | 44 | public: | ||
45 | TorrentListGenerator(CoreInterface* core); | 45 | TorrentListGenerator(CoreInterface* core); | ||
46 | virtual ~TorrentListGenerator(); | 46 | virtual ~TorrentListGenerator(); | ||
47 | 47 | | |||
48 | void get(char ** str_p, int * size); | 48 | QByteArray get(); | ||
49 | virtual void post(char * json); | 49 | virtual void post(QString json); | ||
50 | // virtual void post(HttpClientHandler* hdlr, const QHttpRequestHeader& hdr, const QByteArray& data); | | |||
51 | | ||||
52 | 50 | | |||
53 | private: | 51 | private: | ||
54 | CoreInterface* core; | 52 | CoreInterface* core; | ||
55 | TorrentInterface * getTorrentFromHash(QString hash); | 53 | TorrentInterface * getTorrentFromHash(QString hash); | ||
56 | const static SHA1Hash * QStringToSHA1Hash(QString qString); | | |||
57 | Uint8 static char2int(char input); | | |||
58 | void static hex2bin(const char * src, Uint8 * target); | | |||
59 | 54 | | |||
60 | }; | 55 | }; | ||
61 | 56 | | |||
62 | } | 57 | } | ||
63 | 58 | | |||
pino: No need for these functions to be exposed, just make them static inside the `.cpp` file. | |||||
64 | #endif | 59 | #endif |
No need for these functions to be exposed, just make them static inside the .cpp file.