bookmarks/TagResults.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:29:21 +0300
changeset 13 8f58c9334c71
child 15 5ea3798f1248
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
 * 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_ */