Files @ daeb6dfc9a9f
Branch filter:

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

Conrad Kostecki
Enable support for Qt5

Since Qt4 is EOL, we should also support libcommuni build with Qt5.
In order not to break Fedora docker builds, -DENABLE_QT4 is introduced.

When set to 'ON', support for Qt4 is being enabled,
otherwise support for Qt5 is enabled.

Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
#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