Implement Android intent handling in qml app

AndroidManifest.xml register activity as an handler for retroshare links
RetroShareQmlActivity...NativeCalls.cpp bring the intent data from java
  to C++ and then to QML
QMl mainWindow uses URI.js to parse the received uri
Create a singleton for qml engine so it is reachable from NativeCalls
This commit is contained in:
Gioacchino Mazzurco 2017-04-11 13:11:57 +02:00
parent 29a3d105c4
commit 533dbef0c7
15 changed files with 239 additions and 26 deletions

View file

@ -1,6 +1,7 @@
#pragma once
/*
* libresapi local socket client
* Copyright (C) 2016 Gioacchino Mazzurco <gio@eigenlab.org>
* Copyright (C) 2016-2017 Gioacchino Mazzurco <gio@eigenlab.org>
* Copyright (C) 2016 Manu Pineda <manu@cooperativa.cat>
*
* This program is free software: you can redistribute it and/or modify
@ -17,9 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBRESAPILOCALCLIENT_H
#define LIBRESAPILOCALCLIENT_H
#include <QLocalSocket>
#include <QQueue>
#include <QJSValue>
@ -95,5 +93,3 @@ signals:
void debugChanged();
#endif // QT_DEBUG
};
#endif // LIBRESAPILOCALCLIENT_H