2
Copyright (C) 2010 Collabora Ltd. <info@collabora.co.uk>
3
@author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
5
This library is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published
7
by the Free Software Foundation; either version 2.1 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU Lesser General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef DISPATCHOPERATION_H
19
#define DISPATCHOPERATION_H
21
#include <QtCore/QObject>
22
#include <TelepathyQt/ChannelDispatchOperation>
24
class ChannelApprover;
26
class DispatchOperation : public QObject
30
DispatchOperation(const Tp::ChannelDispatchOperationPtr & dispatchOperation, QObject *parent);
31
virtual ~DispatchOperation();
35
void onChannelLost(const Tp::ChannelPtr & channel,
36
const QString & errorName,
37
const QString & errorMessage);
38
void onDispatchOperationInvalidated(Tp::DBusProxy *proxy,
39
const QString & errorName,
40
const QString & errorMessage);
41
void onChannelAccepted();
42
void onChannelRejected();
43
void onClaimFinished(Tp::PendingOperation *operation);
46
Tp::ChannelDispatchOperationPtr m_dispatchOperation;
47
QHash<Tp::ChannelPtr, ChannelApprover*> m_channelApprovers;
50
#endif // DISPATCHOPERATION_H