serverdialog.h

Go to the documentation of this file.
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 #include <ktabwidget.h>
00046 
00047 //radio button IDs
00048 #define ID_BUTTON_PASSWORD_DONT_SAVE 1
00049 #define ID_BUTTON_PASSWORD_SAVE_FILE 2
00050 #define ID_BUTTON_PASSWORD_SAVE_KWALLET 3
00051 #define ID_BUTTON_SECLOGIN_NONE 1
00052 #define ID_BUTTON_SECLOGIN_APOP 2
00053 #define ID_BUTTON_SECLOGIN_SASL 3
00054 #define ID_BUTTON_SECTRANSFER_NONE 1
00055 #define ID_BUTTON_SECTRANSFER_SSL 2
00056 #define ID_BUTTON_SECTRANSFER_TLS 3
00057 
00064 class ServerDialog : public KDialogBase
00065 {
00066    Q_OBJECT
00067   public:
00068 
00069   public:
00070 
00076     ServerDialog( QWidget* parent, ConfigElem* item = NULL );
00077 
00081     ~ServerDialog();
00082 
00083   private:
00084 
00088     ConfigElem* account;
00089 
00093     KLineEdit* txtAccount;
00094 
00098     KLineEdit* txtServer;
00099 
00103     KComboBox* cboProtocol;
00104 
00108     QSpinBox* spbPort;
00109 
00113     KLineEdit* txtUser;
00114 
00118     KPasswordEdit* txtPassword;
00119 
00123     QCheckBox* chkActive;
00124 
00128     QButtonGroup* grpPasswordStorage;
00129 
00133     QButtonGroup* grpSecureTransfer;
00134 
00135   protected slots:
00136 
00142     void slotPasswordStorageChanged( int id );
00143 
00149     void slotSecureTransferChanged( int id );
00150 
00158     void slotOk();
00159 
00160   protected:
00161 
00165     void fillDialog();
00166 };
00167 
00168 #endif

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.kdevelop by  doxygen 1.5.0