Corrected video recording resolution for front camera
[harmattan/cameraplus] / src / sharehelper.h
index 4e42e87..f80707c 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
 #ifndef SHARE_HELPER_H
 #define SHARE_HELPER_H
 
-#include <QObject>
+#include "dbusservice.h"
 
 class QUrl;
 
-class ShareHelper : public QObject {
+class ShareHelper : public DbusService {
   Q_OBJECT
 
 public:
   ShareHelper(QObject *parent = 0);
   ~ShareHelper();
 
-public slots:
-  void share(const QUrl& path);
+  Q_INVOKABLE bool share(const QUrl& path);
 };
 
 #endif /* SHARE_HELPER_H */