• 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
tubesrfbserver.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009-2011 Collabora Ltd. <info@collabora.co.uk>
3  @author George Goldberg <george.goldberg@collabora.co.uk>
4  @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef TUBESRFBSERVER_H
20 #define TUBESRFBSERVER_H
21 
22 #include "rfbserver.h"
23 #include <QtNetwork/QHostAddress>
24 #include <TelepathyQt/Types>
25 
26 #ifdef KRFB_WITH_KDE_TELEPATHY
27 namespace KTp {
28  class ContactsListModel;
29 }
30 #endif
31 
32 class TubesRfbServer : public RfbServer
33 {
34  Q_OBJECT
35 public:
36  static TubesRfbServer *instance;
37  static void init();
38 
39  virtual ~TubesRfbServer();
40 #ifdef KRFB_WITH_KDE_TELEPATHY
41  KTp::ContactsListModel *contactsListModel();
42 #endif
43 
44 protected:
45  TubesRfbServer(QObject *parent = 0);
46 
47  virtual PendingRfbClient* newClient(rfbClientPtr client);
48 
49 private Q_SLOTS:
50  void startAndCheck();
51 
52  void onTubeRequested();
53  void onTubeClosed();
54 
55  void onNewTcpConnection(
56  const QHostAddress &sourceAddress,
57  quint16 sourcePort,
58  const Tp::AccountPtr &account,
59  const Tp::ContactPtr &contact,
60  const Tp::OutgoingStreamTubeChannelPtr &tube);
61 
62  void onTcpConnectionClosed(
63  const QHostAddress &sourceAddress,
64  quint16 sourcePort,
65  const Tp::AccountPtr &account,
66  const Tp::ContactPtr &contact,
67  const QString &error,
68  const QString &message,
69  const Tp::OutgoingStreamTubeChannelPtr &tube);
70 
71 #ifdef KRFB_WITH_KDE_TELEPATHY
72  void onAccountManagerReady();
73 #endif
74 
75 private:
76  struct Private;
77  Private *const d;
78 
79 #ifdef KRFB_WITH_KDE_TELEPATHY
80  KTp::ContactsListModel *m_contactsListModel;
81  Tp::AccountManagerPtr m_accountManager;
82 #endif
83 
84 };
85 
86 #endif // TUBESRFBSERVER_H
RfbServer
Definition: rfbserver.h:27
rfbserver.h
QHostAddress
_rfbClientRec
Definition: libvncserver/rfb/rfb.h:417
TubesRfbServer::newClient
virtual PendingRfbClient * newClient(rfbClientPtr client)
Definition: tubesrfbserver.cpp:239
QObject
TubesRfbServer::instance
static TubesRfbServer * instance
Definition: tubesrfbserver.h:36
QString
TubesRfbServer::~TubesRfbServer
virtual ~TubesRfbServer()
Definition: tubesrfbserver.cpp:157
TubesRfbServer::init
static void init()
Definition: tubesrfbserver.cpp:54
PendingRfbClient
Definition: krfb/rfbclient.h:72
TubesRfbServer::TubesRfbServer
TubesRfbServer(QObject *parent=0)
Definition: tubesrfbserver.cpp:62
QObject::parent
QObject * parent() const
TubesRfbServer
Definition: tubesrfbserver.h:32
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