kpilot Library API Documentation

setupDialog.h

00001 #ifndef _POPMAIL_SETUPDIALOG_H
00002 #define _POPMAIL_SETUPDIALOG_H
00003 /* setupDialog.h                        KPilot
00004 **
00005 ** Copyright (C) 1998-2001 Dan Pilone
00006 **
00007 ** This file is part of the popmail conduit, a conduit for KPilot that
00008 ** synchronises the Pilot's email application with the outside world,
00009 ** which currently means:
00010 **      -- sendmail or SMTP for outgoing mail
00011 **      -- POP or mbox for incoming mail
00012 */
00013 
00014 /*
00015 ** This program is free software; you can redistribute it and/or modify
00016 ** it under the terms of the GNU General Public License as published by
00017 ** the Free Software Foundation; either version 2 of the License, or
00018 ** (at your option) any later version.
00019 **
00020 ** This program is distributed in the hope that it will be useful,
00021 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00023 ** GNU General Public License for more details.
00024 **
00025 ** You should have received a copy of the GNU General Public License
00026 ** along with this program in a file called COPYING; if not, write to
00027 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00028 ** MA 02111-1307, USA.
00029 */
00030 
00031 /*
00032 ** Bug reports and questions can be sent to kde-pim@kde.org
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 // A standard dialog page with all the
00048 // settings used when sending mail, both
00049 // with SMTP and sendmail (in future via KMail
00050 // as well?)
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 // A standard dialog page used when receiving
00103 // mail, both via POP and via UNIX mailboxes
00104 // (and in future from KMail?)
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
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:44 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001