equal
deleted
inserted
replaced
14 * Description: ?Description |
14 * Description: ?Description |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 #ifndef GLXACTIONHANDLER_H |
20 #ifndef GLXACTIONHANDLER_H |
21 #define GLXACTIONHANDLER_H |
21 #define GLXACTIONHANDLER_H |
22 |
22 |
23 #include <QObject> |
23 #include <QObject> |
24 #include <QHash> |
24 #include <QHash> |
25 |
25 |
26 class GlxCommandHandler; |
26 class GlxCommandHandler; |
|
27 class QModelIndex; |
27 |
28 |
28 class GlxActionHandler : public QObject |
29 class GlxActionHandler : public QObject |
29 { |
30 { |
30 Q_OBJECT |
31 Q_OBJECT |
31 |
32 |
34 ~GlxActionHandler(); |
35 ~GlxActionHandler(); |
35 void addCommandHandler(int commandId,GlxCommandHandler* commandHandler); |
36 void addCommandHandler(int commandId,GlxCommandHandler* commandHandler); |
36 |
37 |
37 signals : |
38 signals : |
38 |
39 |
39 public slots: |
40 public : |
40 void handleAction(qint32 commandId,int collectionId); |
41 void handleAction(qint32 commandId,int collectionId,QList<QModelIndex> indexList = QList<QModelIndex>()); |
41 |
|
42 protected: |
|
43 |
|
44 private slots: |
|
45 |
42 |
46 private://functions |
43 private://functions |
47 |
44 |
48 private://data |
45 private://data |
49 QHash<int , GlxCommandHandler*> mCommandHandlerList; |
46 QHash<int , GlxCommandHandler*> mCommandHandlerList; |