OSDN Git Service

Made the ProgressModel expose the QIcon's, so we can re-use them int the ProcessingDi...
[lamexp/LameXP.git] / src / Thread_CueSplitter.h
index a3717a0..a5170d8 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2011 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2012 LoRd_MuldeR <MuldeR2@GMX.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -52,6 +52,8 @@ public:
 signals:
        void fileSelected(const QString &fileName);
        void fileSplit(const AudioFileModel &file);
+       void progressValChanged(unsigned int);
+       void progressMaxChanged(unsigned int);
 
 private slots:
        void handleUpdate(int progress);
@@ -62,6 +64,7 @@ public slots:
 private:
        void splitFile(const QString &output, const int trackNo, const QString &file, const double offset, const double length, const AudioFileModel &metaInfo, int &maxProgress);
        QString indexToString(const double index) const;
+       QString shortName(const QString &longName) const;
        
        const QString m_soxBin;
        const QString m_outputDir;
@@ -69,6 +72,8 @@ private:
        unsigned int m_nTracksSuccess;
        unsigned int m_nTracksSkipped;
        
+       static const int m_processTimeoutInterval = 180000;
+
        bool m_bAborted;
        bool m_bSuccess;