diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /filesharing/advanced/nfs/nfshostdlg.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'filesharing/advanced/nfs/nfshostdlg.h')
-rw-r--r-- | filesharing/advanced/nfs/nfshostdlg.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/filesharing/advanced/nfs/nfshostdlg.h b/filesharing/advanced/nfs/nfshostdlg.h new file mode 100644 index 00000000..6580b2bd --- /dev/null +++ b/filesharing/advanced/nfs/nfshostdlg.h @@ -0,0 +1,59 @@ +/*************************************************************************** + nfshostdlg.h - description + ------------------- + begin : Mon Apr 29 2002 + copyright : (C) 2002 by Jan Schäfer + email : janschaefer@users.sourceforge.net + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef NFSHOSTDLG_H +#define NFSHOSTDLG_H + +#include <kdialogbase.h> +#include "nfsentry.h" + +class NFSHost; +class HostProps; +class NFSEntry; +class QCheckBox; +class QLineEdit; + + +class NFSHostDlg : public KDialogBase +{ +Q_OBJECT +public: + NFSHostDlg(QWidget* parent, HostList* hosts, NFSEntry* entry); + virtual ~NFSHostDlg(); + bool isModified(); +protected: + HostList* m_hosts; + NFSEntry* m_nfsEntry; + HostProps* m_gui; + bool m_modified; + + void init(); +protected slots: + virtual void slotOk(); + void setModified(); + +private: + void setHostValues(NFSHost* host); + void setEditValue(QLineEdit* edit, const QString & value); + void setCheckBoxValue(QCheckBox* chk, bool value); + bool saveName(NFSHost* host); + void saveValues(NFSHost* host); + void saveEditValue(int & value, QLineEdit* edit); + void saveCheckBoxValue(bool & value, QCheckBox* chk, bool neg); +}; + +#endif |