--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bookmarks/TagResults.h Fri Sep 17 12:10:47 2010 -0400
@@ -0,0 +1,45 @@
+/*
+ * TagResults.h
+ *
+ * Created on: Aug 13, 2010
+ * Author: mmoretti
+ */
+
+#ifndef TAGRESULTS_H_
+#define TAGRESULTS_H_
+
+#include <QString>
+#include <QObject>
+#include <QSqlDatabase>
+#include <QSqlQuery>
+#include <QSqlError>
+#include <QWidget>
+
+#include "bookmarksapi.h"
+
+class BOOKMARKSAPI_EXPORT TagResults : public QObject {
+
+ Q_OBJECT
+
+ Q_PROPERTY(QString* next READ nextTag)
+ Q_PROPERTY(bool hasMoreTags READ hasMoreTags)
+
+public slots:
+ QString *nextTag();
+
+public:
+ TagResults(QSqlQuery *query, QWidget *parent = 0);
+ ~TagResults();
+
+public:
+ bool hasMoreTags();
+
+protected:
+ QSqlQuery* m_query;
+};
+
+// For scripting
+//Q_DECLARE_METATYPE(TagResults *)
+
+
+#endif /* TAGRESULTS_H_ */