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(QStrList&);
00051 void addFiles(QStringList&);
00052 void addFile(const QString&);
00053
00059 const QString &dir() const { return fDirName; } ;
00060 const QStringList fileNames() const ;
00061
00062
00063
00064 protected:
00065 virtual bool runCopy(const QString &src);
00066
00067 public slots:
00068 void copyCompleted();
00069 void setEnabled(bool);
00070
00071 signals:
00072 void filesChanged();
00073 private:
00074 QString fDirName;
00075 int fPendingCopies;
00076 bool enabled;
00077 } ;
00078
00079 #else
00080 #ifdef DEBUG
00081 #warning "File doubly included"
00082 #endif
00083 #endif
This file is part of the documentation for kdelibs Version 3.1.4.