Ticket #386: thumbgenerator.patch

File thumbgenerator.patch, 1.8 KB (added by mythtv@…, 15 years ago)
  • mythgallery/mythgallery/thumbgenerator.cpp

     
    1919 *
    2020 * ============================================================ */
    2121
    22 #include <qapplication.h>
    23 #include <qimage.h>
    24 #include <qobject.h>
    25 #include <qfileinfo.h>
    26 #include <qdir.h>
     22#include "thumbgenerator.h"
    2723
    2824#include "mythtv/mythcontext.h"
    29 #include "mythtv/util.h"
    30 
    31 #include "thumbgenerator.h"
    32 #include "constants.h"
    3325#include "galleryutil.h"
    3426
     27#include <qapplication.h>
     28#include <qdir.h>
     29#include <qfileinfo.h>
     30
    3531ThumbGenerator::ThumbGenerator(QObject *parent, int w, int h)
    3632{
    3733    m_parent = parent;
  • mythgallery/mythgallery/thumbgenerator.h

     
    1919 *
    2020 * ============================================================ */
    2121
    22 #ifndef THUMBGENERATOR_H
    23 #define THUMBGENERATOR_H
     22#ifndef _MYTHGALLERY_THUMBGENERATOR_H_
     23#define _MYTHGALLERY_THUMBGENERATOR_H_
    2424
    25 #include <qthread.h>
     25#include <qimage.h>
    2626#include <qstring.h>
    2727#include <qstringlist.h>
     28#include <qthread.h>
    2829
    29 class QObject;
    30 class QImage;
     30class QFileInfo;
    3131
    3232typedef struct {
    3333    QImage  thumb;
     
    6262   
    6363    bool mkpath(const QString& inPath);
    6464
     65private:
    6566    QObject     *m_parent;
    6667    QString      m_directory;
    6768    bool         m_isGallery;
    6869    QStringList  m_fileList;
    6970    QMutex       m_mutex;
    7071    int          m_width, m_height;
    71 
    7272};
    7373
    74 #endif /* THUMBGENERATOR_H */
     74#endif//_MYTHGALLERY_THUMBGENERATOR_H_