kpilot Library API Documentation

setupDialog.h

00001 #ifndef _EXPENSE_SETUPDIALOG_H
00002 #define _EXPENSE_SETUPDIALOG_H
00003 /* setupDialog.h            KPilot
00004 **
00005 ** Copyright (C) 2000-2001 by Adriaan de Groot
00006 **
00007 ** This file is part of the Expense conduit, a conduit for KPilot that
00008 ** synchronises the Pilot's expense application with external files.
00009 ** It supports CSV export and (possibly) SQL database export.
00010 */
00011 
00012 /*
00013 ** This program is free software; you can redistribute it and/or modify
00014 ** it under the terms of the GNU General Public License as published by
00015 ** the Free Software Foundation; either version 2 of the License, or
00016 ** (at your option) any later version.
00017 **
00018 ** This program is distributed in the hope that it will be useful,
00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021 ** GNU General Public License for more details.
00022 **
00023 ** You should have received a copy of the GNU General Public License
00024 ** along with this program in a file called COPYING; if not, write to
00025 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
00026 ** MA 02111-1307, USA.
00027 */
00028 
00029 /*
00030 ** Bug reports and questions can be sent to kde-pim@kde.org
00031 */
00032 
00033 
00034 #include "plugin.h"
00035 
00036 class ExpenseWidget;
00037 
00038 class ExpenseWidgetSetup : public ConduitConfig
00039 {
00040 Q_OBJECT
00041 public:
00042     ExpenseWidgetSetup(QWidget *,const char *,const QStringList &);
00043     virtual ~ExpenseWidgetSetup();
00044 
00045     virtual void readSettings();
00046 
00047     typedef enum { PolicyOverwrite,
00048         PolicyAppend,
00049         PolicyRotate } RotatePolicy;
00050     int getRotatePolicy() const;
00051     void setRotatePolicy(RotatePolicy);
00052 
00053     typedef enum { PolicyNone,
00054         PolicyPostgresql,
00055         PolicyMysql } DBPolicy;
00056 
00057     int getDBPolicy() const;
00058     void setDBPolicy(DBPolicy);
00059 
00060 public slots:
00061     void slotRotatePolicyChanged();
00062     void slotCSVBrowse();
00063 
00064     void slotDBPolicyChanged();
00065 
00066 protected:
00067     virtual void commitChanges();
00068 
00069 private:
00070     ExpenseWidget *fConfigWidget;
00071 } ;
00072 
00073 #endif
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:49 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003