~unity-api-team/hud/test-failures

« back to all changes in this revision

Viewing changes to libqtgmenu/internal/QtGMenuModel.h

  • Committer: Pete Woods
  • Date: 2014-03-19 23:26:48 UTC
  • Revision ID: pete.woods@canonical.com-20140319232648-c1nhfkfnvgg11xm2
Prefix handling should be more robust

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef QTGMENUMODEL_H
20
20
#define QTGMENUMODEL_H
21
21
 
 
22
#include <QDBusObjectPath>
22
23
#include <QObject>
23
24
#include <QMap>
24
25
#include <QMenu>
43
44
  };
44
45
 
45
46
  explicit QtGMenuModel( GMenuModel* model );
46
 
  QtGMenuModel( GMenuModel* model, const QString& bus_name, const QString& menu_path );
 
47
  QtGMenuModel( GMenuModel* model, const QString& bus_name, const QString& menu_path, const QMap<QString, QDBusObjectPath>& action_paths );
47
48
  virtual ~QtGMenuModel();
48
49
 
49
50
  GMenuModel* Model() const;
59
60
  constexpr static const char* c_property_actionName = "actionName";
60
61
  constexpr static const char* c_property_isParameterized = "isParameterized";
61
62
  constexpr static const char* c_property_busName = "busName";
 
63
  constexpr static const char* c_property_actionsPath = "actionsPath";
62
64
  constexpr static const char* c_property_menuPath = "menuPath";
63
65
  constexpr static const char* c_property_keywords = "keywords";
64
66
  constexpr static const char* c_property_hud_toolbar_item = "hud-toolbar-item";
113
115
 
114
116
  QString m_bus_name;
115
117
  QString m_menu_path;
 
118
  QMap<QString, QDBusObjectPath> m_action_paths;
116
119
 
117
120
  std::map< QString, QAction* > m_actions;
118
121
};