GCF LOGO VCL LOGO

GCF::Application represents the non-gui, terminal application configuration available in GCF3. More...

#include <GCF3/Application>

Public Member Functions

 Application (int &argc, char **argv)
 
 ~Application ()
 
int processArgumentsAndExec (const QStringList &additionalArgs=QStringList())
 
- Public Member Functions inherited from GCF::ApplicationServices
QDateTime launchTimestamp () const
 
ObjectTreeobjectTree () const
 
QObject * findObject (const QString &path) const
 
void loadComponent (Component *component)
 
void unloadComponent (Component *component)
 
QObjectList components () const
 
void activateComponent (Component *component)
 
void deactivateComponent (Component *component)
 
bool isLoaded (const Component *component) const
 
bool isActive (const Component *component) const
 
void unloadAllComponents ()
 
ComponentinstantiateComponent (const QString &library)
 
ComponentloadComponent (const QString &library)
 
ComponentloadComponent (const QString &library, const QList< QPair< QByteArray, QVariant > > &properties)
 
QList< Component * > loadComponents (const QStringList &libraries)
 
QVariantMap argumentsMap () const
 
void processArguments (const QStringList &additionalArgs=QStringList())
 
GCF::Result invokeMethod (const QString &path, const QString &method, const QVariantList &args, bool secureCall=true) const
 This method can be used to invoke a named method in an object. More...
 
GCF::JobListModeljobs () const
 
QString translate (const QString &string) const
 

Static Public Member Functions

static Applicationinstance ()
 
- Static Public Member Functions inherited from GCF::ApplicationServices
static GCF::Result invokeMethod (QObject *object, const QString &method, const QVariantList &args, bool secureCall=true)
 This method can be used to invoke a named method in an object. More...
 
static GCF::Result invokeMethod (QObject *object, const QMetaMethod &method, const QVariantList &args, bool secureCall=true)
 This method can be used to invoke a named method in an object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from GCF::ApplicationServices
 ApplicationServices ()
 
virtual ~ApplicationServices ()
 

Detailed Description

All non-gui, terminal applications should make use of this application configuration, by creating an instance of GCF::Application just like how it is done with QtCoreApplication

int main(int argc, char **argv)
{
GCF::Application app(argc, argv);
return app.processArgumentsAndExec();
}
Note
When using this appplication configuration, you cannot load any gui/qml components in your application.

Constructor & Destructor Documentation

GCF::Application::Application ( int &  argc,
char **  argv 
)

Constructor.

GCF::Application::~Application ( )

Destructor.

Member Function Documentation

GCF::Application * GCF::Application::instance ( )
static

Returns the instance of the application.

GCF::Application::processArgumentsAndExec ( const QStringList &  additionalArgs = QStringList())

Processes the application arguments, and additional arguments if any, and starts the application's event-loop.