peerplays_migrated/programs/full_web_node/BlockChain.hpp

32 lines
635 B
C++
Raw Normal View History

2015-08-12 18:56:33 +00:00
#pragma once
2015-08-14 19:09:21 +00:00
#include <fc/thread/future.hpp>
2015-08-12 18:56:33 +00:00
#include <QObject>
class QTimer;
class QThread;
namespace fc { class thread; }
namespace graphene { namespace app { class application; } }
class BlockChain : public QObject {
Q_OBJECT
Q_PROPERTY(QString webUsername MEMBER webUsername CONSTANT)
Q_PROPERTY(QString webPassword MEMBER webPassword CONSTANT)
2015-08-12 18:56:33 +00:00
2015-08-14 19:09:21 +00:00
fc::thread* chainThread;
2015-08-12 18:56:33 +00:00
graphene::app::application* grapheneApp;
2015-08-14 19:09:21 +00:00
fc::future<void> startFuture;
QString webUsername;
QString webPassword;
2015-08-12 18:56:33 +00:00
public:
BlockChain();
virtual ~BlockChain();
public Q_SLOTS:
void start();
2015-08-14 19:09:21 +00:00
Q_SIGNALS:
void started();
2015-08-12 18:56:33 +00:00
};