Files
@ 6e1413bf21d3
Branch filter:
Location: libtransport.git/backends/twitter/Requests/DestroyFriendRequest.h - annotation
6e1413bf21d3
851 B
text/plain
Chatroom mode - basic working code
d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 | #ifndef DESTROY_FRIEND
#define DESTROY_FRIEND
#include "../ThreadPool.h"
#include "../TwitterResponseParser.h"
#include "../libtwitcurl/twitcurl.h"
#include "transport/logging.h"
#include <string>
#include <boost/function.hpp>
#include <iostream>
using namespace Transport;
class DestroyFriendRequest : public Thread
{
twitCurl *twitObj;
std::string user;
std::string frnd;
std::string replyMsg;
boost::function< void (std::string&, std::string&, std::string&) > callBack;
bool success;
public:
DestroyFriendRequest(twitCurl *obj, const std::string &_user, const std::string & _frnd,
boost::function< void (std::string&, std::string&, std::string&) > cb) {
twitObj = obj->clone();
user = _user;
frnd = _frnd;
callBack = cb;
}
~DestroyFriendRequest() {
delete twitObj;
}
void run();
void finalize();
};
#endif
|