diff -r 6b5f25f057c2 -r 1d51612454b5 bookmarks/TagResults.h --- /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 +#include +#include +#include +#include +#include + +#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_ */