VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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 <QtWidgets/QApplication>
17
18
#include <QtCore/QDir>
19
20
#include <
applicationSettingsWithoutIgnore.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
std::string
language
()
const
;
108
109
bool
frontEndDebug
()
const
{
return
myFrontEndDebugFlag
; }
110
bool
backEndDebug
()
const
{
return
myBackEndDebugFlag
; }
111
112
public
slots:
113
void
setFrontEndDebug
(
bool
);
114
void
setBackendDebug
(
bool
);
115
116
protected
:
117
118
DtConnectionSettings
*
myConnectionSettings
;
119
DtApplicationSettingsWithoutIgnore
myApplicationSettings
;
120
DtConfigVariable<bool>
myRunFrontEndFlag
;
121
DtConfigVariable<bool>
myRunBackEndFlag
;
122
DtConfigVariable<bool>
myConfigTool
;
123
DtConfigVariable<bool>
myIgnoreFlag
;
124
DtConfigVariable<bool>
mySimArgsFlag
;
125
DtConfigVariable<bool>
myGuiArgsFlag
;
126
DtConfigVariable<DtString>
myUsePredefinedConnection
;
127
DtConfigVariable<DtString>
myLanguage
;
128
129
QDir
myFrontEndBinDir
;
130
QStringList
myAdditionalFrontEndArgs
;
131
132
QDir
myBackEndBinDir
;
133
QStringList
myAdditionalBackEndArgs
;
134
bool
myLaunchFlag
;
135
136
bool
myFrontEndDebugFlag
;
137
bool
myBackEndDebugFlag
;
138
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)