aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'db.h')
-rw-r--r--db.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/db.h b/db.h
index a0054aa138..df48699e91 100644
--- a/db.h
+++ b/db.h
@@ -11,6 +11,8 @@ class CUser;
class CReview;
class CAddress;
class CWalletTx;
+class CAccount;
+class CAccountingEntry;
extern map<string, string> mapAddressBook;
extern CCriticalSection cs_mapAddressBook;
@@ -341,7 +343,9 @@ public:
class CWalletDB : public CDB
{
public:
- CWalletDB(const char* pszMode="r+") : CDB("wallet.dat", pszMode) { }
+ CWalletDB(const char* pszMode="r+") : CDB("wallet.dat", pszMode)
+ {
+ }
private:
CWalletDB(const CWalletDB&);
void operator=(const CWalletDB&);
@@ -425,6 +429,11 @@ public:
return Write(make_pair(string("setting"), strKey), value);
}
+ bool ReadAccount(const string& strAccount, CAccount& account);
+ bool WriteAccount(const string& strAccount, const CAccount& account);
+ bool WriteAccountingEntry(const string& strAccount, const CAccountingEntry& acentry);
+ int64 GetAccountCreditDebit(const string& strAccount);
+
bool LoadWallet();
protected:
void ReserveKeyFromKeyPool(int64& nIndex, CKeyPool& keypool);