serverdialog.h

00001 /***************************************************************************
00002                           serverdialog.h  -  description
00003                              -------------------
00004     begin                : Sun Oct 28 2001
00005     copyright            : (C) 2001 by Eggert Ehmke
00006     email                : eggert.ehmke@berlin.de
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 SERVERDIALOG_H
00019 #define SERVERDIALOG_H
00020 
00021 //Qt headers
00022 #include <qlayout.h>
00023 #include <qlabel.h>
00024 #include <qtooltip.h>
00025 #include <qspinbox.h>
00026 #include <qgroupbox.h>
00027 #include <qbuttongroup.h>
00028 #include <qradiobutton.h>
00029 #include <qcheckbox.h>
00030 
00031 //KDE headers
00032 #include <kdialogbase.h>
00033 #include <klocale.h>
00034 #include <klineedit.h>
00035 #include <kcombobox.h>
00036 #include <kdebug.h>
00037 #include <kmessagebox.h>
00038 #include <kpassdlg.h>
00039 
00040 //KShowmail headers
00041 #include "configelem.h"
00042 #include "constants.h"
00043 #include "encryption.h"
00044 #include "kwalletaccess.h"
00045 
00046 //radio button IDs
00047 #define ID_BUTTON_PASSWORD_DONT_SAVE 1
00048 #define ID_BUTTON_PASSWORD_SAVE_FILE 2
00049 #define ID_BUTTON_PASSWORD_SAVE_KWALLET 3
00050 
00057 class ServerDialog : public KDialogBase
00058 {
00059    Q_OBJECT
00060   public:
00061 
00062   public:
00063 
00069     ServerDialog( QWidget* parent, ConfigElem* item = NULL );
00070 
00074     ~ServerDialog();
00075 
00076   private:
00077 
00081     ConfigElem* account;
00082 
00086     KLineEdit* txtAccount;
00087 
00091     KLineEdit* txtServer;
00092 
00096     KComboBox* cboProtocol;
00097 
00101     QSpinBox* spbPort;
00102 
00106     KLineEdit* txtUser;
00107 
00111     KPasswordEdit* txtPassword;
00112 
00116     QCheckBox* chkActive;
00117 
00121     QButtonGroup* grpPasswordStorage;
00122 
00123   protected slots:
00124 
00130     void slotPasswordStorageChanged( int id );
00131 
00139     void slotOk();
00140 
00141   protected:
00142 
00146     void fillDialog();
00147 };
00148 
00149 #endif

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  doxygen 1.5.0