Files @ 65d5b4fe996f
Branch filter:

Location: libtransport.git/backends/twitter/Requests/HelpMessageRequest.h

Jan Kaluza
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
#ifndef HELPMESSAGE_H
#define HELPMESSAGE_H

#include "transport/ThreadPool.h"
#include "../libtwitcurl/twitcurl.h"
#include "transport/Logging.h"
#include <string>
#include <boost/function.hpp>
#include <iostream>

using namespace Transport;

class HelpMessageRequest : public Thread
{
	std::string user;
	std::string jid;
	std::string helpMsg;
	boost::function<void (std::string &, std::string &)> callBack;
	
	public:
	HelpMessageRequest(const std::string &_user, const std::string &jid, boost::function<void (std::string &, std::string &)> cb) {
		user = _user;
		callBack = cb;
		this->jid = jid;
	}

	void run();
	void finalize();
};

#endif