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

« back to all changes in this revision

Viewing changes to libqtgmenu/internal/QtGMenuImporterPrivate.h

  • Committer: Charles Kerr
  • Date: 2014-03-17 17:50:58 UTC
  • mfrom: (376.2.5 hud)
  • Revision ID: charles.kerr@canonical.com-20140317175058-7efcri9kck5j3i0q
bzr merge lp:hud

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
Q_OBJECT
40
40
 
41
41
public:
42
 
  QtGMenuImporterPrivate( const QString& service, const QString& menu_path,
43
 
      const QString& actions_path, QtGMenuImporter& parent );
 
42
  QtGMenuImporterPrivate( const QString& service, const QDBusObjectPath& menu_path,
 
43
                          const QMap<QString, QDBusObjectPath>& action_paths, QtGMenuImporter& parent );
44
44
  virtual ~QtGMenuImporterPrivate();
45
45
 
46
46
  GMenuModel* GetGMenuModel();
47
 
  GActionGroup* GetGActionGroup();
 
47
  GActionGroup* GetGActionGroup( int index = 0);
48
48
 
49
49
  std::shared_ptr< QMenu > GetQMenu();
50
50
 
52
52
 
53
53
private:
54
54
  void ClearMenuModel();
55
 
  void ClearActionGroup();
 
55
  void ClearActionGroups();
56
56
 
57
57
  void LinkMenuActions();
58
58
 
70
70
 
71
71
  GDBusConnection* m_connection;
72
72
  std::string m_service;
73
 
  std::string m_menu_path;
74
 
  std::string m_actions_path;
 
73
  QDBusObjectPath m_menu_path;
 
74
  QMap<QString, QDBusObjectPath> m_action_paths;
75
75
 
76
76
  std::shared_ptr< QtGMenuModel > m_menu_model = nullptr;
77
 
  std::shared_ptr< QtGActionGroup > m_action_group = nullptr;
 
77
  std::vector< std::shared_ptr< QtGActionGroup > > m_action_groups;
78
78
 
79
79
  bool m_menu_actions_linked = false;
80
80
};