#ifndef USER_H #define USER_H #include #include #include #include struct operation { wxString id; unsigned int day; unsigned int month; unsigned int year; double amount; wxString description; wxString category; bool fix_cost; wxString account; bool checked; } ; struct account { wxString id; wxString name; wxString number; bool shared; bool _default; }; struct category { wxString id; wxString parent; wxString name; wxColour color; wxString font; }; class User { public: ~User(); wxString _id; wxString _name; wxString _password; std::vector _accounts; std::map >* > _operations; std::vector _categories; std::map _preferences; struct 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