• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

krdc

  • sources
  • kde-4.14
  • kdenetwork
  • krdc
  • krdc_approver
approver.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2009 Collabora Ltd <info@collabora.co.uk>
4 ** Copyright (C) 2009 Abner Silva <abner.silva@kdemail.net>
5 **
6 ** This file is part of KDE.
7 **
8 ** This program is free software; you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License as published by
10 ** the Free Software Foundation; either version 2 of the License, or
11 ** (at your option) any later version.
12 **
13 ** This program is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ** GNU General Public License for more details.
17 **
18 ** You should have received a copy of the GNU General Public License
19 ** along with this program; see the file COPYING. If not, write to
20 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 ** Boston, MA 02110-1301, USA.
22 **
23 ****************************************************************************/
24 
25 #ifndef APPROVER_H
26 #define APPROVER_H
27 
28 #include <QObject>
29 
30 #include <TelepathyQt/Channel>
31 
32 class KNotification;
33 
34 class Approver : public QObject
35 {
36  Q_OBJECT
37  Q_DISABLE_COPY(Approver)
38 
39 public:
40  ~Approver();
41 
42 private Q_SLOTS:
43  void onAccepted();
44  void onRejected();
45  void onDispatchOperationReady(Tp::PendingOperation*);
46  void onChannelReady(Tp::PendingOperation*);
47  void onClaimFinished(Tp::PendingOperation*);
48 
49 Q_SIGNALS:
50  void finished();
51 
52 private:
53  Approver(const Tp::MethodInvocationContextPtr<> &context,
54  const QList<Tp::ChannelPtr> &channels,
55  const Tp::ChannelDispatchOperationPtr &dispatchOperation,
56  QObject *parent);
57 
58 private:
59  Tp::MethodInvocationContextPtr<> m_context;
60  QList<Tp::ChannelPtr> m_channels;
61  Tp::ChannelDispatchOperationPtr m_dispatchOp;
62  QPointer<KNotification> m_notification;
63 
64  friend class ApproverManager;
65 };
66 #endif
Approver::finished
void finished()
QPointer< KNotification >
Approver::~Approver
~Approver()
Definition: approver.cpp:117
QObject
QList< Tp::ChannelPtr >
Approver
Definition: approver.h:34
ApproverManager
Definition: approvermanager.h:32
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krdc

Skip menu "krdc"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal