Files
@ d04f7e19a7f6
Branch filter:
Location: libtransport.git/backends/twitter/Requests/TimelineRequest.h - annotation
d04f7e19a7f6
1.0 KiB
text/plain
Add FormUtils methods to make XMPP Forms handling easier to read even when keeping it portable between swiften2 and swiften3.
f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 b3f59f9bb668 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 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
|