danicoin/src/PaymentGate/WalletFactory.h
2016-01-18 15:33:29 +00:00

31 lines
673 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 "IWallet.h"
#include "INode.h"
#include <System/Dispatcher.h>
#include <string>
#include <memory>
namespace CryptoNote {
class Currency;
}
namespace PaymentService {
class WalletFactory {
public:
static CryptoNote::IWallet* createWallet(const CryptoNote::Currency& currency, CryptoNote::INode& node, System::Dispatcher& dispatcher);
private:
WalletFactory();
~WalletFactory();
static WalletFactory factory;
};
} //namespace PaymentService