• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kpilot

config_pages.h

Go to the documentation of this file.
00001 #ifndef CONFIG_PAGES_H
00002 #define CONFIG_PAGES_H
00003 /* KPilot
00004 **
00005 ** Copyright (C) 2001 by Dan Pilone <dan@kpilot.org>
00006 ** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00007 **
00008 ** This file defines logic for the pages that make up the configuration
00009 ** dialog for KPilot.
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., 51 Franklin Street, Fifth Floor, Boston,
00026 ** MA 02110-1301, USA.
00027 */
00028 
00029 /*
00030 ** Bug reports and questions can be sent to kde-pim@kde.org
00031 */
00032 
00033 #include "plugin.h"
00034 #include "ui_config_page_device.h"
00035 #include "ui_config_page_backup.h"
00036 #include "ui_config_page_sync.h"
00037 #include "ui_config_page_startup.h"
00038 
00039 // class KPilotConfigWidget;
00040 class StartExitConfigWidget;
00041 class SyncConfigWidget;
00042 class DeviceConfigWidget;
00043 class BackupConfigWidget;
00044 
00045 class ConfigPage : public ConduitConfigBase
00046 {
00047 public:
00048     ConfigPage( QWidget *w, QVariantList &args ) : ConduitConfigBase( w, args ) { } ;
00049 protected:
00050     // Override base class virtual function.
00051     virtual QString maybeSaveText() const;
00052 } ;
00053 
00054 class DeviceConfigPage : public ConfigPage
00055 {
00056 Q_OBJECT
00057 public:
00058     DeviceConfigPage( QWidget *, QVariantList &args );
00059 
00060 protected:
00061     virtual void load();
00062     virtual void commit();
00063 
00064 protected slots:
00065     void changePortType(int);
00066     void autoDetectDevice();
00067 
00068 private:
00069     Ui::DeviceConfigWidget fConfigWidget;
00070 
00071     // Read and write the values of Encoding
00072     // and EncodingDD.
00073     void getEncoding();
00074     void setEncoding();
00075 } ;
00076 
00077 class SyncConfigWidget : public QWidget, public Ui::SyncConfigWidget
00078 {
00079 public:
00080   SyncConfigWidget( QWidget *parent ) : QWidget( parent ) {
00081     setupUi( this );
00082   }
00083 };
00084 
00085 class KDE_EXPORT SyncConfigPage : public ConfigPage
00086 {
00087 public:
00088     SyncConfigPage( QWidget *, QVariantList &args );
00089 
00090 protected:
00091     virtual void load();
00092     virtual void commit();
00093 
00094 private:
00095     SyncConfigWidget *fConfigWidget;
00096 } ;
00097 
00098 class BackupConfigPage : public ConfigPage
00099 {
00100 Q_OBJECT
00101 public:
00102     BackupConfigPage( QWidget *, QVariantList &args );
00103 
00104 protected:
00105     virtual void load();
00106     virtual void commit();
00107 
00108 protected slots:
00109     void slotSelectNoBackupDBs();
00110     void slotSelectNoRestoreDBs();
00111 
00112 private:
00113     Ui::BackupConfigWidget fConfigWidget;
00114 } ;
00115 
00116 class StartExitConfigPage : public ConfigPage
00117 {
00118 public:
00119     StartExitConfigPage( QWidget *, QVariantList &args );
00120 
00121 protected:
00122     virtual void load();
00123     virtual void commit();
00124 
00125 private:
00126     Ui::StartExitConfigWidget fConfigWidget;
00127 } ;
00128 
00129 #endif

kpilot

Skip menu "kpilot"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal