danicoin/src/wallet/WalletTxSendingState.h
2014-07-18 14:49:01 +04:00

34 lines
602 B
C++

// Copyright (c) 2011-2014 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 "IWallet.h"
#include <map>
#include <mutex>
namespace CryptoNote {
class WalletTxSendingState
{
public:
enum State
{
SENDING,
ERRORED,
NOT_FOUND
};
void sending(TransactionId id);
void sent(TransactionId id);
void error(TransactionId id);
State state(TransactionId id);
private:
std::map<TransactionId, State> m_states;
};
} //namespace CryptoNote