Files
@ 80d1f8f90fed
Branch filter:
Location: libtransport.git/backends/twitter/Requests/RetweetRequest.h - annotation
80d1f8f90fed
791 B
text/plain
Libtransport: Disconnect from room when user is connected using multiple resources and he just disconnects one of them without sending unavailable presences to the rooms
6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 78e71f9345c7 6cc7c334f3c4 6cc7c334f3c4 78e71f9345c7 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 c236c464ffac 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 c236c464ffac 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 | #ifndef RETWEET_H
#define RETWEET_H
#include "transport/ThreadPool.h"
#include "../TwitterResponseParser.h"
#include "../libtwitcurl/twitcurl.h"
#include "transport/Logging.h"
#include <boost/function.hpp>
#include <string>
#include <iostream>
using namespace Transport;
class RetweetRequest : public Thread
{
twitCurl *twitObj;
std::string data;
std::string user;
std::string replyMsg;
bool success;
boost::function < void (std::string&, Error&) > callBack;
public:
RetweetRequest(twitCurl *obj, const std::string &_user, const std::string &_data,
boost::function < void (std::string &, Error&) > _cb) {
twitObj = obj->clone();
data = _data;
user = _user;
callBack = _cb;
}
~RetweetRequest() {
delete twitObj;
}
void run();
void finalize();
};
#endif
|