• 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
krfb/rfbclient.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 RFBCLIENT_H
21 #define RFBCLIENT_H
22 
23 #include "rfb.h"
24 #include <QtCore/QObject>
25 
26 class RfbClient : public QObject
27 {
28  Q_OBJECT
29  Q_PROPERTY(bool controlEnabled READ controlEnabled WRITE setControlEnabled NOTIFY controlEnabledChanged)
30  Q_PROPERTY(bool onHold READ isOnHold WRITE setOnHold NOTIFY holdStatusChanged)
31 public:
32  RfbClient(rfbClientPtr client, QObject *parent = 0);
33  virtual ~RfbClient();
34 
36  virtual QString name() const;
37 
38  static bool controlCanBeEnabled();
39  bool controlEnabled() const;
40  bool isOnHold() const;
41 
42 public Q_SLOTS:
43  void setControlEnabled(bool enabled);
44  void setOnHold(bool onHold);
45  void closeConnection();
46 
47 Q_SIGNALS:
48  void controlEnabledChanged(bool enabled);
49  void holdStatusChanged(bool onHold);
50 
51 protected:
52  friend class RfbServer; //the following event handling methods are called by RfbServer
53 
54  rfbClientPtr getRfbClientPtr();
55  virtual void handleKeyboardEvent(bool down, rfbKeySym keySym);
56  virtual void handleMouseEvent(int buttonMask, int x, int y);
57 
58 private Q_SLOTS:
59  void onSocketActivated();
60 
61 private:
64  void update();
65  friend class RfbServerManager;
66 
67  struct Private;
68  Private *const d;
69 };
70 
71 
72 class PendingRfbClient : public QObject
73 {
74  Q_OBJECT
75 public:
76  PendingRfbClient(rfbClientPtr client, QObject *parent = 0);
77  virtual ~PendingRfbClient();
78 
79 Q_SIGNALS:
80  void finished(RfbClient *client);
81 
82 protected Q_SLOTS:
83  virtual void processNewClient() = 0;
84 
85  void accept(RfbClient *newClient);
86  void reject();
87 
88 protected:
89 
90  friend class RfbServer; //Following two methods are handled by RfbServer
91 
97  virtual bool checkPassword(const QByteArray & encryptedPassword);
98 
104  bool vncAuthCheckPassword(const QByteArray & password, const QByteArray & encryptedPassword) const;
105 
106  rfbClientPtr m_rfbClient;
107 };
108 
109 #endif // RFBCLIENT_H
RfbClient::getRfbClientPtr
rfbClientPtr getRfbClientPtr()
Definition: rfbclient.cpp:106
RfbServer
Definition: rfbserver.h:27
RfbClient::controlEnabledChanged
void controlEnabledChanged(bool enabled)
QByteArray
RfbClient::setOnHold
void setOnHold(bool onHold)
Definition: rfbclient.cpp:90
RfbClient::handleKeyboardEvent
virtual void handleKeyboardEvent(bool down, rfbKeySym keySym)
Definition: rfbclient.cpp:111
RfbClient::isOnHold
bool isOnHold() const
Definition: rfbclient.cpp:85
rfbKeySym
uint32_t rfbKeySym
Definition: rfbproto.h:109
RfbClient::onHold
bool onHold
Definition: krfb/rfbclient.h:30
_rfbClientRec
Definition: libvncserver/rfb/rfb.h:417
RfbClient::holdStatusChanged
void holdStatusChanged(bool onHold)
RfbServerManager
Definition: rfbservermanager.h:30
QObject
RfbClient::controlCanBeEnabled
static bool controlCanBeEnabled()
Definition: rfbclient.cpp:67
RfbClient::closeConnection
void closeConnection()
Definition: rfbclient.cpp:99
QString
rfb.h
RfbClient
Definition: krfb/rfbclient.h:26
RfbClient::handleMouseEvent
virtual void handleMouseEvent(int buttonMask, int x, int y)
Definition: rfbclient.cpp:118
RfbClient::name
virtual QString name() const
Returns a name for the client, to be shown to the user.
Definition: rfbclient.cpp:61
PendingRfbClient::m_rfbClient
rfbClientPtr m_rfbClient
Definition: krfb/rfbclient.h:106
PendingRfbClient
Definition: krfb/rfbclient.h:72
RfbClient::controlEnabled
bool controlEnabled() const
QObject::parent
QObject * parent() const
RfbClient::setControlEnabled
void setControlEnabled(bool enabled)
Definition: rfbclient.cpp:77
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