Files
@ 65d5b4fe996f
Branch filter:
Location: libtransport.git/backends/twitter/Requests/StatusUpdateRequest.h - annotation
65d5b4fe996f
825 B
text/plain
Libpurple: When service.web_directory and service.web_url is set, PURPLE_MESSAGE_IMAGES are stored to web_directory and link is forwarded to the user. Tested only with Facebook for now. Fix #106
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
|