2010-05-14 15:04:01 +02:00
|
|
|
#ifndef KISSCOUNT_H
|
|
|
|
#define KISSCOUNT_H
|
|
|
|
|
|
|
|
#include <fstream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <list>
|
|
|
|
|
2010-05-24 20:14:15 +02:00
|
|
|
#include <model/model.h>
|
2010-05-14 15:04:01 +02:00
|
|
|
#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);
|
2010-05-16 10:35:34 +02:00
|
|
|
void LoadYear(int year, bool force=false);
|
|
|
|
User* GetUser();
|
2010-06-02 22:14:11 +02:00
|
|
|
double GetAccountAmount(wxString id, int month, int year);
|
2010-06-03 18:28:38 +02:00
|
|
|
void UpdateOperation(struct operation op);
|
|
|
|
void AddOperation(struct operation op);
|
|
|
|
void DeleteOperation(struct operation op);
|
2010-06-02 22:14:11 +02:00
|
|
|
|
2010-05-14 15:04:01 +02:00
|
|
|
private:
|
|
|
|
wxUI* _wxUI;
|
|
|
|
Database* _db;
|
2010-05-16 10:35:34 +02:00
|
|
|
User* _user;
|
2010-05-14 15:04:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|