19 #ifndef RQT_MULTIPLOT_URL_SCHEME_H    20 #define RQT_MULTIPLOT_URL_SCHEME_H    23 #include <QModelIndex>    32     UrlScheme(
const QString& prefix, QObject* parent = 0);
    39     virtual QVariant 
getHostData(
const QModelIndex& index, 
int role)
    42     virtual size_t getNumPaths(
const QModelIndex& hostIndex, 
const    43       QModelIndex& parent = QModelIndex()) 
const = 0;
    44     virtual QModelIndex 
getPathIndex(
const QModelIndex& hostIndex,
    45       size_t row, 
const QModelIndex& parent = QModelIndex()) 
const = 0;
    46     virtual QVariant 
getPathData(
const QModelIndex& index, 
int role)
    49     virtual QString 
getHost(
const QModelIndex& hostIndex) 
const = 0;
    50     virtual QString 
getPath(
const QModelIndex& hostIndex, 
const    51       QModelIndex& pathIndex) 
const = 0;
    53     virtual QString 
getFilePath(
const QModelIndex& hostIndex,
    54       const QModelIndex& pathIndex) 
const = 0;
    55     virtual QString 
getFilePath(
const QString& host, 
const QString&
    61     void pathLoaded(
const QString& host, 
const QString& path);
 void pathLoaded(const QString &host, const QString &path)
virtual size_t getNumHosts() const =0
virtual QVariant getPathData(const QModelIndex &index, int role) const =0
const QString & getPrefix() const 
virtual QModelIndex getHostIndex(size_t row) const =0
virtual QString getPath(const QModelIndex &hostIndex, const QModelIndex &pathIndex) const =0
virtual size_t getNumPaths(const QModelIndex &hostIndex, const QModelIndex &parent=QModelIndex()) const =0
virtual QVariant getHostData(const QModelIndex &index, int role) const =0
UrlScheme(const QString &prefix, QObject *parent=0)
virtual QModelIndex getPathIndex(const QModelIndex &hostIndex, size_t row, const QModelIndex &parent=QModelIndex()) const =0
virtual QString getFilePath(const QModelIndex &hostIndex, const QModelIndex &pathIndex) const =0
virtual QString getHost(const QModelIndex &hostIndex) const =0