Move directories, fix a bug into month generation (tree), add tooltips
This commit is contained in:
36
src/model/User.h
Normal file
36
src/model/User.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef USER_H
|
||||
#define USER_H
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <wx/wx.h>
|
||||
#include <wx/colour.h>
|
||||
|
||||
#include "Category.h"
|
||||
#include "Account.h"
|
||||
#include "Operation.h"
|
||||
|
||||
class User
|
||||
{
|
||||
public:
|
||||
~User();
|
||||
|
||||
wxString _id;
|
||||
wxString _name;
|
||||
wxString _password;
|
||||
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;
|
||||
|
||||
Category GetCategory(wxString catId);
|
||||
wxString GetCategoryName(wxString catId);
|
||||
wxString GetCategoryId(wxString catName);
|
||||
wxString GetAccountName(wxString accountId);
|
||||
wxString GetAccountId(wxString accountName);
|
||||
int GetCategoriesNumber();
|
||||
int GetAccountsNumber();
|
||||
int GetOperationsNumber(int month, int year);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user