forked from quickshell/quickshell
20 lines
436 B
C++
20 lines
436 B
C++
#pragma once
|
|
|
|
#include <qcontainerfwd.h>
|
|
#include <qhash.h>
|
|
#include <qloggingcategory.h>
|
|
#include <qvector.h>
|
|
|
|
Q_DECLARE_LOGGING_CATEGORY(logQmlScanner);
|
|
|
|
// expects canonical paths
|
|
class QmlScanner {
|
|
public:
|
|
void scanDir(const QString& path);
|
|
// returns if the file has a singleton
|
|
bool scanQmlFile(const QString& path);
|
|
|
|
QVector<QString> scannedDirs;
|
|
QVector<QString> scannedFiles;
|
|
QHash<QString, QString> qmldirIntercepts;
|
|
};
|