Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
orthanc-qt/loader.hpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 lines (25 sloc)
662 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef LOADER_HPP | |
#define LOADER_HPP | |
#include <QThread> | |
#include <QUrl> | |
#include <isis/data/io_factory.hpp> | |
class OrthancNode; | |
class Loader:public QThread{ | |
Q_OBJECT | |
std::list<isis::data::Image> images; | |
const QList<OrthancNode*> m_downloads; | |
const QString prefix; | |
QUrl url; | |
signals: | |
void progress(int new_pos); | |
void sizeCalculated(int new_size); | |
void statusText(QString new_status); | |
public: | |
Loader(QString url_prefix,QList<OrthancNode*> downloads,QObject *parent=0):QThread(parent),m_downloads(downloads),prefix(url_prefix){} | |
~Loader(); | |
QList<isis::data::Image> getImages(); | |
// QThread interface | |
protected: | |
void run(); | |
}; | |
#endif // LOADER_HPP |