Files
@ 86f52cf6604b
Branch filter:
Location: libtransport.git/backends/twitter/Requests/StatusUpdateRequest.h - annotation
86f52cf6604b
862 B
text/plain
Do not use libpurple verbose debug
2b47d32a916c 2b47d32a916c 2b47d32a916c b3f59f9bb668 2b47d32a916c c236c464ffac 2b47d32a916c 2b47d32a916c 6e1413bf21d3 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c a2b385e88f06 2b47d32a916c 2b47d32a916c 2b47d32a916c c236c464ffac 6e1413bf21d3 6e1413bf21d3 2b47d32a916c 6e1413bf21d3 c236c464ffac a2b385e88f06 2b47d32a916c 2b47d32a916c 6e1413bf21d3 2b47d32a916c a2b385e88f06 a2b385e88f06 a2b385e88f06 a2b385e88f06 a2b385e88f06 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c | #ifndef STATUS_UPDATE
#define STATUS_UPDATE
#include "transport/threadpool.h"
#include "../libtwitcurl/twitcurl.h"
#include "../TwitterResponseParser.h"
#include "transport/networkplugin.h"
#include "transport/logging.h"
#include <boost/function.hpp>
#include <string>
#include <iostream>
using namespace Transport;
class StatusUpdateRequest : public Thread
{
twitCurl *twitObj;
std::string data;
std::string user;
std::string replyMsg;
boost::function<void (std::string& user, Error& errMsg)> callBack;
bool success;
public:
StatusUpdateRequest(twitCurl *obj, const std::string &_user, const std::string &_data,
boost::function<void (std::string& user, Error& errMsg)> cb) {
twitObj = obj->clone();
data = _data;
user = _user;
callBack = cb;
}
~StatusUpdateRequest() {
delete twitObj;
}
void run();
void finalize();
};
#endif
|