danicoin/src/CryptoNoteProtocol/ICryptoNoteProtocolQuery.h
2016-01-18 15:33:29 +00:00

24 lines
661 B
C++

// Copyright (c) 2011-2016 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <cstddef>
#include <cstdint>
namespace CryptoNote {
class ICryptoNoteProtocolObserver;
class ICryptoNoteProtocolQuery {
public:
virtual bool addObserver(ICryptoNoteProtocolObserver* observer) = 0;
virtual bool removeObserver(ICryptoNoteProtocolObserver* observer) = 0;
virtual uint32_t getObservedHeight() const = 0;
virtual size_t getPeerCount() const = 0;
virtual bool isSynchronized() const = 0;
};
} //namespace CryptoNote