~ci-train-bot/qtubuntu/qtubuntu-ubuntu-artful-2819

« back to all changes in this revision

Viewing changes to src/ubuntuappmenu/qtubuntuextraactionhandler.h

  • Committer: Bileto Bot
  • Author(s): Albert Astals Cid
  • Date: 2017-03-20 17:30:17 UTC
  • mfrom: (371.6.12 aboutToShow)
  • Revision ID: ci-train-bot@canonical.com-20170320173017-gg2416diehq0hld1
Set qtubuntu-tag and handle aboutToShow calls (LP: #1664578)

Approved by: Charles Kerr, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 QTUBUNTUEXTRAACTIONHANDLER_H
 
18
#define QTUBUNTUEXTRAACTIONHANDLER_H
 
19
 
 
20
#include <gio/gio.h>
 
21
 
 
22
class QByteArray;
 
23
 
 
24
class UbuntuGMenuModelExporter;
 
25
 
 
26
class QtUbuntuExtraActionHandler
 
27
{
 
28
public:
 
29
    QtUbuntuExtraActionHandler();
 
30
    ~QtUbuntuExtraActionHandler();
 
31
 
 
32
    bool connect(GDBusConnection *connection, const QByteArray &menuPath, UbuntuGMenuModelExporter *gmenuexporter);
 
33
    void disconnect(GDBusConnection *connection);
 
34
 
 
35
private:
 
36
    GDBusNodeInfo *m_introspection_data;
 
37
    guint m_registration_id;
 
38
};
 
39
 
 
40
#endif