• 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
krfbconfig.cpp
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from krfb.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "krfbconfig.h"
5 
6 #include <kglobal.h>
7 #include <QtCore/QFile>
8 
9 class KrfbConfigHelper
10 {
11  public:
12  KrfbConfigHelper() : q(0) {}
13  ~KrfbConfigHelper() { delete q; }
14  KrfbConfig *q;
15 };
16 K_GLOBAL_STATIC(KrfbConfigHelper, s_globalKrfbConfig)
17 KrfbConfig *KrfbConfig::self()
18 {
19  if (!s_globalKrfbConfig->q) {
20  new KrfbConfig;
21  s_globalKrfbConfig->q->readConfig();
22  }
23 
24  return s_globalKrfbConfig->q;
25 }
26 
27 KrfbConfig::KrfbConfig( )
28  : KConfigSkeleton()
29 {
30  Q_ASSERT(!s_globalKrfbConfig->q);
31  s_globalKrfbConfig->q = this;
32  setCurrentGroup( QLatin1String( "TCP" ) );
33 
34  KConfigSkeleton::ItemBool *itemUseDefaultPort;
35  itemUseDefaultPort = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useDefaultPort" ), mUseDefaultPort, true );
36  addItem( itemUseDefaultPort, QLatin1String( "useDefaultPort" ) );
37  KConfigSkeleton::ItemInt *itemPort;
38  itemPort = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "port" ), mPort, 5900 );
39  addItem( itemPort, QLatin1String( "port" ) );
40  KConfigSkeleton::ItemBool *itemPublishService;
41  itemPublishService = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "publishService" ), mPublishService, true );
42  addItem( itemPublishService, QLatin1String( "publishService" ) );
43 
44  setCurrentGroup( QLatin1String( "Security" ) );
45 
46  KConfigSkeleton::ItemBool *itemAllowDesktopControl;
47  itemAllowDesktopControl = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "allowDesktopControl" ), mAllowDesktopControl, true );
48  addItem( itemAllowDesktopControl, QLatin1String( "allowDesktopControl" ) );
49  KConfigSkeleton::ItemBool *itemAllowUnattendedAccess;
50  itemAllowUnattendedAccess = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "allowUnattendedAccess" ), mAllowUnattendedAccess, false );
51  addItem( itemAllowUnattendedAccess, QLatin1String( "allowUnattendedAccess" ) );
52  KConfigSkeleton::ItemString *itemUnattendedAccessPassword;
53  itemUnattendedAccessPassword = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "unattendedAccessPassword" ), mUnattendedAccessPassword );
54  addItem( itemUnattendedAccessPassword, QLatin1String( "unattendedAccessPassword" ) );
55  KConfigSkeleton::ItemString *itemDesktopSharingPassword;
56  itemDesktopSharingPassword = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "desktopSharingPassword" ), mDesktopSharingPassword );
57  addItem( itemDesktopSharingPassword, QLatin1String( "desktopSharingPassword" ) );
58 
59  setCurrentGroup( QLatin1String( "FrameBuffer" ) );
60 
61  KConfigSkeleton::ItemString *itemPreferredFrameBufferPlugin;
62  itemPreferredFrameBufferPlugin = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "preferredFrameBufferPlugin" ), mPreferredFrameBufferPlugin, QLatin1String( "krfb_framebuffer_x11" ) );
63  addItem( itemPreferredFrameBufferPlugin, QLatin1String( "preferredFrameBufferPlugin" ) );
64 }
65 
66 KrfbConfig::~KrfbConfig()
67 {
68  if (!s_globalKrfbConfig.isDestroyed()) {
69  s_globalKrfbConfig->q = 0;
70  }
71 }
72 
KrfbConfig
Definition: krfbconfig.h:9
KConfigSkeleton
KrfbConfig::mUseDefaultPort
bool mUseDefaultPort
Definition: krfbconfig.h:102
KrfbConfig::mAllowDesktopControl
bool mAllowDesktopControl
Definition: krfbconfig.h:107
KrfbConfig::mAllowUnattendedAccess
bool mAllowUnattendedAccess
Definition: krfbconfig.h:108
KrfbConfig::mUnattendedAccessPassword
QString mUnattendedAccessPassword
Definition: krfbconfig.h:109
krfbconfig.h
KrfbConfig::~KrfbConfig
~KrfbConfig()
Definition: krfbconfig.cpp:66
QLatin1String
KrfbConfig::mPort
int mPort
Definition: krfbconfig.h:103
KrfbConfig::mPreferredFrameBufferPlugin
QString mPreferredFrameBufferPlugin
Definition: krfbconfig.h:113
KrfbConfig::mPublishService
bool mPublishService
Definition: krfbconfig.h:104
KrfbConfig::mDesktopSharingPassword
QString mDesktopSharingPassword
Definition: krfbconfig.h:110
KrfbConfig::KrfbConfig
KrfbConfig()
Definition: krfbconfig.cpp:27
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