Project Documentation Manager BRIGADOON-0002
Project Documentation Manager
Loading...
Searching...
No Matches
programversion.h
Go to the documentation of this file.
1
8
9#ifndef PROGRAMVERSION_H
10#define PROGRAMVERSION_H
11
12#include <QObject>
13#include <QDateTime>
14#include <ui_mainwindow.h>
15#include "logger.h"
16#include "common_definitions.h"
17
22class ProgramVersion : public QObject
23{
24 Q_OBJECT
25public:
31 explicit ProgramVersion(Ui::MainWindow* UI_Window);
32
33public slots:
34
39 void DoClear(void);
40
45 void ReadProjectInfo(PROJECT_INFORMATION* ProjectId);
46
51 void ReadProjectDateTime( QDateTime ProjectDateTime);
52
53private:
54
59 Ui::MainWindow* ui;
60
65 uint project_index = 0;
66
72
78
86 void PresetMajorVersion( quint16 Value );
87
88 void LogAdd(LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message);
89
97 void PresetMinorVersion( quint16 Value );
98
106 void PresetRevision( quint16 Value );
107
114 QString ReadFullHistory(int ProjectIndex);
115
124 QString FormatVersion(int MajorVersion, int MinorVersion, int Revision);
125
126private slots:
127
141 void SetMajorVersion( quint16 Value );
142
155 void SetMinorVersion( quint16 Value );
156
168 void SetRevision( quint16 Value );
169
174 void SetStepOverride( int State );
175
181 void UpdateMajorVersion(int MajorVersion);
182
188 void UpdateMinorVersion(int MinorVersion);
189
195 void UpdateRevision(int Revision);
196
201 void SetVersionDate(void);
202
207 void ReadVersionText(uint ProjectIndex, VERSION_INFO Version);
208
213 void SaveVersion(void);
214
219 void SetOverrideEnable(bool Enable);
220
227 REMOTE_VERSION_ENTRY WriteVersion(uint ProjectId);
228
233 void LogProgramVersion(REMOTE_VERSION_ENTRY VersionInstance);
234
235
236signals:
237
243
250
256 void SendMajorVersion(int MajorVersion);
257
263 void SendMinorVersion(int MinorVersion);
264
270 void SendRevision(int Revision);
271
277 void SendProjectDateTime(QString ProjectDateTime);
278};
279
280#endif // PROGRAMVERSION_H
void SetOverrideEnable(bool Enable)
Enable/Disable the Override.
Ui::MainWindow * ui
void SetMajorVersion(quint16 Value)
Sets the Project's Major Version to Value.
void SendMajorVersion(int MajorVersion)
Send the Major Version.
void PresetRevision(quint16 Value)
Preset the Revision to a Value.
void SendRevision(int Revision)
Send the Revision.
void DoClear(void)
Reset the Version Information.
REMOTE_VERSION_ENTRY WriteVersion(uint ProjectId)
Read the Version Information into Structure.
QString FormatVersion(int MajorVersion, int MinorVersion, int Revision)
Format the numeric version (major, minor, revision) as text.
void SendLogEntry(REMOTE_LOG_ENTRY LogEntry)
Send Log Entry to the Log \LogEntry Structure holding Log information.
void LogAdd(LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message)
void SendVersionInfo(REMOTE_VERSION_ENTRY VersionEntry)
Send the Version information by the Signal-Slot Method.
void SetMinorVersion(quint16 Value)
Sets the Project's Minor Version to Value.
void ReadProjectInfo(PROJECT_INFORMATION *ProjectId)
Read The Project Information.
ProgramVersion(Ui::MainWindow *UI_Window)
Program Version Class Constructor.
void SaveVersion(void)
Save the Project's Version.
QString ReadFullHistory(int ProjectIndex)
Read the entire history of the Project as a string.
QString timestamp_format_string
DateTime Format String.
void UpdateRevision(int Revision)
Set the Revision to the Value Supplied.
void SendMinorVersion(int MinorVersion)
Send the Minor Version.
void SendProjectDateTime(QString ProjectDateTime)
Send the Current DateTime as the Version DateTime.
uint project_index
Project Index Number.
void LogProgramVersion(REMOTE_VERSION_ENTRY VersionInstance)
Convert the Program Version to Log Message and Send It.
void PresetMinorVersion(quint16 Value)
Preset the Minor Version to a Value.
void SetRevision(quint16 Value)
Sets the Project's Revision to Value.
void SetVersionDate(void)
Set the Version Date.
void UpdateMajorVersion(int MajorVersion)
Set the Major Version to the Value Supplied.
void UpdateMinorVersion(int MinorVersion)
Set the Minor Version to the Value Supplied.
VERSION_INFO version_info
Structure holding Version Information.
void ReadVersionText(uint ProjectIndex, VERSION_INFO Version)
Read the Version Text for the Project's Version.
void SetStepOverride(int State)
Set the Status of Version Step Override.
void PresetMajorVersion(quint16 Value)
Preset the Major Version to a Value.
void ReadProjectDateTime(QDateTime ProjectDateTime)
Read the Project DateTime.
Common Structure Defintitions.
LOGGING_SEVERITY
Log Severity allow the selection of logging events based on Severity.
Definition logger.h:48
LOGGING_MODE
Log Severity allow the selection of logging events based on the mode.
Definition logger.h:21
Project Information Passed Between Functions.
Definition logger.h:60
Version Structure used between functions.
Information about the Project's Version.