kpilot/kpilot

interactiveSync.h

00001 #ifndef _KPILOT_INTERACTIVESYNC_H
00002 #define _KPILOT_INTERACTIVESYNC_H
00003 /* interactiveSync.h                    KPilot
00004 **
00005 ** Copyright (C) 2001 by Dan Pilone
00006 ** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00007 **
00008 ** This file specializes SyncAction to a kind that can have interaction
00009 ** with the user without the Sync timing out.
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 
00034 class QTimer;
00035 
00036 #include "syncAction.h"
00037 
00038 class CheckUser : public SyncAction
00039 {
00040 public:
00041     CheckUser(KPilotDeviceLink *p,QWidget *w=0L);
00042     virtual ~CheckUser();
00043 
00044 protected:
00045     virtual bool exec();
00046 } ;
00047 
00048 class RestoreAction : public SyncAction
00049 {
00050 Q_OBJECT
00051 public:
00052     RestoreAction(KPilotDeviceLink *,QWidget *w=0L);
00053 
00054     typedef enum { InstallingFiles, GettingFileInfo,Done } Status;
00055     virtual QString statusString() const;
00056 
00057 protected:
00058     virtual bool exec();
00059 
00060 protected slots:
00061     void getNextFileInfo();
00062     void installNextFile();
00063 
00064 private:
00065     // Use a private-d pointer for once (well, in KPilot
00066     // parlance it'd be fd, which is confusing, so it's
00067     // become a private fP) since we need QList or QPtrList.
00068     //
00069     //
00070     class RestoreActionPrivate;
00071     RestoreActionPrivate *fP;
00072 } ;
00073 
00074 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys