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

krfb

  • sources
  • kde-4.12
  • 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, const Tp::ContactPtr & contact, QObject* parent = 0)
28  : RfbClient(client, parent), m_contact(contact) {}
29 
30  virtual QString name() const;
31 
32 private:
33  Tp::ContactPtr m_contact;
34 };
35 
36 
37 class PendingTubesRfbClient : public PendingRfbClient
38 {
39  Q_OBJECT
40 public:
41  PendingTubesRfbClient(rfbClientPtr client, QObject* parent = 0)
42  : PendingRfbClient(client, parent), m_processNewClientCalled(false) {}
43 
44  void setContact(const Tp::ContactPtr & contact);
45 
46 protected Q_SLOTS:
47  virtual void processNewClient();
48 
49 private Q_SLOTS:
50  void showConfirmationDialog();
51  void dialogAccepted();
52 
53 private:
54  Tp::ContactPtr m_contact;
55  bool m_processNewClientCalled;
56 };
57 
58 #endif // TUBESRFBCLIENT_H
TubesRfbClient::TubesRfbClient
TubesRfbClient(rfbClientPtr client, const Tp::ContactPtr &contact, QObject *parent=0)
Definition: tubesrfbclient.h:27
QObject
_rfbClientRec
Definition: libvncserver/rfb/rfb.h:417
TubesRfbClient
Definition: tubesrfbclient.h:24
PendingTubesRfbClient::PendingTubesRfbClient
PendingTubesRfbClient(rfbClientPtr client, QObject *parent=0)
Definition: tubesrfbclient.h:41
PendingTubesRfbClient::processNewClient
virtual void processNewClient()
Definition: tubesrfbclient.cpp:40
rfbclient.h
RfbClient
Definition: krfb/rfbclient.h:26
PendingRfbClient
Definition: pendingrfbclient.h:24
PendingTubesRfbClient::setContact
void setContact(const Tp::ContactPtr &contact)
Definition: tubesrfbclient.cpp:31
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:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:10 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
  • 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