kpilot
setupDialog.h
Go to the documentation of this file.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., 51 Franklin Street, Fifth Floor, Boston, 00028 ** MA 02110-1301, USA. 00029 */ 00030 00031 /* 00032 ** Bug reports and questions can be sent to kde-pim@kde.org 00033 */ 00034 00035 00036 #include "plugin.h" 00037 00038 class PopMailWidget; // From setup-dialog.ui 00039 00040 class PopMailWidgetConfig : public ConduitConfigBase 00041 { 00042 Q_OBJECT 00043 public: 00044 PopMailWidgetConfig(QWidget *, const char *); 00045 virtual void load(); 00046 virtual void commit(); 00047 00048 static ConduitConfigBase *create(QWidget *w, const char *n) 00049 { return new PopMailWidgetConfig(w,n); } ; 00050 00051 // These enums must follow the order of items in the combo box 00052 enum SendMode { NoSend=0, SendKMail=1 } ; 00053 00054 protected: 00055 PopMailWidget *fConfigWidget; 00056 00057 public slots: 00058 void toggleSendMode(int); 00059 } ; 00060 00061 00062 #endif