• 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
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  virtual void handleKeyboardEvent(bool down, rfbKeySym keySym);
55  virtual void handleMouseEvent(int buttonMask, int x, int y);
56 
62  virtual bool checkPassword(const QByteArray & encryptedPassword);
63 
69  bool vncAuthCheckPassword(const QByteArray & password, const QByteArray & encryptedPassword) const;
70 
71 private Q_SLOTS:
72  void onSocketActivated();
73 
74 private:
77  void update();
78  friend class RfbServerManager;
79 
80  struct Private;
81  Private *const d;
82 };
83 
84 
85 class PendingRfbClient : public QObject
86 {
87  Q_OBJECT
88 public:
89  PendingRfbClient(rfbClientPtr client, QObject *parent = 0);
90  virtual ~PendingRfbClient();
91 
92 Q_SIGNALS:
93  void finished(RfbClient *client);
94 
95 protected Q_SLOTS:
96  virtual void processNewClient() = 0;
97 
98  void accept(RfbClient *newClient);
99  void reject();
100 
101 protected:
102  rfbClientPtr m_rfbClient;
103 };
104 
105 #endif // RFBCLIENT_H
RfbServer
Definition: rfbserver.h:27
RfbClient::controlEnabledChanged
void controlEnabledChanged(bool enabled)
RfbClient::setOnHold
void setOnHold(bool onHold)
Definition: rfbclient.cpp:90
RfbClient::handleKeyboardEvent
virtual void handleKeyboardEvent(bool down, rfbKeySym keySym)
Definition: rfbclient.cpp:106
RfbClient::isOnHold
bool isOnHold() const
Definition: rfbclient.cpp:85
QObject
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::checkPassword
virtual bool checkPassword(const QByteArray &encryptedPassword)
This method is supposed to check if the provided encryptedPassword matches the criteria for authentic...
Definition: rfbclient.cpp:120
RfbClient::holdStatusChanged
void holdStatusChanged(bool onHold)
RfbServerManager
Definition: rfbservermanager.h:30
RfbClient::controlCanBeEnabled
static bool controlCanBeEnabled()
Definition: rfbclient.cpp:67
RfbClient::closeConnection
void closeConnection()
Definition: rfbclient.cpp:99
rfb.h
RfbClient::vncAuthCheckPassword
bool vncAuthCheckPassword(const QByteArray &password, const QByteArray &encryptedPassword) const
This method checks if the encryptedPassword that was sent from the remote user matches the password t...
Definition: rfbclient.cpp:127
RfbClient
Definition: krfb/rfbclient.h:26
RfbClient::handleMouseEvent
virtual void handleMouseEvent(int buttonMask, int x, int y)
Definition: rfbclient.cpp:113
RfbClient::name
virtual QString name() const
Returns a name for the client, to be shown to the user.
Definition: rfbclient.cpp:61
PendingRfbClient
Definition: pendingrfbclient.h:24
RfbClient::controlEnabled
bool controlEnabled() const
RfbClient::setControlEnabled
void setControlEnabled(bool enabled)
Definition: rfbclient.cpp:77
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