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 //TQt headers
00022 #include <ntqlayout.h>
00023 #include <ntqlabel.h>
00024 #include <ntqtooltip.h>
00025 #include <ntqspinbox.h>
00026 #include <ntqgroupbox.h>
00027 #include <ntqbuttongroup.h>
00028 #include <ntqradiobutton.h>
00029 #include <ntqcheckbox.h>
00030 
00031 //KDE headers
00032 #include <kdialogbase.h>
00033 #include <tdelocale.h>
00034 #include <klineedit.h>
00035 #include <kcombobox.h>
00036 #include <kdebug.h>
00037 #include <tdemessagebox.h>
00038 #include <kpassdlg.h>
00039 
00040 //KShowmail headers
00041 #include "configelem.h"
00042 #include "constants.h"
00043 #include "encryption.h"
00044 #include "tdewalletaccess.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_TDEWALLET 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( TQWidget* 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     TQSpinBox* spbPort;
00109 
00113     KLineEdit* txtUser;
00114 
00118     KPasswordEdit* txtPassword;
00119 
00123     TQCheckBox* chkActive;
00124 
00128     TQButtonGroup* grpPasswordStorage;
00129 
00133     TQButtonGroup* 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.tdevelop by  doxygen 1.5.0