kcmpureftpdscript.h
00001 /*************************************************************************** 00002 kcmpureftpdscript.h - pure-ftpd script generator 00003 ------------------- 00004 begin : Fri Apr 13 2001 00005 copyright : (C) 2001-2003 by Claudiu Costin 00006 email : claudiuc@kde.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef __KCMPUREFTPDSCRIPT_H__ 00019 #define __KCMPUREFTPDSCRIPT_H__ 00020 00021 #ifdef HAVE_CONFIG_H 00022 #include <config.h> 00023 #endif 00024 00025 #include <qmap.h> 00026 #include <qobject.h> 00027 00028 #include <kapp.h> 00029 #include <kcmodule.h> 00030 #include <kconfig.h> 00031 #include <kaboutdata.h> 00032 #include <klistview.h> 00033 00034 #include "script.h" 00035 #include "kcmpureftpdscriptui.h" 00036 00037 00053 class KPureftpdScript : public KCModule { 00054 Q_OBJECT 00055 00056 public: 00063 KPureftpdScript(QWidget *parent = 0L, const char *name = 0L); 00067 virtual ~KPureftpdScript(); 00071 void load(); 00075 void save(); 00080 void defaults(); 00085 int buttons(); 00089 QString quickHelp() const; 00094 virtual const KAboutData *aboutData() const; 00095 00096 protected slots: 00100 void configChanged(); 00109 void slotAuth(int index); 00117 void slotAuthMethodChanged(int index); 00126 void slotAuthListChanged(QListViewItem *item); 00133 void slotAuthAdd(); 00138 void slotAuthModify(); 00143 void slotAuthDelete(); 00148 void slotAuthMoveUp(); 00153 void slotAuthMoveDown(); 00154 void slotStandalone(); 00155 void slotItemChanged(QListViewItem *it); 00156 void slotScriptPathChanged(const QString &text); 00157 void slotSaveOutput(); 00158 void slotTabChanged(QWidget *widget); 00159 00160 private: 00161 00162 void setAuthEditButtons(); 00163 void setAuthMoveButtons(); 00164 void setSaveButton(int scriptIndex); 00165 QString parseOptions(ScriptItem scriptItem); 00166 00171 KPureftpdScriptUI *ui; 00172 QString saveOutput, parsedScript; 00173 Script *script; 00174 QMap<KListViewItem*,int> scriptMap; 00178 KConfig *config; 00179 }; 00180 00181 #endif 00182
Generated on Thu Jul 24 01:57:07 2003 by doxygen 1.2.15.