]> Git Repo - VerusCoin.git/blob - src/amqp/amqpnotificationinterface.h
Merge pull request #3 from jl777/dev
[VerusCoin.git] / src / amqp / amqpnotificationinterface.h
1 // Copyright (c) 2017 The Zcash developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef ZCASH_AMQP_AMQPNOTIFICATIONINTERFACE_H
6 #define ZCASH_AMQP_AMQPNOTIFICATIONINTERFACE_H
7
8 #include "validationinterface.h"
9 #include <string>
10 #include <map>
11
12 class CBlockIndex;
13 class AMQPAbstractNotifier;
14
15 class AMQPNotificationInterface : public CValidationInterface
16 {
17 public:
18     virtual ~AMQPNotificationInterface();
19
20     static AMQPNotificationInterface* CreateWithArguments(const std::map<std::string, std::string> &args);
21
22 protected:
23     bool Initialize();
24     void Shutdown();
25
26     // CValidationInterface
27     void SyncTransaction(const CTransaction &tx, const CBlock *pblock);
28     void UpdatedBlockTip(const CBlockIndex *pindex);
29
30 private:
31     AMQPNotificationInterface();
32
33     std::list<AMQPAbstractNotifier*> notifiers;
34 };
35
36 #endif // ZCASH_AMQP_AMQPNOTIFICATIONINTERFACE_H
This page took 0.025271 seconds and 4 git commands to generate.