Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
JsonOutput Class Reference

#include <utils.h>

+ Collaboration diagram for JsonOutput:

Public Member Functions

void addFile (const QString &source, const QString &target)
 
void removeTargetDirectory (const QString &targetDirectory)
 
QByteArray toJson () const
 
QByteArray toList (ListOption option, const QDir &base) const
 

Detailed Description

Definition at line 69 of file utils.h.

Member Function Documentation

◆ addFile()

void JsonOutput::addFile ( const QString & source,
const QString & target )
inline

Definition at line 75 of file utils.h.

References QList< T >::append().

Referenced by deployTranslations(), updateFile(), and updateFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeTargetDirectory()

void JsonOutput::removeTargetDirectory ( const QString & targetDirectory)
inline

Definition at line 80 of file utils.h.

References QList< T >::at(), i, QList< T >::removeAt(), and QList< T >::size().

Referenced by updateFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toJson()

QByteArray JsonOutput::toJson ( ) const
inline

Definition at line 88 of file utils.h.

References files, QJsonObject::insert(), QStringLiteral, QJsonDocument::toJson(), and QDir::toNativeSeparators().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toList()

QByteArray JsonOutput::toList ( ListOption option,
const QDir & base ) const
inline

Definition at line 101 of file utils.h.

References base, QFileInfo::fileName(), fileName, list, ListMapping, ListNone, ListRelative, ListSource, ListTarget, QDir::separator(), and QDir::toNativeSeparators().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: