KissCount/src/model/User.h

38 lines
840 B
C
Raw Normal View History

#ifndef USER_H
#define USER_H
2010-06-22 12:29:36 +02:00
#include <map>
2010-06-03 18:28:38 +02:00
#include <vector>
2010-05-24 20:14:15 +02:00
#include <wx/wx.h>
#include <wx/colour.h>
2010-07-03 11:48:53 +02:00
#include "Category.h"
#include "Account.h"
#include "Operation.h"
2010-05-24 20:14:15 +02:00
class User
{
2010-07-04 16:33:25 +02:00
public:
2010-05-15 11:21:42 +02:00
~User();
wxString _id;
wxString _name;
wxString _password;
2010-07-03 11:48:53 +02:00
std::vector<Account> _accounts;
std::map<unsigned int, std::map<unsigned int, std::vector<Operation> >* > _operations;
std::vector<Category> _categories;
std::map<wxString, wxString> _preferences;
2010-05-24 20:14:15 +02:00
2010-07-05 18:35:12 +02:00
Category GetCategory(wxString& catId);
wxString GetCategoryName(wxString& catId);
wxString GetCategoryId(wxString& catName);
wxString GetAccountName(wxString& accountId);
wxString GetAccountId(wxString& accountName);
2010-05-27 21:09:02 +02:00
int GetCategoriesNumber();
2010-06-02 22:14:11 +02:00
int GetAccountsNumber();
int GetOperationsNumber(int month, int year);
2010-07-06 20:59:02 +02:00
wxLanguage GetLanguage();
};
#endif