-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProfile.h
38 lines (33 loc) · 986 Bytes
/
Profile.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
#pragma once
#include "Category.h"
#include "Movie.h"
using namespace std;
class Profile
{
public:
Profile();
Profile(const Profile &profile); // copy constructor
Profile(string label, string firstName, string lastName, int age);
~Profile();
void edit(string lbl, string fname, string lname, int ag);
void operator<<(string category);
string getLabel();
string getFirstName();
string getLastName();
int getAge();
SinglyLinkedList<Category*> getCategories();
void addCategories(SinglyLinkedList<Category*> * categories);
void displayMovieQueue(int option);
void displayMovieQueue(int option, string value);
void addMovieToQueue(Movie* movie);
void editMovieInQueue(pair<int, int> pos, Movie * movie);
void removeMovieFromQueue(pair<int,int> pos);
pair<int, int> searchForMovieInQueue(string name, int year);
SinglyLinkedList<Category *> categories;
private:
string label;
string firstName;
string lastName;
int age;
int findCategory(string categoryName);
};