Logo Search packages:      
Sourcecode: qcomicbook version File versions  Download package

imlibloader.h

Go to the documentation of this file.
#ifndef __IMLIBLOADER_H
#define __IMLIBLOADER_H

/*! \file imlibloader.h */

#include <qthread.h>
#include <qstringlist.h>

namespace QComicBook
{
      //! Thread-based image loader.
00012       class ImlibLoaderThread: public QThread
      {
            protected:
00015                   volatile QThread::Priority prio; //!<thread priority
00016                   QMutex mtx; //!<mutex for serialization of class attributes
00017                   QStringList requests; //!<the list of requested pages
                  volatile bool stopped;

                  virtual void run();

            public:
                  ImlibLoaderThread();
                  virtual ~ImlibLoaderThread();
                  
                  virtual void setPriority(QThread::Priority p);

                  virtual void request(const QString &file);

                  //! Stops processing requests and exits thread execution.
                  virtual void stop();
      };
}

#endif


Generated by  Doxygen 1.6.0   Back to index