Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
scanner.cpp File Reference

(481827547f3ba06ecf5d02b85f5f99de2d08b717)

#include "scanner.h"
#include "logging.h"
#include <QtCore/qdir.h>
#include <QtCore/qhash.h>
#include <QtCore/qjsonarray.h>
#include <QtCore/qjsondocument.h>
#include <QtCore/qjsonobject.h>
#include <QtCore/qtextstream.h>
#include <QtCore/qvariant.h>
#include <iostream>
+ Include dependency graph for scanner.cpp:

Go to the source code of this file.

Classes

struct  Scanner::CursorPosition
 

Namespaces

namespace  Scanner
 

Functions

static void Scanner::missingPropertyWarning (const QString &filePath, const QString &property)
 
static bool Scanner::validatePackage (Package &p, const QString &filePath, Checks checks, LogLevel logLevel)
 
static std::optional< QStringListScanner::toStringList (const QJsonValue &value)
 
static std::optional< QStringScanner::arrayToMultiLineString (const QJsonValue &value)
 
static QStringList Scanner::extractLicenseIdsFromSPDXExpression (QString expression)
 
static QString Scanner::locateLicensesDir (const QString &packageDir)
 
static bool Scanner::autoDetectLicenseFiles (Package &p)
 
static bool Scanner::handleStringOrStringArrayJsonKey (QStringList &outList, const QString &key, QJsonValueConstRef jsonValue, const QString &filePath, LogLevel logLevel)
 
static std::optional< PackageScanner::readPackage (const QJsonObject &object, const QString &filePath, Checks checks, LogLevel logLevel)
 
static Package Scanner::parseChromiumFile (QFile &file, const QString &filePath, LogLevel logLevel)
 
static CursorPosition Scanner::mapFromOffset (const QByteArray &content, int offset)
 
std::optional< QList< Package > > Scanner::readFile (const QString &filePath, Checks checks, LogLevel logLevel)
 
std::optional< QList< Package > > Scanner::scanDirectory (const QString &directory, InputFormats inputFormats, Checks checks, LogLevel logLevel)