diff -r b61e1b3b145f -r 8f58c9334c71 bookmarks/TagResults.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bookmarks/TagResults.h Mon Oct 04 00:29:21 2010 +0300 @@ -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_ */