15#include <sys/socket.h>
21#include <QElapsedTimer>
106 int Run(
void (*funct)());
114 static void GuiLog(
const QString &results);
115 static QString
Name();
123 p_guiHelpers = helpers;
130 return p_guiHelpers[helper];
137 static QString
DateTime(time_t *curtime = 0);
148 QLocalSocket *p_connectionToParent;
150 clock_t p_startClock;
151 QElapsedTimer m_connectTime;
154 int p_startPageFaults;
155 int p_startProcessSwaps;
161 void SendParentData(QString,
const QString &);
162 void SendParentErrors(
PvlObject &errors);
165 static PvlGroup GetEnviromentInfo();
166 static QString GetSystemDiskSpace();
167 static QString GetLibraryDependencies(QString file);
170 void FunctionCleanup();
175 void UpdateProgress(
const QString &text,
bool print);
176 void UpdateProgress(
int percent,
bool print);
177 void ProcessGuiEvents();
182 void SetParentConnection(QLocalSocket *p_connection) {
183 p_connectionToParent = p_connection;
185 void EstablishConnections();
186 void WaitForCommand(
int childSocket);
189 std::map<QString, void *> p_guiHelpers;
190 static QString p_appName;
194 extern Application *
iApp;
Definition Application.h:101
int Run(void(*funct)())
Runs the program defined in the function funct.
Definition Application.cpp:176
static QString DateTime(time_t *curtime=0)
Returns the date and time as a QString.
Definition Application.cpp:802
PvlObject History()
Creates an application history PvlObject.
Definition Application.cpp:250
static void Log(PvlGroup &results)
Writes Pvl results to sessionlog and printfile.
Definition Application.cpp:352
PvlGroup Accounting()
Creates accounting PvlGroup.
Definition Application.cpp:280
static void GuiLog(const Pvl &results)
Writes the Pvl results to the sessionlog, but not to the printfile.
Definition Application.cpp:395
static QString HostName()
Returns the host name.
Definition Application.cpp:825
void GuiReportError(IException &e)
Loads the error message into the gui, but does not write it to the session log.
Definition Application.cpp:708
static QString Version()
The Isis Version for this application.
Definition Application.cpp:834
static QString Name()
Returns the name of the application.
Definition Application.cpp:729
void RegisterGuiHelpers(std::map< QString, void * > helpers)
Definition Application.h:122
static bool p_applicationForceGuiApp
Definition Application.h:117
static bool HasParent()
Returns whether the application has a parent or not.
Definition Application.cpp:472
static QString UserName()
Returns the user name.
Definition Application.cpp:816
void * GetGuiHelper(QString helper)
Definition Application.h:129
static UserInterface & GetUserInterface()
Returns the UserInterface object.
Definition Application.cpp:463
Application(int &argc, char *argv[])
Constuctor for the Application object.
Definition Application.cpp:63
~Application()
Destroys the Application object.
Definition Application.cpp:162
Definition Environment.h:36
Gui for Isis Applications.
Definition Gui.h:73
Isis exception class.
Definition IException.h:91
Execute External Programs and Commands.
Definition ProgramLauncher.h:34
Program progress reporter.
Definition Progress.h:42
Contains multiple PvlContainers.
Definition PvlGroup.h:41
Container for cube-like labels.
Definition Pvl.h:119
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
Command Line and Xml loader, validation, and access.
Definition UserInterface.h:139
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
Application * iApp
Definition Application.cpp:50