kpilot Library API Documentation

mal-conduit.h

00001 #ifndef _MAL_CONDUIT_H
00002 #define _MAL_CONDUIT_H
00003 /* mal-conduit.h                           KPilot
00004 **
00005 ** Copyright (C) 2002 by Reinhold Kainhofer
00006 **
00007 */
00008 
00009 /*
00010 ** This program is free software; you can redistribute it and/or modify
00011 ** it under the terms of the GNU General Public License as published by
00012 ** the Free Software Foundation; either version 2 of the License, or
00013 ** (at your option) any later version.
00014 **
00015 ** This program is distributed in the hope that it will be useful,
00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00018 ** GNU General Public License for more details.
00019 **
00020 ** You should have received a copy of the GNU General Public License
00021 ** along with this program in a file called COPYING; if not, write to
00022 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00023 ** MA 02111-1307, USA.
00024 **
00025 **
00026 ** Specific permission is granted for this code to be linked to libmal
00027 ** (this is necessary because the libmal license is not GPL-compatible).
00028 */
00029 
00030 /*
00031 ** Bug reports and questions can be sent to kde-pim@kde.org
00032 */
00033 
00034 
00035 
00036 #include <plugin.h>
00037 
00038 #include <kapplication.h>
00039 #include <qdatetime.h>
00040 
00041 class MALConduit : public ConduitAction
00042 {
00043 Q_OBJECT
00044 public:
00045         MALConduit(
00046                 KPilotDeviceLink *o,
00047                 const char *n = 0L,
00048                 const QStringList &a = QStringList() );
00049         virtual ~MALConduit();
00050         void printLogMessage(QString msg);
00051         virtual bool exec();
00052 
00053 protected:
00057         void readConfig();
00061         void saveConfig();
00065         bool skip();
00066 private:
00067         enum eProxyTypeEnum {
00068                 eProxyNone=0,
00069                 eProxyHTTP,
00070                 eProxySOCKS
00071         } eProxyType;
00072         enum eSyncTimeEnum {
00073                 eEverySync=0,
00074                 eEveryHour,
00075                 eEveryDay,
00076                 eEveryWeek,
00077                 eEveryMonth
00078         } eSyncTime;
00079         QString fProxyServer, fProxyUser, fProxyPassword, fMALServer, fMALUser, fMALPassword;
00080         int fProxyPort, fMALPort;
00081         QDateTime fLastSync;
00082 } ;
00083 
00084 
00085 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:14 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001