spectrum2/backends/twitter/Requests/PINExchangeProcess.h

40 lines
722 B
C
Raw Normal View History

2012-06-03 22:34:33 +05:30
#ifndef PIN_EXCHANGE
#define PIN_EXCHANGE
2012-08-07 09:31:15 +02:00
#include "transport/threadpool.h"
2012-06-03 22:34:33 +05:30
#include "../libtwitcurl/twitcurl.h"
#include "../TwitterPlugin.h"
#include "transport/networkplugin.h"
#include "transport/logging.h"
#include <string>
#include <iostream>
//class TwitterPlugin;
using namespace Transport;
class PINExchangeProcess : public Thread
{
twitCurl *twitObj;
std::string data;
std::string user;
TwitterPlugin *np;
bool success;
public:
PINExchangeProcess(TwitterPlugin *_np, twitCurl *obj, const std::string &_user, const std::string &_data) {
2012-06-04 00:08:16 +05:30
twitObj = obj->clone();
2012-06-03 22:34:33 +05:30
data = _data;
user = _user;
np = _np;
}
~PINExchangeProcess() {
2012-06-04 00:08:16 +05:30
delete twitObj;
2012-06-03 22:34:33 +05:30
}
void run();
void finalize();
};
#endif