Files
@ de8114d2da06
Branch filter:
Location: libtransport.git/backends/twitter/Requests/StatusUpdateRequest.h - annotation
de8114d2da06
825 B
text/plain
Libpurple: Do not change the nickname when joining the room when it is the same as the one used by the user
2b47d32a916c 2b47d32a916c 2b47d32a916c 78e71f9345c7 2b47d32a916c c236c464ffac 78e71f9345c7 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/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
|