Tag management : first version
This commit is contained in:
@@ -93,6 +93,10 @@ public:
|
||||
void UpdateCategory(Category& category);
|
||||
void DeleteCategory(Category& category, int replacement);
|
||||
|
||||
int AddTag(Tag& tag);
|
||||
void UpdateTag(Tag& tag);
|
||||
void DeleteTag(Tag& tag, int replacement);
|
||||
|
||||
std::map<int, std::vector<int> > GetAllOperations();
|
||||
|
||||
int GenerateMonth(int monthFrom, int yearFrom, int monthTo, int yearTo);
|
||||
@@ -104,17 +108,18 @@ public:
|
||||
|
||||
std::vector<Operation>* Search(QString* description, QDate* dateFrom, QDate* dateTo,
|
||||
int* amountFrom, int* amountTo,
|
||||
std::vector<int> categories, int types, std::vector<int> accounts);
|
||||
std::vector<int> categories,
|
||||
int types, std::vector<int> accounts, std::vector<int> tags);
|
||||
|
||||
bool SearchPreviousOperation(Operation* res, Operation& op, int month, int year, bool limitToType, int index);
|
||||
|
||||
void GetStats(int monthFrom, int yearFrom, int monthTo, int yearTo,
|
||||
std::map<int, std::map<int, std::map<int, int> > >* accountAmounts,
|
||||
std::map<int, int>* categories);
|
||||
std::map<int, int>* categories, std::map<int, int>* tags);
|
||||
|
||||
void GetMonthStats(int month, int year, int nbDays,
|
||||
std::map<int, std::vector<int> >* operations,
|
||||
std::map<int, int>* categories);
|
||||
std::map<int, int>* categories, std::map<int, int>* tags);
|
||||
void UpdateStats();
|
||||
|
||||
std::map<int, int>* GetNotChecked(int month, int year);
|
||||
|
||||
Reference in New Issue
Block a user