mal-conduit.h
00001 #ifndef _MAL_CONDUIT_H
00002 #define _MAL_CONDUIT_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 <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
This file is part of the documentation for kpilot Library Version 3.2.2.