00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef DAYSPECIFICPLAYLISTFILEADDER_H
00020 #define DAYSPECIFICPLAYLISTFILEADDER_H
00021
00022 #include <QDir>
00023 #include <QDate>
00024 #include "playlistfileadder.h"
00025 #include "dayspecificfileadditionprogressdialog.h"
00026
00027 class daySpecificPlaylistFileAdder : public playlistFileAdder
00028 {
00029 Q_OBJECT
00030 public:
00031 daySpecificPlaylistFileAdder(PlaylistChildThreadsTracker* parent, PlaylistEditorDialog* playlist);
00032 virtual ~daySpecificPlaylistFileAdder();
00033 void setBaseDirAndCurrentDate(const QDir &entryLocationBaseDir, const QDate &date);
00034 DaySpecificFileAdditionProgressDialog *iProgressDialog;
00035 protected:
00036 void run();
00037 private:
00038 void PrepareFileAdditionAndAppend(const QString &fileName, const QString &FullPath);
00039 private:
00040 QDir iEntryLocationBaseDir;
00041 QDate iLastEditedDate;
00042 qint64 iProgressBarValueDivider;
00043
00044 int iLastCopyProgresBarValue;
00045 private slots:
00046
00047
00048
00049 void stopInit();
00050 signals:
00051 void SetCopyProgressBarVal(int value);
00052 void CopyProgressBarRangeChange(int min, int max);
00053 void SetCopyingLabelText( const QString &text );
00054 void SetAddingFileLabelText( const QString &text );
00055 };
00056 #endif