diff options
author | 2023-11-30 15:51:56 +0200 | |
---|---|---|
committer | 2023-12-04 23:47:03 +0200 | |
commit | f00c1e19f5c4cbcd185c8043f3062612bf1537f7 (patch) | |
tree | 453b6571c97cc90dbc98d8a8e3d654f7e9208ad2 /app/main.cpp | |
parent | 7fd8b36ce15d7617229a86a05e4e431631e684d5 (diff) |
tbtnavi: Add gRPC API support
This adds support for gRPC API specifically specifically to allow
placing the application on a different output, the remoting one.
Bug-AGL: SPEC-5003
Change-Id: Ibe7047b3b21dc67c44111a8b615a51588d2216d9
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/main.cpp b/app/main.cpp index 0b896b4..b3fd47a 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -14,10 +14,12 @@ #include "qcheapruler.hpp" #include "file_operation.h" +#include "AglShellGrpcClient.h" + int main(int argc, char *argv[]) { - QString graphic_role = QString("tbtnavi"); - struct agl_shell_desktop *agl_shell_desktop = nullptr; + std::string our_name = "tbtnavi"; + QString graphic_role = QString(our_name.c_str()); setenv("QT_QUICK_CONTROLS_STYLE", "AGL", 1); @@ -28,6 +30,9 @@ int main(int argc, char *argv[]) QCoreApplication::setApplicationVersion("0.1.0"); app.setDesktopFileName(graphic_role); + GrpcClient *client = new GrpcClient(); + client->SetAppOnOutput(our_name, "remoting-remote-1"); + // Load qml QQmlApplicationEngine engine; |