1 | /***************************************************************************** |
2 | * Copyright (C) 2009 by Shaun Reich <shaun.reich@kdemail.net> * |
3 | * * |
4 | * This program is free software; you can redistribute it and/or * |
5 | * modify it under the terms of the GNU General Public License as * |
6 | * published by the Free Software Foundation; either version 2 of * |
7 | * the License, or (at your option) any later version. * |
8 | * * |
9 | * This program is distributed in the hope that it will be useful, * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
12 | * GNU General Public License for more details. * |
13 | * * |
14 | * You should have received a copy of the GNU General Public License * |
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * |
16 | *****************************************************************************/ |
17 | |
18 | |
19 | #ifndef REQUESTVIEWCALLWATCHER_H |
20 | #define REQUESTVIEWCALLWATCHER_H |
21 | |
22 | #include <QDBusPendingCallWatcher> |
23 | class JobView; |
24 | |
25 | class RequestViewCallWatcher : public QDBusPendingCallWatcher |
26 | { |
27 | Q_OBJECT |
28 | |
29 | public: |
30 | RequestViewCallWatcher(JobView* jobView, const QString& service, const QDBusPendingCall& call, QObject* parent); |
31 | |
32 | |
33 | JobView* jobView() const { |
34 | return m_jobView; |
35 | } |
36 | QString service() const { |
37 | return m_service; |
38 | } |
39 | |
40 | signals: |
41 | void callFinished(RequestViewCallWatcher*); |
42 | |
43 | private slots: |
44 | void slotFinished() { |
45 | emit callFinished(this); |
46 | } |
47 | |
48 | private: |
49 | JobView* m_jobView; |
50 | QString m_service; |
51 | }; |
52 | |
53 | #endif /* REQUESTVIEWCALLWATCHER_H */ |
54 | |