KissCount/controller/KissCount.h

36 lines
743 B
C++

#ifndef KISSCOUNT_H
#define KISSCOUNT_H
#include <fstream>
#include <iostream>
#include <list>
#include <model/model.h>
#include <view/wxUI.h>
class wxUI;
class KissCount
{
public:
KissCount();
~KissCount();
std::list<wxString> GetUsers();
bool IsValidUser(wxString user, wxString password);
void LoadUser(wxString user);
void LoadYear(int year, bool force=false);
User* GetUser();
double GetAccountAmount(wxString id, int month, int year);
void UpdateOperation(struct operation op);
void AddOperation(struct operation op);
void DeleteOperation(struct operation op);
void SetAccountAmount(int month, int year, wxString accountId, double value);
private:
wxUI* _wxUI;
Database* _db;
User* _user;
};
#endif