Code Review
/
apps
/
homescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add gitreview file for Lucky Lamprey branch
[apps/homescreen.git]
/
homescreen
/
src
/
homescreenhandler.h
diff --git
a/homescreen/src/homescreenhandler.h
b/homescreen/src/homescreenhandler.h
index
c18d7a0
..
790c4fd
100644
(file)
--- a/
homescreen/src/homescreenhandler.h
+++ b/
homescreen/src/homescreenhandler.h
@@
-18,7
+18,11
@@
#define HOMESCREENHANDLER_H
#include <QObject>
#define HOMESCREENHANDLER_H
#include <QObject>
+
#include <libhomescreen.hpp>
#include <libhomescreen.hpp>
+#include "applicationlauncher.h"
+
+#include "shell.h"
#include <string>
using namespace std;
#include <string>
using namespace std;
@@
-27,12
+31,12
@@
class HomescreenHandler : public QObject
{
Q_OBJECT
public:
{
Q_OBJECT
public:
- explicit HomescreenHandler(QObject *parent = 0);
+ explicit HomescreenHandler(
Shell *aglShell, ApplicationLauncher *launcher = 0,
QObject *parent = 0);
~HomescreenHandler();
void init(int port, const char* token);
~HomescreenHandler();
void init(int port, const char* token);
- Q_INVOKABLE void tapShortcut(QString application_
name
);
+ Q_INVOKABLE void tapShortcut(QString application_
id
);
void onRep(struct json_object* reply_contents);
void onEv(const string& event, struct json_object* event_contents);
void onRep(struct json_object* reply_contents);
void onEv(const string& event, struct json_object* event_contents);
@@
-40,8
+44,14
@@
public:
static void* myThis;
static void onRep_static(struct json_object* reply_contents);
static void onEv_static(const string& event, struct json_object* event_contents);
static void* myThis;
static void onRep_static(struct json_object* reply_contents);
static void onEv_static(const string& event, struct json_object* event_contents);
+
+signals:
+ void showNotification(QString application_id, QString icon_path, QString text);
+ void showInformation(QString info);
private:
LibHomeScreen *mp_hs;
private:
LibHomeScreen *mp_hs;
+ ApplicationLauncher *mp_launcher;
+ Shell *aglShell;
};
#endif // HOMESCREENHANDLER_H
};
#endif // HOMESCREENHANDLER_H