Debian Codegraph @

src/lomiriappmenu/gmenumodelexporter.h

raw symbols SCIP
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 GMENUMODELEXPORTER_H
18 #define GMENUMODELEXPORTER_Hcxx . . $ `src/lomiriappmenu/gmenumodelexporter.h:18:9`!
19
20 #include "gmenumodelplatformmenu.h"cxx . . $ `<file>/src/lomiriappmenu/gmenumodelplatformmenu.h`/
21
22 #include <gio/gio.h>
23
24 #include <QTimer>
25 #include <QMap>
26 #include <QSet>
27 #include <QMetaObject>
28
29 class LomiriAppMenuExtraActionHandlercxx . . $ LomiriAppMenuExtraActionHandler#;
30
31 // Base class for a gmenumodel exporter
32 class LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter# : public QObjectcxx . . $ QObject#
33 {
34 Q_OBJECTcxx . . $ LomiriGMenuModelExporter#QPrivateSignal#
35 public:
36 virtual ~cxx . . $ LomiriGMenuModelExporter#`~LomiriGMenuModelExporter`(49f6e7a06ebc5aa8).LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#();
37
38 void exportModelscxx . . $ LomiriGMenuModelExporter#exportModels(49f6e7a06ebc5aa8).();
39 void unexportModelscxx . . $ LomiriGMenuModelExporter#unexportModels(49f6e7a06ebc5aa8).();
40
41 QStringcxx . . $ QString# menuPathcxx . . $ LomiriGMenuModelExporter#menuPath(6ef7b6c27b00b43d).() const { return m_menuPathcxx . . $ QString#QString(3520e46b33348bf6).;}
42
43 void aboutToShowcxx . . $ LomiriGMenuModelExporter#aboutToShow(891dc3055356b409).(quint64cxx . . $ quint64# tag);
44
45 protected:
46 LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#LomiriGMenuModelExporter(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent);
47
48 GMenuItem *createSubmenucxx . . $ LomiriGMenuModelExporter#createSubmenu(dd994908ccc0193c).(QPlatformMenucxx . . $ QPlatformMenu#* platformMenu, LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#* forItem);
49 GMenuItem *createMenuItemcxx . . $ LomiriGMenuModelExporter#createMenuItem(8d82dffb65a6448e).(QPlatformMenuItemcxx . . $ QPlatformMenuItem#* platformMenuItem, GMenu *parentMenu);
50 GMenuItem *createSectioncxx . . $ LomiriGMenuModelExporter#createSection(503cdeef0c91802f).(QListcxx . . $ QList#<QPlatformMenuItem*>::const_iteratorcxx . . $ QList#const_iterator# iter, QListcxx . . $ QList#<QPlatformMenuItem*>::const_iteratorcxx . . $ QList#const_iterator# end);
51 void addActioncxx . . $ LomiriGMenuModelExporter#addAction(69192ff8ee5ec3f5).(const QByteArraycxx . . $ QByteArray#& name, LomiriPlatformMenuItemcxx . . $ LomiriPlatformMenuItem#* gplatformItem, GMenu *parentMenu);
52
53 void addSubmenuItemscxx . . $ LomiriGMenuModelExporter#addSubmenuItems(f42684d8d844e395).(LomiriPlatformMenucxx . . $ LomiriPlatformMenu#* gplatformMenu, GMenu* menu);
54 void processItemForGMenucxx . . $ LomiriGMenuModelExporter#processItemForGMenu(c1aa227cdccb768).(QPlatformMenuItemcxx . . $ QPlatformMenuItem#* item, GMenu* gmenu);
55
56 void clearcxx . . $ LomiriGMenuModelExporter#clear(49f6e7a06ebc5aa8).();
57
58 void timerEventcxx . . $ LomiriGMenuModelExporter#timerEvent(b9e57d1150f23bf5).(QTimerEventcxx . . $ QTimerEvent# *e) override;
59
60 protected:
61 GDBusConnection *m_connectioncxx . . $ LomiriGMenuModelExporter#m_connection.;
62 GMenu *m_gmainMenucxx . . $ LomiriGMenuModelExporter#m_gmainMenu.;
63 GSimpleActionGroup *m_gactionGroupcxx . . $ LomiriGMenuModelExporter#m_gactionGroup.;
64 guint m_exportedModelcxx . . $ LomiriGMenuModelExporter#m_exportedModel.;
65 guint m_exportedActionscxx . . $ LomiriGMenuModelExporter#m_exportedActions.;
66 LomiriAppMenuExtraActionHandlercxx . . $ LomiriAppMenuExtraActionHandler# *m_lomiriAppMenuExtraHandlercxx . . $ LomiriGMenuModelExporter#m_lomiriAppMenuExtraHandler.;
67 QTimercxx . . $ QTimer# m_structureTimercxx . . $ LomiriGMenuModelExporter#m_structureTimer.;
68 QStringcxx . . $ QString# m_menuPathcxx . . $ LomiriGMenuModelExporter#m_menuPath.;
69
70 // LomiriPlatformMenu::tag -> LomiriPlatformMenu
71 QMapcxx . . $ QMap#<quint64cxx . . $ quint64#, LomiriPlatformMenucxx . . $ LomiriPlatformMenu#*> m_submenusWithTagcxx . . $ LomiriGMenuModelExporter#m_submenusWithTag.;
72
73 // LomiriPlatformMenu -> reload TimerId (startTimer)
74 QHashcxx . . $ QHash#<LomiriPlatformMenucxx . . $ LomiriPlatformMenu#*, int> m_reloadMenuTimerscxx . . $ LomiriGMenuModelExporter#m_reloadMenuTimers.;
75
76 QHashcxx . . $ QHash#<LomiriPlatformMenucxx . . $ LomiriPlatformMenu#*, GMenu*> m_gmenusForMenuscxx . . $ LomiriGMenuModelExporter#m_gmenusForMenus.;
77
78 QHashcxx . . $ QHash#<GMenu*, QSetcxx . . $ QSet#<QByteArraycxx . . $ QByteArray#>> m_actionscxx . . $ LomiriGMenuModelExporter#m_actions.;
79 QHashcxx . . $ QHash#<GMenu*, QVectorcxx . . $ QVector#<QMetaObjectcxx . . $ QMetaObject#::Connectioncxx . . $ QMetaObject#Connection#>> m_propertyConnectionscxx . . $ LomiriGMenuModelExporter#m_propertyConnections.;
80
81 };
82
83 // Class which exports a qt platform menu bar.
84 class LomiriMenuBarExportercxx . . $ LomiriMenuBarExporter# : public LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#
85 {
86 public:
87 LomiriMenuBarExportercxx . . $ LomiriMenuBarExporter#LomiriMenuBarExporter(160b59edbd50934f).(LomiriPlatformMenuBarcxx . . $ LomiriPlatformMenuBar# *parent);
88 ~cxx . . $ LomiriMenuBarExporter#`~LomiriMenuBarExporter`(49f6e7a06ebc5aa8).LomiriMenuBarExportercxx . . $ LomiriMenuBarExporter#();
89 };
90
91 // Class which exports a qt platform menu.
92 // This will allow exporting of context menus.
93 class LomiriMenuExportercxx . . $ LomiriMenuExporter# : public LomiriGMenuModelExportercxx . . $ LomiriGMenuModelExporter#
94 {
95 public:
96 LomiriMenuExportercxx . . $ LomiriMenuExporter#LomiriMenuExporter(3d7a177ea62bda99).(LomiriPlatformMenucxx . . $ LomiriPlatformMenu# *parent);
97 ~cxx . . $ LomiriMenuExporter#`~LomiriMenuExporter`(49f6e7a06ebc5aa8).LomiriMenuExportercxx . . $ LomiriMenuExporter#();
98 };
99
100 #endif // GMENUMODELEXPORTER_H