]> git.sur5r.net Git - minitube/blob - src/searchparams.h
Imported Upstream version 1.4.1
[minitube] / src / searchparams.h
1 #ifndef SEARCHPARAMS_H
2 #define SEARCHPARAMS_H
3
4 #include <QObject>
5
6
7
8 class SearchParams : public QObject {
9
10 public:
11     SearchParams();
12
13     const QString keywords() const { return m_keywords; }
14     void setKeywords( QString keywords ) { m_keywords = keywords; }
15
16     const QString author() const { return m_author; }
17     void setAuthor( QString author ) { m_author = author; }
18
19     int sortBy() const { return m_sortBy; }
20     void setSortBy( int sortBy ) { m_sortBy = sortBy; }
21
22     enum SortBy {
23         SortByRelevance = 1,
24         SortByNewest,
25         SortByViewCount
26     };
27
28 private:
29     QString m_keywords;
30     QString m_author;
31     int m_sortBy;
32
33 };
34
35 #endif // SEARCHPARAMS_H