-
Notifications
You must be signed in to change notification settings - Fork 3
/
pathmanager.h
30 lines (26 loc) · 979 Bytes
/
pathmanager.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
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. See COPYING file for more details.
*
*/
#ifndef PATHMANAGER_H
#define PATHMANAGER_H
#include <QString>
class PathManager
{
public:
PathManager();
QString datesFilePath(); // путь к файлу государственных и других общих праздников
QString eventsFilePath(); // путь к файлу дней рождения и других личных праздников
bool ok(); // обработка ошибок
QString errString();
private:
const QString datesFileName = "dates.txt";
const QString eventsFileName = "events.txt";
bool _ok;
QString _errString;
QString configPath, _datesFilePath, _eventsFilePath;
};
#endif // PATHMANAGER_H