fileInstaller.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef _KPILOT_FILEINSTALLER_H
00033 #define _KPILOT_FILEINSTALLER_H
00034
00035 #include <qobject.h>
00036 #include <qstring.h>
00037 #include <qstringlist.h>
00038
00039 class QStrList;
00040
00041 class FileInstaller : public QObject
00042 {
00043 Q_OBJECT
00044 public:
00045 FileInstaller();
00046 virtual ~FileInstaller();
00047
00048 void clearPending();
00049
00050 void addFiles( const QStringList&, QWidget* w );
00051 void addFile( const QString&, QWidget* w );
00052
00058 const QString &dir() const { return fDirName; } ;
00059 const QStringList fileNames() const ;
00060
00061
00062
00063 protected:
00064 virtual bool runCopy( const QString &src, QWidget*w );
00065
00066 public slots:
00067 void copyCompleted();
00068 void setEnabled(bool);
00069
00070 signals:
00071 void filesChanged();
00072 private:
00073 QString fDirName;
00074 int fPendingCopies;
00075 bool enabled;
00076 } ;
00077
00078 #else
00079 #ifdef DEBUG
00080 #warning "File doubly included"
00081 #endif
00082 #endif
This file is part of the documentation for kpilot Library Version 3.2.2.