Files
@ af6c160261c2
Branch filter:
Location: libtransport.git/backends/twitter/Requests/ProfileImageRequest.h - annotation
af6c160261c2
1.4 KiB
text/plain
Web interface: support service.base_location=/something/ to override default '/' root location used by the web interface
bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 78e71f9345c7 78e71f9345c7 78e71f9345c7 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 c236c464ffac bdb8aed78f63 9e70a739b7c2 bdb8aed78f63 bdb8aed78f63 9e70a739b7c2 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 c236c464ffac bdb8aed78f63 bdb8aed78f63 9e70a739b7c2 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 9e70a739b7c2 bdb8aed78f63 9e70a739b7c2 9e70a739b7c2 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 bdb8aed78f63 | #ifndef PROFILEIMAGE_H
#define PROFILEIMAGE_H
#include "../TwitterResponseParser.h"
#include "transport/ThreadPool.h"
#include "transport/Logging.h"
#include "transport/Config.h"
#include <string>
#include <boost/signals.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <iostream>
#include <sstream>
using namespace Transport;
using namespace boost::program_options;
class ProfileImageRequest : public Thread
{
std::string user;
std::string buddy;
std::string url;
std::string img;
unsigned int reqID;
boost::function< void (std::string&, std::string&, std::string&, int, Error&) > callBack;
std::string ip, port, puser, ppasswd;
bool success;
std::string error;
std::string callbackdata;
public:
ProfileImageRequest(Config *config, const std::string &_user, const std::string &_buddy, const std::string &_url, unsigned int _reqID,
boost::function< void (std::string&, std::string&, std::string&, int, Error&) > cb) {
if(CONFIG_HAS_KEY(config,"proxy.server")) {
ip = CONFIG_STRING(config,"proxy.server");
std::ostringstream out;
out << CONFIG_INT(config,"proxy.port");
port = out.str();
puser = CONFIG_STRING(config,"proxy.user");
ppasswd = CONFIG_STRING(config,"proxy.password");
}
user = _user;
buddy = _buddy;
url = _url;
reqID = _reqID;
callBack = cb;
}
~ProfileImageRequest() {
}
void run();
void finalize();
};
#endif
|