setupDialog.h
00001 #ifndef _POPMAIL_SETUPDIALOG_H
00002 #define _POPMAIL_SETUPDIALOG_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #include <qwidget.h>
00037
00038 class KConfig;
00039 class QLabel;
00040 class QLineEdit;
00041 class QCheckBox;
00042 class QPushButton;
00043 class QRadioButton;
00044 class QButtonGroup;
00045
00046
00047
00048
00049
00050
00051
00052
00053 class PopMailSendPage : public QWidget
00054 {
00055 Q_OBJECT
00056
00057 public:
00058 PopMailSendPage(QWidget *parent );
00059 virtual int commitChanges(KConfig& );
00060 void readSettings(KConfig &);
00061
00062 public slots:
00066 void browseSignature();
00072 void toggleMode();
00073
00074 public:
00075 typedef enum { SEND_NONE=0,
00076 SEND_SENDMAIL=7,
00077 SEND_KMAIL=8,
00078 SEND_SMTP=12
00079 } SendMode ;
00080
00081 void setMode(SendMode m);
00082 SendMode getMode() const { return fMode; };
00083
00084 private:
00085 SendMode fMode;
00086
00087 QButtonGroup *sendGroup;
00088 QRadioButton *fNoSend,*fSendmail,*fSMTP, *fKMail;
00089
00090 QLineEdit* fEmailFrom;
00091 QLineEdit *fHeaders;
00092 QLineEdit* fSignature;
00093 QPushButton *fSignatureBrowse;
00094
00095 QLineEdit* fSendmailCmd;
00096 QLineEdit* fSMTPServer;
00097 QLineEdit* fSMTPPort;
00098 QLineEdit* fFirewallFQDN;
00099 QCheckBox *fKMailSendImmediate;
00100 } ;
00101
00102
00103
00104
00105
00106
00107 class PopMailReceivePage : public QWidget
00108 {
00109 Q_OBJECT
00110
00111 public:
00112 PopMailReceivePage(QWidget *);
00113 virtual int commitChanges(KConfig& );
00114 void readSettings(KConfig &);
00115
00116 public slots:
00117 void browseMailbox();
00118 void togglePopPass();
00119 void toggleMode();
00120
00121 public:
00122 typedef enum {
00123 RECV_NONE=0,
00124 RECV_POP=1,
00125 RECV_UNIX=2
00126 } RetrievalMode ;
00127
00128 void setMode(RetrievalMode m);
00129 RetrievalMode getMode() const { return fMode; };
00130
00131 private:
00132 QButtonGroup *methodGroup;
00133 QRadioButton *fNoReceive;
00134 QRadioButton *fReceivePOP,*fReceiveUNIX;
00135
00136 QLineEdit *fMailbox;
00137 QPushButton *fMailboxBrowse;
00138
00139 QLineEdit* fPopServer;
00140 QLineEdit* fPopPort;
00141 QLineEdit* fPopUser;
00142 QCheckBox* fLeaveMail;
00143 QCheckBox* fSyncIncoming;
00144 QLineEdit *fPopPass;
00145 QCheckBox *fStorePass;
00146
00147 RetrievalMode fMode;
00148 } ;
00149
00150 #endif
This file is part of the documentation for kdelibs Version 3.1.4.