Make playlist items use the full width available to them and adjust correctly when...
[amarok.git] / src / metabundlesaver.h
blob23dfb063b4199abc3a6cef66cdfc53ea53d8e881
1 // Jeff Mitchell <kde-dev@emailgoeshere.com>, (C) 2006
2 // License: GNU General Public License V2
4 #ifndef METABUNDLESAVER_H
5 #define METABUNDLESAVER_H
7 #include <QObject>
8 #include <QStringList>
9 //Added by qt3to4:
10 #include <QByteArray>
11 #include <kurl.h> //inline functions
12 #include <klocale.h> //inline functions
13 #include <audioproperties.h>
14 #include "expression.h"
15 #include "atomicstring.h"
17 #include "amarok_export.h"
19 namespace TagLib {
20 class FileRef;
23 /**
24 * @class MetaBundleSaver
25 * @author Jeff Mitchell <kde-dev@emailgoeshere.com>
28 class MetaBundleSaver : public QObject
30 Q_OBJECT
31 public:
32 MetaBundleSaver( MetaBundle *bundle );
33 ~MetaBundleSaver();
35 //bool scannerSafeSave( TagLib::File* file );
36 TagLib::FileRef* prepareToSave();
37 bool doSave();
38 bool cleanupSave();
39 void abortSave( const QString message );
41 private:
42 MetaBundle *m_bundle;
43 QString m_tempSavePath;
44 QString m_origRenamedSavePath;
45 QByteArray m_tempSaveDigest;
46 TagLib::FileRef* m_saveFileref;
47 char m_databuf[8192];
48 Q_ULONG m_maxlen;
49 bool m_cleanupNeeded;
52 #endif