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

krfb

  • sources
  • kde-4.14
  • kdenetwork
  • krfb
  • krfb
tubesrfbclient.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Collabora Ltd. <info@collabora.co.uk>
3  @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
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 GNU
13  General Public License for more details.
14 
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/>.
17 */
18 #ifndef TUBESRFBCLIENT_H
19 #define TUBESRFBCLIENT_H
20 
21 #include "rfbclient.h"
22 #include <TelepathyQt/Contact>
23 
24 class TubesRfbClient : public RfbClient
25 {
26 public:
27  TubesRfbClient(rfbClientPtr client,
28  const Tp::ContactPtr &contact, QObject *parent=0)
29  : RfbClient(client, parent), m_contact(contact)
30  {}
31 
32  virtual QString name() const;
33 
34 private:
35  Tp::ContactPtr m_contact;
36 };
37 
38 //*********
39 
40 class PendingTubesRfbClient : public PendingRfbClient
41 {
42  Q_OBJECT
43 public:
44  PendingTubesRfbClient(rfbClientPtr client, QObject* parent = 0);
45 
46  void setContact(const Tp::ContactPtr & contact);
47 
48 protected Q_SLOTS:
49  virtual void processNewClient();
50 
51 private Q_SLOTS:
52  void showConfirmationDialog();
53  void dialogAccepted();
54 
55 private:
56  Tp::ContactPtr m_contact;
57  bool m_processNewClientCalled;
58 };
59 
60 #endif // TUBESRFBCLIENT_H
TubesRfbClient::TubesRfbClient
TubesRfbClient(rfbClientPtr client, const Tp::ContactPtr &contact, QObject *parent=0)
Definition: tubesrfbclient.h:27
_rfbClientRec
Definition: libvncserver/rfb/rfb.h:417
TubesRfbClient
Definition: tubesrfbclient.h:24
QObject
PendingTubesRfbClient::PendingTubesRfbClient
PendingTubesRfbClient(rfbClientPtr client, QObject *parent=0)
Definition: tubesrfbclient.cpp:32
QString
PendingTubesRfbClient::processNewClient
virtual void processNewClient()
Definition: tubesrfbclient.cpp:48
rfbclient.h
RfbClient
Definition: krfb/rfbclient.h:26
PendingRfbClient
Definition: krfb/rfbclient.h:72
PendingTubesRfbClient::setContact
void setContact(const Tp::ContactPtr &contact)
Definition: tubesrfbclient.cpp:39
QObject::parent
QObject * parent() const
TubesRfbClient::name
virtual QString name() const
Returns a name for the client, to be shown to the user.
Definition: tubesrfbclient.cpp:25
PendingTubesRfbClient
Definition: tubesrfbclient.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krfb

Skip menu "krfb"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

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