equal
deleted
inserted
replaced
|
1 /* |
|
2 * TagResults.h |
|
3 * |
|
4 * Created on: Aug 13, 2010 |
|
5 * Author: mmoretti |
|
6 */ |
|
7 |
|
8 #ifndef TAGRESULTS_H_ |
|
9 #define TAGRESULTS_H_ |
|
10 |
|
11 #include <QString> |
|
12 #include <QObject> |
|
13 #include <QSqlDatabase> |
|
14 #include <QSqlQuery> |
|
15 #include <QSqlError> |
|
16 #include <QWidget> |
|
17 |
|
18 #include "bookmarksapi.h" |
|
19 |
|
20 class BOOKMARKSAPI_EXPORT TagResults : public QObject { |
|
21 |
|
22 Q_OBJECT |
|
23 |
|
24 Q_PROPERTY(QString* next READ nextTag) |
|
25 Q_PROPERTY(bool hasMoreTags READ hasMoreTags) |
|
26 |
|
27 public slots: |
|
28 QString *nextTag(); |
|
29 |
|
30 public: |
|
31 TagResults(QSqlQuery *query, QWidget *parent = 0); |
|
32 ~TagResults(); |
|
33 |
|
34 public: |
|
35 bool hasMoreTags(); |
|
36 |
|
37 protected: |
|
38 QSqlQuery* m_query; |
|
39 }; |
|
40 |
|
41 // For scripting |
|
42 //Q_DECLARE_METATYPE(TagResults *) |
|
43 |
|
44 |
|
45 #endif /* TAGRESULTS_H_ */ |