merge in my changes from soc-krdc branch
[kdenetwork.git] / krdc / vnc / vncprefs.cpp
blob3a26101f464c6a59002bb9f734cf6cefb4d41328
1 /***************************************************************************
2 * *
3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. *
7 * *
8 ***************************************************************************/
10 #include "vncprefs.h"
12 VncPrefs::VncPrefs(QWidget *parent) : QWidget( parent )
14 setupUi( this );
17 void VncPrefs::setQuality( int quality )
19 cmbQuality->setCurrentIndex(quality);
23 int VncPrefs::quality()
25 return cmbQuality->currentIndex();
29 void VncPrefs::setShowPrefs( bool b )
31 cbShowPrefs->setChecked(b);
35 int VncPrefs::showPrefs()
37 return cbShowPrefs->isChecked();
41 void VncPrefs::setUseEncryption( bool b )
43 cbUseEncryption->setChecked(b);
46 bool VncPrefs::useEncryption()
48 return cbUseEncryption->isChecked();
51 void VncPrefs::setUseKWallet( bool b )
53 cbUseKWallet->setChecked(b);
56 bool VncPrefs::useKWallet()
58 return cbUseKWallet->isChecked();
61 #include "vncprefs.moc"