-
Notifications
You must be signed in to change notification settings - Fork 0
/
PersonalBudget.h
43 lines (32 loc) · 977 Bytes
/
PersonalBudget.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
#ifndef PERSONALBUDGET_H
#define PERSONALBUDGET_H
#include "UserManager.h"
#include "IncomeManager.h"
#include "ExpenseManager.h"
using namespace std;
class PersonalBudget
{
UserManager userManager;
IncomeManager *incomeManager;
ExpenseManager *expenseManager;
const string INCOMES_FILE_NAME;
const string EXPENSES_FILE_NAME;
public:
PersonalBudget(string usersFileName, string incomesFileName, string expensesFileName)
: userManager(usersFileName),
INCOMES_FILE_NAME(incomesFileName),
EXPENSES_FILE_NAME(expensesFileName) {};
void registerUser();
void loginUser();
void changePassword();
void logoutUser();
bool isUserLoggedIn();
void addIncome();
void addExpense();
void displayLastMonthBalance();
void displayCurrentMonthBalance();
void displayChosenPeriodBalance();
char selectOptionFromMainMenu();
char selectOptionFromUserMenu();
};
#endif // PERSONALBUDGET_H