AntiMicroX
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
CommandLineUtility Class Reference

#include <commandlineutility.h>

Inheritance diagram for CommandLineUtility:
[legend]
Collaboration diagram for CommandLineUtility:
[legend]

Public Member Functions

 CommandLineUtility (QObject *parent=nullptr)
 
void parseArguments (const QApplication &parsed_app)
 load and parse arguments from commandline More...
 
bool isLaunchInTrayEnabled ()
 
bool isTrayHidden ()
 
bool hasProfile ()
 
bool hasControllerNumber ()
 
bool hasControllerID ()
 
bool isHiddenRequested ()
 
bool isShowRequested ()
 
bool isUnloadRequested ()
 
bool shouldListControllers ()
 
bool hasProfileInOptions ()
 
int getControllerNumber ()
 
int getStartSetNumber ()
 
int getJoyStartSetNumber ()
 
QString getControllerID ()
 
QString getProfileLocation ()
 
QString getEventGenerator ()
 
QString getCurrentLogFile ()
 
QList< int > * getJoyStartSetNumberList ()
 
const QList< ControllerOptionsInfo > & getControllerOptionsList ()
 
Logger::LogLevel getCurrentLogLevel ()
 

Private Member Functions

void parseArgsProfile (const QCommandLineParser &parser)
 
void parseArgsPrControle (const QCommandLineParser &parser)
 
void parseArgsUnload (const QCommandLineParser &parser)
 
void parseArgsStartSet (const QCommandLineParser &parser)
 

Private Attributes

bool launchInTray
 
bool hideTrayIcon
 
bool hiddenRequest
 
bool showRequest
 
bool unloadProfile
 
bool listControllers
 
int startSetNumber
 
int controllerNumber
 
int currentListsIndex
 
QString profileLocation
 
QString controllerIDString
 
QString eventGenerator
 
QString currentLogFile
 
Logger::LogLevel currentLogLevel
 
QList< ControllerOptionsInfocontrollerOptionsList
 

Static Private Attributes

static QStringList eventGeneratorsList = EventHandlerFactory::buildEventGeneratorList()
 

Constructor & Destructor Documentation

◆ CommandLineUtility()

CommandLineUtility::CommandLineUtility ( QObject *  parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ getControllerID()

QString CommandLineUtility::getControllerID ( )

◆ getControllerNumber()

int CommandLineUtility::getControllerNumber ( )
Here is the caller graph for this function:

◆ getControllerOptionsList()

const QList< ControllerOptionsInfo > & CommandLineUtility::getControllerOptionsList ( )
Here is the caller graph for this function:

◆ getCurrentLogFile()

QString CommandLineUtility::getCurrentLogFile ( )
Here is the caller graph for this function:

◆ getCurrentLogLevel()

Logger::LogLevel CommandLineUtility::getCurrentLogLevel ( )
Here is the caller graph for this function:

◆ getEventGenerator()

QString CommandLineUtility::getEventGenerator ( )
Here is the caller graph for this function:

◆ getJoyStartSetNumber()

int CommandLineUtility::getJoyStartSetNumber ( )

◆ getJoyStartSetNumberList()

QList<int>* CommandLineUtility::getJoyStartSetNumberList ( )

◆ getProfileLocation()

QString CommandLineUtility::getProfileLocation ( )
Here is the caller graph for this function:

◆ getStartSetNumber()

int CommandLineUtility::getStartSetNumber ( )

◆ hasControllerID()

bool CommandLineUtility::hasControllerID ( )
Here is the caller graph for this function:

◆ hasControllerNumber()

bool CommandLineUtility::hasControllerNumber ( )
Here is the caller graph for this function:

◆ hasProfile()

bool CommandLineUtility::hasProfile ( )
Here is the caller graph for this function:

◆ hasProfileInOptions()

bool CommandLineUtility::hasProfileInOptions ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isHiddenRequested()

bool CommandLineUtility::isHiddenRequested ( )
Here is the caller graph for this function:

◆ isLaunchInTrayEnabled()

bool CommandLineUtility::isLaunchInTrayEnabled ( )
Here is the caller graph for this function:

◆ isShowRequested()

bool CommandLineUtility::isShowRequested ( )
Here is the caller graph for this function:

◆ isTrayHidden()

bool CommandLineUtility::isTrayHidden ( )
Here is the caller graph for this function:

◆ isUnloadRequested()

bool CommandLineUtility::isUnloadRequested ( )
Here is the caller graph for this function:

◆ parseArgsPrControle()

void CommandLineUtility::parseArgsPrControle ( const QCommandLineParser &  parser)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseArgsProfile()

void CommandLineUtility::parseArgsProfile ( const QCommandLineParser &  parser)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseArgsStartSet()

void CommandLineUtility::parseArgsStartSet ( const QCommandLineParser &  parser)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseArgsUnload()

void CommandLineUtility::parseArgsUnload ( const QCommandLineParser &  parser)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseArguments()

void CommandLineUtility::parseArguments ( const QApplication &  parsed_app)

load and parse arguments from commandline

Parameters
parsed_app
Exceptions
std::runtime_error- in case of problems with parsing like unknown flag, wrong value etc
Here is the call graph for this function:
Here is the caller graph for this function:

◆ shouldListControllers()

bool CommandLineUtility::shouldListControllers ( )
Here is the caller graph for this function:

Field Documentation

◆ controllerIDString

QString CommandLineUtility::controllerIDString
private

◆ controllerNumber

int CommandLineUtility::controllerNumber
private

◆ controllerOptionsList

QList<ControllerOptionsInfo> CommandLineUtility::controllerOptionsList
private

◆ currentListsIndex

int CommandLineUtility::currentListsIndex
private

◆ currentLogFile

QString CommandLineUtility::currentLogFile
private

◆ currentLogLevel

Logger::LogLevel CommandLineUtility::currentLogLevel
private

◆ eventGenerator

QString CommandLineUtility::eventGenerator
private

◆ eventGeneratorsList

QStringList CommandLineUtility::eventGeneratorsList = EventHandlerFactory::buildEventGeneratorList()
staticprivate

◆ hiddenRequest

bool CommandLineUtility::hiddenRequest
private

◆ hideTrayIcon

bool CommandLineUtility::hideTrayIcon
private

◆ launchInTray

bool CommandLineUtility::launchInTray
private

◆ listControllers

bool CommandLineUtility::listControllers
private

◆ profileLocation

QString CommandLineUtility::profileLocation
private

◆ showRequest

bool CommandLineUtility::showRequest
private

◆ startSetNumber

int CommandLineUtility::startSetNumber
private

◆ unloadProfile

bool CommandLineUtility::unloadProfile
private

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