42 lines · 840 B · C
RawDownload
////  BatchLoader.h//  libraries/script-engine/src////  Created by Ryan Huffman on 01/22/15//  Copyright 2015 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #ifndef hifi_BatchLoader_h#define hifi_BatchLoader_h #include <QList>#include <QMap>#include <QObject>#include <QSet>#include <QString>#include <QUrl> class BatchLoader : public QObject {    Q_OBJECTpublic:    BatchLoader(const QList<QUrl>& urls) ;     void start();    bool isFinished() const { return _finished; }; signals:    void finished(const QMap<QUrl, QString>& data); private:    void checkFinished();     bool _started;    bool _finished;    QSet<QUrl> _urls;    QMap<QUrl, QString> _data;}; #endif // hifi_BatchLoader_h