All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Static Public Member Functions
QGpCoreTools::CoreApplication Class Reference

Brief description of class still missing. More...

#include <CoreApplication.h>

Inheritance diagram for QGpCoreTools::CoreApplication:
QGpCoreTools::CoreApplicationPrivate

List of all members.

Public Member Functions

 CoreApplication (int &argc, char **argv, ApplicationHelp *(*help)(), bool reportBugs=true)
virtual bool hasGui () const
 ~CoreApplication ()

Static Public Member Functions

static CoreApplicationPrivateinstance ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

QGpCoreTools::CoreApplication::CoreApplication ( int &  argc,
char **  argv,
ApplicationHelp *(*)()  help,
bool  reportBugs = true 
)

Description of constructor still missing

References QGpCoreTools::CoreApplicationPrivate::addArgumentList(), QGpCoreTools::CoreApplicationPrivate::checkAtomicOperations(), QGpCoreTools::CoreApplicationPrivate::constructorApplicationName(), help(), QGpCoreTools::CoreApplicationPrivate::initInternalDebugger(), QGpCoreTools::CoreApplicationPrivate::initTranslations(), QGpCoreTools::CoreApplicationPrivate::printArgumentLists(), QGpCoreTools::CoreApplicationPrivate::setMessageHandler(), and QGpCoreTools::CoreApplicationPrivate::showHelp().

    : CoreApplicationPrivate(argc, argv), QCoreApplication(argc, argv)
{
  // Qt application information
  setApplicationName(CoreApplicationPrivate::constructorApplicationName());
  setOrganizationDomain("geopsy.org");
  setOrganizationName("geopsy");
  // Install message handler
  setMessageHandler(new Message);
  // load translation if necessary
  initTranslations();

  // Check arguments
  int i, j=1;
  for(i=1; i<argc; i++) {
    QByteArray arg=argv[i];
    if(arg=="-reportbug" || arg=="-reportint") {
      reportBug();
      ::exit(0);
    } else if(help && (arg=="--help" || arg=="-help" || arg=="-h")) {
      showHelp(i, argc, argv, help);
      ::exit(0);
    } else if(arg=="-args") {
      printArgumentLists();
      ::exit(0);
    } else if(arg=="--nobugreport" || arg=="-nobugreport") {
      reportBugs=false;
    } else {
      argv[j++]=argv[i];
    }
  }
  if(j < argc) {
    argv[j]=0;
    argc=j;
  }

  initInternalDebugger(reportBugs);
  checkAtomicOperations();

  // Use current system locale (interesting for decimal point conversions)
  QLocale::setDefault(QLocale::system());
  // Store arguments for history listing, here to avoid generic options (-h,...)
  addArgumentList(argc, argv);
}

Description of destructor still missing

References QGpCoreTools::CoreApplicationPrivate::destructorCleanUp().


Member Function Documentation

virtual bool QGpCoreTools::CoreApplication::hasGui ( ) const [inline, virtual]

Implements QGpCoreTools::CoreApplicationPrivate.

{return false;}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines