-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUImanager.h
More file actions
executable file
·43 lines (39 loc) · 948 Bytes
/
Copy pathUImanager.h
File metadata and controls
executable file
·43 lines (39 loc) · 948 Bytes
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 UIMANAGER_H
#define UIMANAGER_H
#include "Dlist.h"
#include "Pencil.h"
#include "Eraser.h"
#include "Laptop.h"
#define TEST_MODE
//The UI class deals with all the output and the input from the console
class UImanager {
public:
~UImanager();
void mainMenu(int*);
void subMenuAdd(int*);
void subMenuRemove(int*);
void subMenuProduct(int*);
void subProductSearch(int*);
void subMenuBuy(int*);
void getCourseData(Course**);
void getPencilData(Pencil**);
void getEraserData(Eraser**);
void getLaptopData(Laptop**);
void printCourses(Dlist<Course*>*);
void coutString(string&);
void pause();
bool getNumCourse(int&);
string getCourseCode();
void getBookData(Book**);
void listBooks(Course*);
void cDeletedMessage();
void cAddedMessage();
void cNotExist();
string getString(string, string);
void purchased(float&);
void purchasedFailed();
void promoted();
private:
int getInt();
};
#endif