-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterface.h
executable file
·50 lines (44 loc) · 1.02 KB
/
Interface.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
#ifndef _INTERFACE_H
#define _INTERFACE_H
#include <iostream>
#include "Facebook.h"
#include "Date.h"
using namespace std;
static constexpr int NOT_NUMBER = -1;
class Facebook;
class Interface
{
private:
vector<string> options;
Facebook* fBook;
public:
Interface();
Interface(const Interface&)=delete;
~Interface();
void setMenu();
//void addOptionToMenu(const char*);
void showMenu() const;
int userSelect();
bool execute(int select);
void runInterface();
// Execution functions
void createPerson();
void createFanPage();
void createStatus();
void showAllUserStatuses();
void link2Friends();
void addPersonToFanPage();
void showUserFriends();
void showPersonsFriendsStatuses();
// User input
STATUSTYPE statusTypeSelect();
USERTYPE userTypeSelect();
Date enterDate();
friend string getName();
void testSetup();
};
int convertToNum(const string& str);
int convertLineToInt(const string& line);
string getUserInput();
int findSpace(const string& str);
#endif