Files
@ 2eccba069825
Branch filter:
Location: libtransport.git/backends/twitter/Requests/TimelineRequest.h - annotation
2eccba069825
1.0 KiB
text/plain
Web interface: show warning when trying to register already registered username
f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 78e71f9345c7 f87f8cc356a1 f87f8cc356a1 78e71f9345c7 f87f8cc356a1 f87f8cc356a1 5b13c80ee9ea f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 a2b385e88f06 f87f8cc356a1 e9891aa2000a f87f8cc356a1 728517cf2312 728517cf2312 c236c464ffac 5b13c80ee9ea f87f8cc356a1 f87f8cc356a1 5b13c80ee9ea c236c464ffac a2b385e88f06 f87f8cc356a1 e9891aa2000a 728517cf2312 5b13c80ee9ea f87f8cc356a1 f87f8cc356a1 a2b385e88f06 a2b385e88f06 a2b385e88f06 a2b385e88f06 a2b385e88f06 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 | #ifndef TIMELINE_H
#define TIMELINE_H
#include "transport/ThreadPool.h"
#include "../libtwitcurl/twitcurl.h"
#include "../TwitterResponseParser.h"
#include "transport/Logging.h"
#include <string>
#include <iostream>
#include <boost/function.hpp>
using namespace Transport;
class TimelineRequest : public Thread
{
twitCurl *twitObj;
std::string user;
std::string userRequested;
std::string replyMsg;
std::string since_id;
bool success;
boost::function< void (std::string&, std::string&, std::vector<Status> &, Error&) > callBack;
std::vector<Status> tweets;
public:
TimelineRequest(twitCurl *obj, const std::string &_user, const std::string &_user2, const std::string &_since_id,
boost::function< void (std::string&, std::string&, std::vector<Status> &, Error&) > cb) {
twitObj = obj->clone();
user = _user;
userRequested = _user2;
since_id = _since_id;
callBack = cb;
}
~TimelineRequest() {
//std::cerr << "*****Timeline request: DESTROYING twitObj****" << std::endl;
delete twitObj;
}
void run();
void finalize();
};
#endif
|