kpilot Library API Documentation

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 **
00007 ** This file specializes SyncAction to a kind that can have interaction
00008 ** with the user without the Sync timing out.
00009 */
00010 
00011 /*
00012 ** This program is free software; you can redistribute it and/or modify
00013 ** it under the terms of the GNU General Public License as published by
00014 ** the Free Software Foundation; either version 2 of the License, or
00015 ** (at your option) any later version.
00016 **
00017 ** This program is distributed in the hope that it will be useful,
00018 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00020 ** GNU General Public License for more details.
00021 **
00022 ** You should have received a copy of the GNU General Public License
00023 ** along with this program in a file called COPYING; if not, write to
00024 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00025 ** MA 02111-1307, USA.
00026 */
00027 
00028 /*
00029 ** Bug reports and questions can be sent to kde-pim@kde.org.
00030 */
00031 
00032 
00033 class QTimer;
00034 
00035 #include <qstring.h>
00036 
00037 #include "syncAction.h"
00038 
00039 class CheckUser : public InteractiveAction
00040 {
00041 public:
00042     CheckUser(KPilotDeviceLink *p,QWidget *w=0L);
00043     virtual ~CheckUser();
00044 
00045 protected:
00046     virtual bool exec();
00047 } ;
00048 
00049 class RestoreAction : public InteractiveAction
00050 {
00051 Q_OBJECT
00052 public:
00053     RestoreAction(KPilotDeviceLink *,QWidget *w=0L);
00054 
00055     typedef enum { InstallingFiles, GettingFileInfo,Done } Status;
00056     virtual QString statusString() const;
00057 
00058 protected:
00059     virtual bool exec();
00060 
00061 protected slots:
00062     void getNextFileInfo();
00063     void installNextFile();
00064 
00065 private:
00066     // Use a private-d pointer for once (well, in KPilot
00067     // parlance it'd be fd, which is confusing, so it's
00068     // become a private fP) since we need QList or QPtrList.
00069     //
00070     //
00071     class RestoreActionPrivate;
00072     RestoreActionPrivate *fP;
00073 } ;
00074 
00075 #endif
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:47 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003