-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKSearch.h
57 lines (49 loc) · 1.09 KB
/
KSearch.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
51
52
53
54
55
56
57
#ifndef KSEARCH_H
#define KSEARCH_H
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include <QString>
//#include "lib/map.h"
//#include "lib/set.h"
//#include "lib/Queue.h"
#include "User.h"
#include "Movie.h"
#include "Netflix.h"
#include <map>
#include <set>
#include <algorithm>
#include <queue>
using std::map;
using std::set;
using std::queue;
class KSearch : public QWidget
{
Q_OBJECT
public:
KSearch(QWidget* parent, Netflix* netflix, string userInput);
void printKeyword(string x);
void printKeyword2(string x);
private slots:
void KeywordNextMovieClicked();
void KeywordAddQueueClicked();
void KeywordReturnMainButtonClicked();
protected:
void closeEvent(QCloseEvent *event);
private:
QLabel* KeywordsearchLabel;
QLabel* KshowKeyword;
QLabel* Kinformation;
QPushButton* KeywordnextMovieButton;
QPushButton* KeywordaddQueueButton;
QPushButton* KeywordreturnMainButton;
set<string>::iterator itB;
set<Movie*>::iterator itA;
string Keywordstr;
string getUserKeyword;
Netflix* netflix;
QWidget* parent;
string putqueue;
set<Movie*>* temp1;
};
#endif