| 1 | /* |
| 2 | * Copyright (C) 2016 Canonical, Ltd. |
| 3 | * |
| 4 | * This program is free software: you can redistribute it and/or modify it under |
| 5 | * the terms of the GNU Lesser General Public License version 3, as published by |
| 6 | * the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, |
| 10 | * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | * Lesser General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #ifndef MENUREGISTRAR_H |
| 18 | #define MENUREGISTRAR_Hcxx . . $ `src/lomiriappmenu/menuregistrar.h:18:9`! |
| 19 | |
| 20 | #include <QObject> |
| 21 | #include <QWindow> |
| 22 | #include <QPointer> |
| 23 | #include <QDBusObjectPath> |
| 24 | |
| 25 | #include <gio/gio.h> |
| 26 | |
| 27 | class LomiriMenuRegistrarcxx . . $ LomiriMenuRegistrar# : public QObjectcxx . . $ QObject# |
| 28 | { |
| 29 | Q_OBJECTcxx . . $ LomiriMenuRegistrar#trUtf8(75d9f1c324b4579d). |
| 30 | public: |
| 31 | LomiriMenuRegistrarcxx . . $ LomiriMenuRegistrar#LomiriMenuRegistrar(49f6e7a06ebc5aa8).(); |
| 32 | ~cxx . . $ LomiriMenuRegistrar#`~LomiriMenuRegistrar`(49f6e7a06ebc5aa8).LomiriMenuRegistrarcxx . . $ LomiriMenuRegistrar#(); |
| 33 | |
| 34 | void registerMenuForWindowcxx . . $ LomiriMenuRegistrar#registerMenuForWindow(ec3123c1967ea00e).(QWindowcxx . . $ QWindow#* window, const QDBusObjectPathcxx . . $ QDBusObjectPath#& path); |
| 35 | void unregisterMenucxx . . $ LomiriMenuRegistrar#unregisterMenu(49f6e7a06ebc5aa8).(); |
| 36 | |
| 37 | private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 38 | void registerSurfaceMenucxx . . $ LomiriMenuRegistrar#registerSurfaceMenu(49f6e7a06ebc5aa8).(); |
| 39 | void onRegistrarServiceChangedcxx . . $ LomiriMenuRegistrar#onRegistrarServiceChanged(49f6e7a06ebc5aa8).(); |
| 40 | |
| 41 | private: |
| 42 | void registerMenucxx . . $ LomiriMenuRegistrar#registerMenu(49f6e7a06ebc5aa8).(); |
| 43 | |
| 44 | void registerApplicationMenucxx . . $ LomiriMenuRegistrar#registerApplicationMenu(49f6e7a06ebc5aa8).(); |
| 45 | void unregisterApplicationMenucxx . . $ LomiriMenuRegistrar#unregisterApplicationMenu(49f6e7a06ebc5aa8).(); |
| 46 | |
| 47 | void unregisterSurfaceMenucxx . . $ LomiriMenuRegistrar#unregisterSurfaceMenu(49f6e7a06ebc5aa8).(); |
| 48 | |
| 49 | GDBusConnection *m_connectioncxx . . $ LomiriMenuRegistrar#m_connection.; |
| 50 | QStringcxx . . $ QString# m_servicecxx . . $ LomiriMenuRegistrar#m_service.; |
| 51 | QDBusObjectPathcxx . . $ QDBusObjectPath# m_pathcxx . . $ LomiriMenuRegistrar#m_path.; |
| 52 | QPointercxx . . $ QPointer#<QWindowcxx . . $ QWindow#> m_windowcxx . . $ LomiriMenuRegistrar#m_window.; |
| 53 | QStringcxx . . $ QString# m_registeredSurfaceIdcxx . . $ LomiriMenuRegistrar#m_registeredSurfaceId.; |
| 54 | pid_tcxx . . $ pid_t# m_registeredProcessIdcxx . . $ LomiriMenuRegistrar#m_registeredProcessId.; |
| 55 | }; |
| 56 | |
| 57 | |
| 58 | #endif // MENUREGISTRAR_H |
| 59 |