• 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
rfbserver.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009-2010 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  Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef RFBSERVER_H
21 #define RFBSERVER_H
22 
23 #include "rfb.h"
24 #include "rfbclient.h"
25 #include <QtCore/QRect>
26 
27 class RfbServer : public QObject
28 {
29  Q_OBJECT
30 public:
31  RfbServer(QObject *parent = 0);
32  virtual ~RfbServer();
33 
34  QByteArray listeningAddress() const;
35  int listeningPort() const;
36  bool passwordRequired() const;
37 
38  void setListeningAddress(const QByteArray & address);
39  void setListeningPort(int port);
40  void setPasswordRequired(bool passwordRequired);
41 
42 public Q_SLOTS:
43  virtual bool start();
44  virtual void stop(bool disconnectClients = true);
45 
46  void updateScreen(const QList<QRect> & modifiedTiles);
47  void updateCursorPosition(const QPoint & position);
48 
49 private Q_SLOTS:
50  void krfbSendServerCutText();
51  void onListenSocketActivated();
52  void pendingClientFinished(RfbClient *client);
53 
54 protected:
55  virtual PendingRfbClient *newClient(rfbClientPtr client) = 0;
56 
57 private:
58  static rfbNewClientAction newClientHook(rfbClientPtr cl);
59  static void clientGoneHook(rfbClientPtr cl);
60 
61  static rfbBool passwordCheck(rfbClientPtr cl, const char *encryptedPassword, int len);
62  static void keyboardHook(rfbBool down, rfbKeySym keySym, rfbClientPtr cl);
63  static void pointerHook(int bm, int x, int y, rfbClientPtr cl);
64  static void clipboardHook(char *str, int len, rfbClientPtr cl);
65 
66  Q_DISABLE_COPY(RfbServer)
67 
68  struct Private;
69  Private *const d;
70 };
71 
72 #endif // RFBSERVER_H
RfbServer
Definition: rfbserver.h:27
RfbServer::setListeningPort
void setListeningPort(int port)
Definition: rfbserver.cpp:78
QByteArray
RfbServer::updateScreen
void updateScreen(const QList< QRect > &modifiedTiles)
Definition: rfbserver.cpp:158
rfbBool
int8_t rfbBool
Definition: rfbproto.h:102
QPoint
rfbKeySym
uint32_t rfbKeySym
Definition: rfbproto.h:109
_rfbClientRec
Definition: libvncserver/rfb/rfb.h:417
RfbServer::listeningPort
int listeningPort() const
Definition: rfbserver.cpp:63
QObject
RfbServer::start
virtual bool start()
Definition: rfbserver.cpp:88
RfbServer::stop
virtual void stop(bool disconnectClients=true)
Definition: rfbserver.cpp:146
QList< QRect >
RfbServer::setPasswordRequired
void setPasswordRequired(bool passwordRequired)
Definition: rfbserver.cpp:83
rfbclient.h
RfbServer::~RfbServer
virtual ~RfbServer()
Definition: rfbserver.cpp:48
rfb.h
RfbClient
Definition: krfb/rfbclient.h:26
RfbServer::newClient
virtual PendingRfbClient * newClient(rfbClientPtr client)=0
RfbServer::setListeningAddress
void setListeningAddress(const QByteArray &address)
Definition: rfbserver.cpp:73
RfbServer::passwordRequired
bool passwordRequired() const
Definition: rfbserver.cpp:68
PendingRfbClient
Definition: krfb/rfbclient.h:72
RfbServer::RfbServer
RfbServer(QObject *parent=0)
Definition: rfbserver.cpp:36
rfbNewClientAction
rfbNewClientAction
Definition: libvncserver/rfb/rfb.h:122
RfbServer::listeningAddress
QByteArray listeningAddress() const
Definition: rfbserver.cpp:58
QObject::parent
QObject * parent() const
RfbServer::updateCursorPosition
void updateCursorPosition(const QPoint &position)
Definition: rfbserver.cpp:200
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