WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
Functions | Variables
main.cpp File Reference
#include <QCoreApplication>
#include <QQmlApplicationEngine>
#include <QPluginLoader>
#include <QDir>
#include <QtDebug>
#include "ZblApp.h"
#include "ZResourceEdifyIF.h"
#include <iostream>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

bool loadPlugin ()
 
void printUsage ()
 
void addImportPath (const QString &prefix, const QString &path, QQmlEngine *engine)
 
void addPath (const QString &prefix, const QString &path, QStringList &pathList)
 
void dumpPathList (const QStringList &list)
 
QString findScriptPath (const QString &name)
 
QStringList getPathList ()
 
void listScripts ()
 
QString getScriptPath ()
 
void printScriptPath ()
 
static QString extension ("qml")
 
static QString envPathName ("ZUB_PATH")
 
static QChar pathSeparator (':')
 
int main (int argc, char *argv[])
 

Variables

static QString zubName
 

Function Documentation

◆ addImportPath()

void addImportPath ( const QString &  prefix,
const QString &  path,
QQmlEngine *  engine 
)

Definition at line 130 of file main.cpp.

◆ addPath()

void addPath ( const QString &  prefix,
const QString &  path,
QStringList &  pathList 
)

Definition at line 140 of file main.cpp.

◆ dumpPathList()

void dumpPathList ( const QStringList &  list)

Definition at line 150 of file main.cpp.

◆ envPathName()

static QString envPathName ( "ZUB_PATH"  )
static

◆ extension()

static QString extension ( "qml"  )
static

Referenced by findScriptPath(), and listScripts().

◆ findScriptPath()

QString findScriptPath ( const QString &  name)

Definition at line 219 of file main.cpp.

Referenced by main().

◆ getPathList()

QStringList getPathList ( )

Definition at line 324 of file main.cpp.

Referenced by findScriptPath(), and listScripts().

◆ getScriptPath()

QString getScriptPath ( )

Definition at line 339 of file main.cpp.

Referenced by getPathList(), listScripts(), and printScriptPath().

◆ listScripts()

void listScripts ( )

Definition at line 280 of file main.cpp.

Referenced by main().

◆ loadPlugin()

bool loadPlugin ( )

Definition at line 164 of file main.cpp.

Referenced by main(), and Zbl::ZblCog::mapConfigResources().

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 52 of file main.cpp.

◆ pathSeparator()

static QChar pathSeparator ( ':'  )
static

Referenced by getPathList().

◆ printScriptPath()

void printScriptPath ( )

Definition at line 356 of file main.cpp.

Referenced by main().

◆ printUsage()

void printUsage ( )

Definition at line 363 of file main.cpp.

Referenced by main().

Variable Documentation

◆ zubName

QString zubName
static