Files
        @ 4717bd007185
    
        
              Branch filter: 
        
    Location: libtransport.git/backends/twitter/Requests/OAuthFlow.h - annotation
        
            
            4717bd007185
            692 B
            text/plain
        
        
    
    Send unavailable presence when server goes down. Use LOG4CXX macros in irc backend
    | cb62e786889f cb62e786889f cb62e786889f b3f59f9bb668 cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f b62ef77146eb cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f b62ef77146eb cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f cb62e786889f | #ifndef OAUTH_FLOW
#define OAUTH_FLOW
#include "transport/threadpool.h"
#include "../libtwitcurl/twitcurl.h"
#include "../TwitterPlugin.h"
#include "transport/logging.h"
#include <string>
#include <iostream>
//class TwitterPlugin;
using namespace Transport;
class OAuthFlow : public Thread
{
	twitCurl *twitObj;
	std::string username;
	std::string user;
	std::string authUrl;
	TwitterPlugin *np;
	bool success;
	
	public:
	OAuthFlow(TwitterPlugin *_np, twitCurl *obj, const std::string &_user, const std::string &_username) {
		twitObj = obj->clone();
		username = _username;
		user = _user;
		np = _np;
	}
	~OAuthFlow() {
		delete twitObj;
	}	
	void run();
	void finalize();
};
#endif
 |