kpilot

sysinfo-conduit.h

Go to the documentation of this file.
00001 #ifndef _SysInfo_CONDUIT_H
00002 #define _SysInfo_CONDUIT_H
00003 /* sysinfo-conduit.h                           KPilot
00004 **
00005 ** Copyright (C) 2003 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., 51 Franklin Street, Fifth Floor, Boston,
00023 ** MA 02110-1301, USA.
00024 */
00025 
00026 /*
00027 ** Bug reports and questions can be sent to kde-pim@kde.org
00028 */
00029 
00030 
00031 #include <plugin.h>
00032 
00033 class SysInfoConduit : public ConduitAction
00034 {
00035     Q_OBJECT
00036 public:
00037     SysInfoConduit(
00038         KPilotLink *o,
00039         const char *n = 0L,
00040         const QStringList &a = QStringList() );
00041     virtual ~SysInfoConduit();
00042     virtual bool exec();
00043 
00044 public slots:
00045     void hardwareInfo();
00046     void userInfo();
00047     void memoryInfo();
00048     void storageInfo();
00049     void dbListInfo();
00050     void recNumberInfo();
00051     void syncInfo();
00052     void pcVersionInfo();
00053     void palmVersionInfo();
00054     void debugInfo();
00055     void writeFile();
00056     void cleanup();
00057 
00058 protected:
00059     void readConfig();
00060 private:
00061     QMap<QString,QString> fValues;
00062 
00063     bool fHardwareInfo, fUserInfo, fMemoryInfo, fStorageInfo,
00064         fDBList, fRecordNumber, fSyncInfo,
00065         fKDEVersion, fPalmOSVersion, fDebugInfo;
00066     QString fOutputFile, fTemplateFile;
00067     enum eOutputTypeEnum {
00068         eOutputHTML=0,
00069         eOutputText,
00070         eOutputTemplate
00071     } fOutputType;
00072 
00073     KPilotLink::DBInfoList dblist;
00074     QStringList removeParts;
00075     QStringList keepParts;
00076     static const QString defaultpage;
00077 } ;
00078 
00079 #endif