use KConfig XT

svn path=/trunk/KDE/kdenetwork/krfb/; revision=651410
This commit is contained in:
Alessandro Praduroux
2007-04-07 16:16:51 +00:00
parent cb1280f2b7
commit 67cac2140a
11 changed files with 322 additions and 59 deletions

View File

@@ -20,7 +20,6 @@
#include <QApplication>
#include <QDesktopWidget>
#include <KConfig>
#include <KGlobal>
#include <KUser>
#include <KLocale>
@@ -29,6 +28,7 @@
#include "connectioncontroller.h"
#include "framebuffer.h"
#include "krfbconfig.h"
static const char* cur=
@@ -109,8 +109,6 @@ static void clipboardHook(char* str,int len, rfbClientPtr cl)
}
const int DEFAULT_TCP_PORT = 5900;
static KStaticDeleter<KrfbServer> sd;
KrfbServer * KrfbServer::_self = 0;
KrfbServer * KrfbServer::self() {
@@ -130,10 +128,7 @@ void KrfbServer::startListening()
{
rfbScreenInfoPtr screen;
KSharedConfigPtr conf = KGlobal::config();
KConfigGroup tcpConfig(conf, "TCP");
int port = tcpConfig.readEntry("port",DEFAULT_TCP_PORT);
int port = KrfbConfig::port();
int w = fb->width();
int h = fb->height();