Files
@ 96476b9a8a3e
Branch filter:
Location: libtransport.git/backends/twitter/Requests/FetchFriends.h - annotation
96476b9a8a3e
845 B
text/plain
Merge branch 'master' of git://github.com/hanzz/libtransport into twitter-backend
f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 5b13c80ee9ea 5b13c80ee9ea 5b13c80ee9ea f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 a2b385e88f06 f87f8cc356a1 f87f8cc356a1 5b13c80ee9ea 5b13c80ee9ea 5b13c80ee9ea f87f8cc356a1 f87f8cc356a1 5b13c80ee9ea 5b13c80ee9ea a2b385e88f06 f87f8cc356a1 5b13c80ee9ea f87f8cc356a1 f87f8cc356a1 a2b385e88f06 a2b385e88f06 a2b385e88f06 a2b385e88f06 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 f87f8cc356a1 | #ifndef FRIENDS_H
#define FRIENDS_H
#include "../ThreadPool.h"
#include "../libtwitcurl/twitcurl.h"
#include "../TwitterResponseParser.h"
#include "transport/logging.h"
#include <string>
#include <boost/signals.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <iostream>
using namespace Transport;
class FetchFriends : public Thread
{
twitCurl *twitObj;
std::string user;
std::string replyMsg;
std::vector<User> friends;
bool success;
boost::function< void (std::string, std::vector<User> &, std::string) > callBack;
public:
FetchFriends(twitCurl *obj, const std::string &_user,
boost::function< void (std::string, std::vector<User> &, std::string) > cb) {
twitObj = obj->clone();
user = _user;
callBack = cb;
}
~FetchFriends() {
delete twitObj;
}
void run();
void finalize();
};
#endif
|