Debian Codegraph @

src/lomiriappmenu/lomiriappmenuextraactionhandler.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2017 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 LOMIRIAPPMENUEXTRAACTIONHANDLER_H
18 #define LOMIRIAPPMENUEXTRAACTIONHANDLER_H
19
20 #include <gio/gio.h>
21
22 class QByteArray;
23
24 class LomiriGMenuModelExporter;
25
26 class LomiriAppMenuExtraActionHandler
27 {
28 public:
29 LomiriAppMenuExtraActionHandler();
30 ~LomiriAppMenuExtraActionHandler();
31
32 bool connect(GDBusConnection *connection, const QByteArray &menuPath, LomiriGMenuModelExporter *gmenuexporter);
33 void disconnect(GDBusConnection *connection);
34
35 private:
36 GDBusNodeInfo *m_introspection_data;
37 guint m_registration_id;
38 };
39
40 #endif