registerShortcut
[apps/launcher.git] / launcher / src / homescreenhandler.h
index 09b6848..e612331 100644 (file)
@@ -19,7 +19,8 @@
 #define HOMESCREENHANDLER_H
 
 #include <QObject>
-#include <libhomescreen.hpp>
+#include <QQuickWindow>
+#include <qlibhomescreen.h>
 #include <string>
 #include <qlibwindowmanager.h>
 
@@ -36,18 +37,24 @@ public:
 
     Q_INVOKABLE void tapShortcut(QString application_id);
     Q_INVOKABLE void getRunnables(void);
+    Q_INVOKABLE void hideWindow(QString application_id);
+    Q_INVOKABLE void registerShortcut(QString shortcut_id, QString shortcut_name, QString position);
+    Q_INVOKABLE int uninstallApplication(QString application_id);
+    Q_INVOKABLE void sendAppToMeter(QString application_id);
 
     void onRep(struct json_object* reply_contents);
 
     static void* myThis;
     static void onRep_static(struct json_object* reply_contents);
+    void setQuickWindow(QQuickWindow *qw);
 
 signals:
     void initAppList(QString data);
     void appListUpdate(QStringList info);
+    void updateShortcutList(QStringList shortcut_list);
 
 private:
-    LibHomeScreen *mp_hs;
+    QLibHomeScreen *mp_qhs;
     QLibWindowmanager *mp_qwm;
     QString m_myname;
 };