-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilemanager.h
51 lines (41 loc) · 1.17 KB
/
filemanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef FILEMANAGER_H
#define FILEMANAGER_H
#include <QMainWindow>
#include <QFile>
#include <QTextStream>
#include <QDate>
class FileManager : public QMainWindow
{
Q_OBJECT
public:
FileManager(int year, int month, QString filename, bool totals);
~FileManager();
QStringList pTotal;
double projectTotal;
void deleteCategory(QStringList categories);
bool totalCheck;
int today;
void clearData();
int categoryCount();
double getCategoryTotal(bool check, QString activeCategory, int year, int month);
QString categories(int i);
QVector<double> data(int i);
void updateData(int year, int month, int day, QString category, double amount);
void writeData(QStringList q, bool checkStatus);
QStringList readFile();
void readMonthlyTotals(QString data);
void updateSettings(QString category);
private:
QList<QList<QString> > project;
QList<QString> q;
QString m;
QString openFile;
QStringList oldTemporaryData;
double totalAmount;
int days;
void appendData(int year, int month);
void populateMonth(QString year, QString month);
signals:
public slots:
};
#endif // FILEMANAGER_H