Files
@ cb62e786889f
Branch filter:
Location: libtransport.git/backends/twitter/Requests/TimelineRequest.h - annotation
cb62e786889f
733 B
text/plain
Muti-threaded login process
f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 a2b385e88f06 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 a2b385e88f06 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 a2b385e88f06 a2b385e88f06 a2b385e88f06 a2b385e88f06 a2b385e88f06 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 | #ifndef TIMELINE_H
#define TIMELINE_H
#include "../ThreadPool.h"
#include "../libtwitcurl/twitcurl.h"
#include "../TwitterResponseParser.h"
#include "transport/networkplugin.h"
#include "transport/logging.h"
#include <string>
#include <iostream>
using namespace Transport;
class TimelineRequest : public Thread
{
twitCurl *twitObj;
std::string user;
std::string replyMsg;
std::string timeline;
NetworkPlugin *np;
public:
TimelineRequest(NetworkPlugin *_np, twitCurl *obj, const std::string &_user) {
twitObj = obj->clone();
np = _np;
user = _user;
}
~TimelineRequest() {
//std::cerr << "*****Timeline request: DESTROYING twitObj****" << std::endl;
delete twitObj;
}
void run();
void finalize();
};
#endif
|