Corrected video recording resolution for front camera
[harmattan/cameraplus] / src / trackerstore.h
index 7266a69..6ae3b76 100644 (file)
@@ -3,7 +3,7 @@
 /*!
  * 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
@@ -51,6 +52,9 @@ public:
   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();
@@ -58,8 +62,7 @@ signals:
 
 private:
   bool execQuery(const QString& query, const QString& path);
-
-  QHash<QString, QString> m_mime;
+  bool exec(QSparqlQuery& q);
 
   QSparqlConnection *m_connection;
   QString m_manufacturer;