• 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
invitationsrfbserver.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 INVITATIONSRFBSERVER_H
21 #define INVITATIONSRFBSERVER_H
22 
23 #include "rfbserver.h"
24 
25 namespace KWallet {
26  class Wallet;
27 }
28 
29 namespace DNSSD {
30  class PublicService;
31 }
32 
33 class InvitationsRfbServer : public RfbServer
34 {
35  Q_OBJECT
36 public:
37  static InvitationsRfbServer *instance;
38  static void init();
39 
40  const QString& desktopPassword() const;
41  void setDesktopPassword(const QString&);
42  const QString& unattendedPassword() const;
43  void setUnattendedPassword(const QString&);
44  bool allowUnattendedAccess() const;
45 
46 Q_SIGNALS:
47  void passwordChanged(const QString&);
48 
49 public Q_SLOTS:
50  bool start();
51  void stop(bool disconnectClients=true);
52  void toggleUnattendedAccess(bool allow=true);
53 
54 protected:
55  InvitationsRfbServer();
56  virtual ~InvitationsRfbServer();
57  virtual PendingRfbClient* newClient(rfbClientPtr client);
58 
59 private Q_SLOTS:
60  void walletOpened(bool);
61 
62 private:
63  DNSSD::PublicService *m_publicService;
64  bool m_allowUnattendedAccess;
65  QString m_desktopPassword;
66  QString m_unattendedPassword;
67  KWallet::Wallet *m_wallet;
68 
69  QString readableRandomString(int);
70  Q_DISABLE_COPY(InvitationsRfbServer)
71 };
72 
73 #endif // INVITATIONSRFBSERVER_H
InvitationsRfbServer::init
static void init()
Definition: invitationsrfbserver.cpp:42
InvitationsRfbServer::start
bool start()
Definition: invitationsrfbserver.cpp:88
RfbServer
Definition: rfbserver.h:27
InvitationsRfbServer::~InvitationsRfbServer
virtual ~InvitationsRfbServer()
Definition: invitationsrfbserver.cpp:120
InvitationsRfbServer::setUnattendedPassword
void setUnattendedPassword(const QString &)
Definition: invitationsrfbserver.cpp:78
rfbserver.h
InvitationsRfbServer::allowUnattendedAccess
bool allowUnattendedAccess() const
Definition: invitationsrfbserver.cpp:83
InvitationsRfbServer::InvitationsRfbServer
InvitationsRfbServer()
Definition: invitationsrfbserver.cpp:110
_rfbClientRec
Definition: libvncserver/rfb/rfb.h:417
InvitationsRfbServer::desktopPassword
const QString & desktopPassword() const
Definition: invitationsrfbserver.cpp:63
InvitationsRfbServer::toggleUnattendedAccess
void toggleUnattendedAccess(bool allow=true)
Definition: invitationsrfbserver.cpp:105
InvitationsRfbServer::newClient
virtual PendingRfbClient * newClient(rfbClientPtr client)
Definition: invitationsrfbserver.cpp:146
InvitationsRfbServer
Definition: invitationsrfbserver.h:33
QString
InvitationsRfbServer::passwordChanged
void passwordChanged(const QString &)
InvitationsRfbServer::stop
void stop(bool disconnectClients=true)
Definition: invitationsrfbserver.cpp:98
InvitationsRfbServer::setDesktopPassword
void setDesktopPassword(const QString &)
Definition: invitationsrfbserver.cpp:68
InvitationsRfbServer::instance
static InvitationsRfbServer * instance
Definition: invitationsrfbserver.h:37
InvitationsRfbServer::unattendedPassword
const QString & unattendedPassword() const
Definition: invitationsrfbserver.cpp:73
PendingRfbClient
Definition: krfb/rfbclient.h:72
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