VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
appsrc
vrfLauncher
vrfLauncher.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (c) 2014 MAK Technologies, Inc.
3
* All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <vlutil/vlString.h>
13
#include <vlutil/vlFilename.h>
14
#include <vlutil/vlPrint.h>
15
16
#include <QtGui/QApplication>
17
18
#include <QtCore/QDir>
19
20
#include <mtl/applicationSettings.h>
21
#include <mtl/configVariable.h>
22
#include <mtl/multiConfigVariable.h>
23
#include <
connectionSettings.h
>
24
25
class
DtSettingsManager
;
26
class
DtConnectionSettings
;
27
class
DtSimMetricsLauncherInitializer;
28
29
namespace
makArchives
30
{
31
class
DtAutoDriversRecord;
32
}
33
36
class
DtVrfLauncherApplication
:
public
QApplication
37
{ Q_OBJECT;
38
public
:
39
41
DtVrfLauncherApplication
();
42
44
DtVrfLauncherApplication
(
int
& argc,
char
* argv[] );
45
47
virtual
~DtVrfLauncherApplication
();
48
51
virtual
bool
processPredefinedConnection
();
52
55
virtual
bool
processAutoConnect
();
56
59
virtual
bool
processDriver
(
const
std::string driverName,
60
const
std::string driverFilepath);
61
62
virtual
DtConnectionSettings
*
connectionSettings
();
63
64
virtual
void
setConnectionSettings
(
DtConnectionSettings
* settings);
65
66
// Name of front-end application to run
67
virtual
QString
frontEndAppName
();
68
// mutate/ access the appropriate bin directory for the Front-end.
69
virtual
void
setFrontEndBinDir
(
const
char
* path );
70
virtual
const
QDir&
frontEndBinDir
()
const
;
71
// returns a QFileInfo obj describing the path of the front-end app
72
//relative to the bin directory
73
virtual
QFileInfo
frontEndAppFile
();
74
//returns a QStringList of app-specific command-line args and their values
75
virtual
const
QStringList
frontEndAppArgs
()
const
;
76
77
//returns true if the connection is valid
78
virtual
bool
connectionWillBeValid
()
const
;
79
80
//Returns the name of the back-end app based upon protocol.
81
//If no protocol is given, it uses vrfLauncher.myProtocol.
82
virtual
QString
backEndAppNameFromProtocol
(
DtProtocolTypes
thisProtocol );
83
virtual
QString
backEndAppName
();
84
// mutate/ access the appropriate bin directory for the back-end.
85
virtual
void
setBackEndBinDir
(
const
char
* path );
86
virtual
const
QDir&
backEndBinDir
()
const
;
87
// returns a QFileInfo obj describing the path of the back-end app
88
//relative to the bin directory
89
virtual
QFileInfo
backEndAppFile
();
90
//returns a QStringList of app-specific command-line args and their values
91
virtual
const
QStringList
backEndAppArgs
()
const
;
92
93
virtual
int
startConnectionConfigWidget
();
94
95
// If this is true then the widget will have a launch button which will launch
96
// the current selected connection. If false the widget will only have a close button
97
virtual
void
setInLaunchMode
(
bool
launch );
98
virtual
bool
inLaunchMode
()
const
;
99
100
// returns a bool indicating whether the frontend and backend have been requested to launch
101
virtual
bool
frontEndLaunchRequested
()
const
;
102
virtual
bool
backEndLaunchRequested
()
const
;
103
virtual
bool
configurationMode
()
const
;
104
105
virtual
bool
combinedLaunchRequested
()
const
;
106
107
void
setFrontEndDebug
(
bool
);
108
void
setBackendDebug
(
bool
);
109
110
std::string
language
()
const
;
111
112
protected
:
113
114
DtConnectionSettings
*
myConnectionSettings
;
115
DtApplicationSettings
myApplicationSettings
;
116
DtConfigVariable<bool>
myRunFrontEndFlag
;
117
DtConfigVariable<bool>
myRunBackEndFlag
;
118
DtConfigVariable<bool>
myConfigTool
;
119
DtConfigVariable<DtString>
myUsePredefinedConnection
;
120
DtConfigVariable<DtString>
myLanguage
;
121
122
QDir
myFrontEndBinDir
;
123
QStringList
myFrontEndAppArgs
;
124
125
QDir
myBackEndBinDir
;
126
QStringList
myBackEndAppArgs
;
127
bool
myLaunchFlag
;
128
129
bool
myFrontEndDebugFlag
;
130
bool
myBackEndDebugFlag
;
131
};
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)