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 ** Copyright (C) 2006 Adriaan de Groot <groot@kde.org>
00008 **
00009 ** This file specializes SyncAction to a kind that can have interaction
00010 ** with the user without the Sync timing out.
00011 */
00012 
00013 /*
00014 ** This program is free software; you can redistribute it and/or modify
00015 ** it under the terms of the GNU General Public License as published by
00016 ** the Free Software Foundation; either version 2 of the License, or
00017 ** (at your option) any later version.
00018 **
00019 ** This program is distributed in the hope that it will be useful,
00020 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00022 ** GNU General Public License for more details.
00023 **
00024 ** You should have received a copy of the GNU General Public License
00025 ** along with this program in a file called COPYING; if not, write to
00026 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00027 ** MA 02110-1301, USA.
00028 */
00029 
00030 /*
00031 ** Bug reports and questions can be sent to kde-pim@kde.org.
00032 */
00033 
00034 
00035 class QTimer;
00036 
00037 #include "syncAction.h"
00038 
00039 class CheckUser : public SyncAction
00040 {
00041 public:
00042     CheckUser(KPilotLink *p,QWidget *w=0L);
00043     virtual ~CheckUser();
00044 
00045 protected:
00046     virtual bool exec();
00047 } ;
00048 
00049 class RestoreAction : public SyncAction
00050 {
00051 Q_OBJECT
00052 public:
00053     RestoreAction(KPilotLink *,QWidget *w=0L);
00054 
00055     typedef enum { InstallingFiles, GettingFileInfo,Done } Status;
00056     virtual QString statusString() const;
00057 
00067     void setDirectory( const QString &path );
00068 
00069 protected:
00070     virtual bool exec();
00071 
00072 protected slots:
00073     void installNextFile();
00074 
00075 private:
00076     class Private;
00077     Private *fP;
00078 } ;
00079 
00080 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys