equal
deleted
inserted
replaced
50 QT_FORWARD_DECLARE_CLASS(QDomElement); |
50 QT_FORWARD_DECLARE_CLASS(QDomElement); |
51 |
51 |
52 struct BusSignature |
52 struct BusSignature |
53 { |
53 { |
54 QString mService, mPath, mInterface, mName; |
54 QString mService, mPath, mInterface, mName; |
|
55 QString mTypeSig; |
55 }; |
56 }; |
56 |
57 |
57 class QDBusViewer: public QWidget |
58 class QDBusViewer: public QWidget |
58 { |
59 { |
59 Q_OBJECT |
60 Q_OBJECT |
63 public slots: |
64 public slots: |
64 void refresh(); |
65 void refresh(); |
65 void about(); |
66 void about(); |
66 |
67 |
67 private slots: |
68 private slots: |
68 void serviceChanged(QTreeWidgetItem *item); |
69 void serviceChanged(const QModelIndex &index); |
69 void showContextMenu(const QPoint &); |
70 void showContextMenu(const QPoint &); |
70 void connectionRequested(const BusSignature &sig); |
71 void connectionRequested(const BusSignature &sig); |
71 void callMethod(const BusSignature &sig); |
72 void callMethod(const BusSignature &sig); |
72 void getProperty(const BusSignature &sig); |
73 void getProperty(const BusSignature &sig); |
73 void setProperty(const BusSignature &sig); |
74 void setProperty(const BusSignature &sig); |
89 QDBusConnection c; |
90 QDBusConnection c; |
90 QString currentService; |
91 QString currentService; |
91 QTreeView *tree; |
92 QTreeView *tree; |
92 QAction *refreshAction; |
93 QAction *refreshAction; |
93 QTreeWidget *services; |
94 QTreeWidget *services; |
|
95 QStringListModel *servicesModel; |
|
96 QSortFilterProxyModel *servicesFilterModel; |
|
97 QLineEdit *serviceFilterLine; |
|
98 QListView *servicesView; |
94 QTextBrowser *log; |
99 QTextBrowser *log; |
95 QRegExp objectPathRegExp; |
100 QRegExp objectPathRegExp; |
96 }; |
101 }; |
97 |
102 |
98 #endif |
103 #endif |