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

kpilot

config_dialog_probe.h

Go to the documentation of this file.
00001 #ifndef CONFIG_DIALOG_PROBE_H
00002 #define CONFIG_DIALOG_PROBE_H
00003 /* KPilot
00004 **
00005 ** Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00006 **
00007 ** This file defines a dialog that automatically probes for Palm devices.
00008 */
00009 
00010 /*
00011 ** This program is free software; you can redistribute it and/or modify
00012 ** it under the terms of the GNU General Public License as published by
00013 ** the Free Software Foundation; either version 2 of the License, or
00014 ** (at your option) any later version.
00015 **
00016 ** This program is distributed in the hope that it will be useful,
00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 ** GNU General Public License for more details.
00020 **
00021 ** You should have received a copy of the GNU General Public License
00022 ** along with this program in a file called COPYING; if not, write to
00023 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00024 ** MA 02110-1301, USA.
00025 */
00026 
00027 /*
00028 ** Bug reports and questions can be sent to kde-pim@kde.org
00029 */
00030 #include <kdialog.h>
00031 
00032 class QGroupBox;
00033 class QLabel;
00034 class QProgressBar;
00035 class QTimer;
00036 
00037 class KPilotDeviceLink;
00038 
00039 
00040 class ProbeDialog : public KDialog
00041 {
00042 Q_OBJECT
00043 public:
00044     typedef QList<KPilotDeviceLink*> PilotLinkList;
00045 
00046     explicit ProbeDialog(QWidget *p=0L,const char *n=0L);
00047     ~ProbeDialog();
00048 
00049     bool detected() const { return fDetected; }
00050     QString userName() const { return fUserName; }
00051     QString device() const { return fDeviceName; }
00052     QStringList dbs()  const { return fDBs; }
00053 
00054 
00055 protected slots:
00056     void startDetection();
00057     void timeout();
00058     void connection(KPilotLink*lnk);
00059     void retrieveDBList();
00060     void disconnectDevices();
00061     void processEvents();
00062     void progress();
00063     void detect();
00064     void detect(int i);
00065 public slots:
00066     int exec();
00067     void slotUser1 () { startDetection(); }
00068 protected:
00069     QGroupBox *fResultsGroup;
00070     QLabel *fStatusLabel;
00071     QLabel *fUserNameLabel;
00072     QLabel *fDeviceNameLabel;
00073     QProgressBar *fProgress;
00074 
00075     QTimer *fProcessEventsTimer;
00076     QTimer *fTimeoutTimer;
00077     QTimer *fProgressTimer;
00078     QTimer *fRotateLinksTimer;
00079 
00080     QStringList fDevicesToProbe[3];
00081     PilotLinkList fDeviceLinks[3];
00082     int fProbeDevicesIndex;
00083     KPilotDeviceLink *fActiveLink;
00084 
00085     bool fDetected;
00086     QString fUserName;
00087     QString fDeviceName;
00088     QStringList fDBs;
00089 } ;
00090 
00091 #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