Ticket #386: thumbgenerator.patch
File thumbgenerator.patch, 1.8 KB (added by , 20 years ago) |
---|
-
mythgallery/mythgallery/thumbgenerator.cpp
19 19 * 20 20 * ============================================================ */ 21 21 22 #include <qapplication.h> 23 #include <qimage.h> 24 #include <qobject.h> 25 #include <qfileinfo.h> 26 #include <qdir.h> 22 #include "thumbgenerator.h" 27 23 28 24 #include "mythtv/mythcontext.h" 29 #include "mythtv/util.h"30 31 #include "thumbgenerator.h"32 #include "constants.h"33 25 #include "galleryutil.h" 34 26 27 #include <qapplication.h> 28 #include <qdir.h> 29 #include <qfileinfo.h> 30 35 31 ThumbGenerator::ThumbGenerator(QObject *parent, int w, int h) 36 32 { 37 33 m_parent = parent; -
mythgallery/mythgallery/thumbgenerator.h
19 19 * 20 20 * ============================================================ */ 21 21 22 #ifndef THUMBGENERATOR_H23 #define THUMBGENERATOR_H22 #ifndef _MYTHGALLERY_THUMBGENERATOR_H_ 23 #define _MYTHGALLERY_THUMBGENERATOR_H_ 24 24 25 #include <q thread.h>25 #include <qimage.h> 26 26 #include <qstring.h> 27 27 #include <qstringlist.h> 28 #include <qthread.h> 28 29 29 class QObject; 30 class QImage; 30 class QFileInfo; 31 31 32 32 typedef struct { 33 33 QImage thumb; … … 62 62 63 63 bool mkpath(const QString& inPath); 64 64 65 private: 65 66 QObject *m_parent; 66 67 QString m_directory; 67 68 bool m_isGallery; 68 69 QStringList m_fileList; 69 70 QMutex m_mutex; 70 71 int m_width, m_height; 71 72 72 }; 73 73 74 #endif /* THUMBGENERATOR_H */74 #endif//_MYTHGALLERY_THUMBGENERATOR_H_