QTfrontend/databrowser.h
changeset 5755 a079b4dea081
child 5780 528dd4a14861
equal deleted inserted replaced
5754:583b7a683b17 5755:a079b4dea081
       
     1 #ifndef DATABROWSER_H
       
     2 #define DATABROWSER_H
       
     3 
       
     4 #include <QTextBrowser>
       
     5 #include <QSet>
       
     6 
       
     7 class QNetworkAccessManager;
       
     8 
       
     9 class DataBrowser : public QTextBrowser
       
    10 {
       
    11     Q_OBJECT
       
    12 public:
       
    13     explicit DataBrowser(QWidget *parent = 0);
       
    14 
       
    15 signals:
       
    16 
       
    17 public slots:
       
    18 
       
    19 private:
       
    20     QNetworkAccessManager *manager;
       
    21     QHash<QUrl, QByteArray> resources;
       
    22     QSet<QUrl> requestedResources;
       
    23 
       
    24     QVariant loadResource(int type, const QUrl & name);
       
    25 
       
    26 private slots:
       
    27     void resourceDownloaded();
       
    28 };
       
    29 
       
    30 #endif // DATABROWSER_H