spectrum2/backends/twitter/Requests/HelpMessageRequest.h

31 lines
624 B
C
Raw Normal View History

2012-06-03 15:01:50 +05:30
#ifndef HELPMESSAGE_H
#define HELPMESSAGE_H
2012-08-07 09:31:15 +02:00
#include "transport/threadpool.h"
2012-06-03 15:01:50 +05:30
#include "../libtwitcurl/twitcurl.h"
#include "transport/networkplugin.h"
#include "transport/logging.h"
#include <string>
2012-06-21 17:05:36 +05:30
#include <boost/function.hpp>
2012-06-03 15:01:50 +05:30
#include <iostream>
using namespace Transport;
class HelpMessageRequest : public Thread
{
std::string user;
2012-06-21 17:05:36 +05:30
std::string helpMsg;
boost::function<void (std::string &, std::string &)> callBack;
2012-06-03 15:01:50 +05:30
public:
2012-06-21 17:05:36 +05:30
HelpMessageRequest(const std::string &_user, boost::function<void (std::string &, std::string &)> cb) {
2012-06-03 15:01:50 +05:30
user = _user;
2012-06-21 17:05:36 +05:30
callBack = cb;
2012-06-03 15:01:50 +05:30
}
void run();
void finalize();
};
#endif