kpilot/kpilot
fileInstaller.h00001
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
00033 #ifndef _KPILOT_FILEINSTALLER_H
00034 #define _KPILOT_FILEINSTALLER_H
00035
00036 #include <qobject.h>
00037
00038
00039 class QStringList;
00040 class QString;
00041
00042 class FileInstaller : public QObject
00043 {
00044 Q_OBJECT
00045 public:
00046 FileInstaller();
00047 virtual ~FileInstaller();
00048
00049 void clearPending();
00050
00051 void addFiles( const QStringList&, QWidget* w );
00052 void addFile( const QString&, QWidget* w );
00053
00054 void deleteFile(const QString &);
00055 void deleteFiles(const QStringList &);
00056
00062 const QString &dir() const { return fDirName; } ;
00063 const QStringList fileNames() const ;
00064
00065
00066
00067 protected:
00068 virtual bool runCopy( const QString &src, QWidget*w );
00069
00070 public slots:
00071 void copyCompleted();
00072 void setEnabled(bool);
00073
00074 signals:
00075 void filesChanged();
00076 private:
00077 QString fDirName;
00078 int fPendingCopies;
00079 bool enabled;
00080 } ;
00081
00082 #endif
|