diff options
Diffstat (limited to 'src/account-server/dalstorage.hpp')
-rw-r--r-- | src/account-server/dalstorage.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/account-server/dalstorage.hpp b/src/account-server/dalstorage.hpp index fb8ae138..131cf819 100644 --- a/src/account-server/dalstorage.hpp +++ b/src/account-server/dalstorage.hpp @@ -23,9 +23,12 @@ #include <list> #include <map> +#include <vector> #include "dal/dataprovider.h" +#include "transaction.hpp" + class Account; class Character; class ChatChannel; @@ -365,6 +368,19 @@ class DALStorage */ void setOnlineStatus(int charId, bool online); + /** + * Store a transaction + */ + void addTransaction(const Transaction &trans); + + /** + * Retrieve a series of transactions + * Either based on number of transactions last saved + * or by all transactions since a date + */ + std::vector<Transaction> getTransactions(unsigned int num); + std::vector<Transaction> getTransactions(time_t date); + private: /** * Copy constructor. |