/*!
* This file is part of CameraPlus.
*
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#define TRACKER_STORE_H
#include <QObject>
-#include <QHash>
class QSparqlConnection;
+class QUrl;
+class QSparqlQuery;
class TrackerStore : public QObject {
Q_OBJECT
QString model() const;
void setModel(const QString& model);
+ Q_INVOKABLE bool addToFavorites(const QUrl& url);
+ Q_INVOKABLE bool removeFromFavorites(const QUrl& url);
+
signals:
void activeChanged();
void manufacturerChanged();
private:
bool execQuery(const QString& query, const QString& path);
-
- QHash<QString, QString> m_mime;
+ bool exec(QSparqlQuery& q);
QSparqlConnection *m_connection;
QString m_manufacturer;