merge in my changes from soc-krdc branch
[kdenetwork.git] / krdc / vnc / vnchostpref.h
blob553cb000865b31318de160af9b4b05bf27a4f85e
1 /***************************************************************************
2 vnchostprefs.h - vnc host preferences
3 -------------------
4 begin : Fri May 09 22:32 CET 2003
5 copyright : (C) 2003 by Tim Jansen
6 email : tim@tjansen.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef VNCHOSTPREF_H
19 #define VNCHOSTPREF_H
21 #include "hostpreferences.h"
23 class VncHostPref : public HostPref {
24 protected:
25 friend class HostPreferences;
27 int m_quality;
28 bool m_useKWallet;
29 bool m_askOnConnect;
31 virtual void load();
32 virtual void setDefaults();
33 virtual void save();
34 virtual void remove();
36 public:
37 static const QString VncType;
39 VncHostPref(KSharedConfigPtr conf, const QString &host=QString(),
40 const QString &type=QString());
41 virtual ~VncHostPref();
43 virtual QString prefDescription() const;
44 void setQuality(int q);
45 int quality() const;
46 void setAskOnConnect(bool ask);
47 bool askOnConnect() const;
48 void setUseKWallet(bool);
49 bool useKWallet() const;
52 #endif