|
Project Documentation Manager BRIGADOON-0002
Project Documentation Manager
|
Class to Manager the Project Licences. More...
#include <licencemanager.h>
Public Slots | |
| void | SaveQtLicence (void) |
| Save the Default Qt Licence to settings. | |
| void | ReadPrimaryTool (int ToolIndex) |
| read Primary Tool & Apply any licence Restrictions | |
| void | ReadLicenceState (LICENCE_STATE LicenceState) |
| process the Licence state including any restrictions | |
| void | TriggerSendLicence (void) |
| Trigger to send out the Licence states. | |
| void | DoClear (void) |
| Resest the Licences fro the Database. | |
Signals | |
| void | SendLogEntry (REMOTE_LOG_ENTRY LogEntry) |
| Send Log Entry to the Log \LogEntry Structure holding Log information. | |
| void | SendLicenceState (LICENCE_STATE LicenceState) |
| Send the State of the Licences. | |
| void | UpdateSoftwareLicence (QString LicenceName) |
| Emits the Text Name of the Software Lidence. | |
| void | UpdateHardwareLicence (QString LicenceName) |
| Emits the Text Name of the Hardware Lidence. | |
| void | UpdateDocumentationLicence (QString LicenceName) |
| Emits the Text Name of the Documentation Lidence. | |
Public Member Functions | |
| LicenceManager (Ui::MainWindow *UI_Window) | |
| LicenceManager Construction routine. | |
| void | LoadLicences (void) |
| Load the Licence Data from the Database. | |
| void | WriteLicenceState (void) |
| Read the Current Lilcence Stae on Display & Send out. | |
Private Slots | |
| void | SetSoftwareLicence (int LicenceIndex) |
| Set the Software Licence. | |
| void | SetHardwareLicence (int LicenceIndex) |
| Set the Hardware Licence. | |
| void | SetDocumentationLicence (int LicenceIndex) |
| Set the Documentation Licence. | |
Private Member Functions | |
| void | LogAdd (LOGGING_SEVERITY Severity, LOGGING_MODE Mode, const QString Message) |
| Add a Log Entry. | |
| void | SendStatusMessage (QString Type, int Counter) |
| Send the Type of Licence and the number licences loaded. | |
| void | LoadQtLicence (void) |
| Load the Qt Licence from settings. | |
| void | ProcessSoftwareRestriction (int DocumentationRestriction) |
| Use the Soft Restrictions to limit the possible licence selections. | |
| void | ProcessDocumentationRestriction (int DocumentationRestriction) |
| Use the Documenrtation Restrictions to limit the possible licence selections. | |
| void | ProcessHardwareRestriction (int HardwareRestriction) |
| Use the Hardware Restrictions to limit the possible licence selections. | |
| uint | GetLicenceIndex (QString LicenceText) |
| Find the Licence Index from the Licence text. | |
Private Attributes | |
| Ui::MainWindow * | ui |
| Pointer to the Main Window. | |
| int | primary_tool_index |
| Index of the Primary Tool. | |
| int | qt_licence_index |
| Index of the Qt Licence. | |
Class to Manager the Project Licences.
Definition at line 17 of file licencemanager.h.
|
explicit |
LicenceManager Construction routine.
| UI_Window | POinter to the main window |
|
slot |
Resest the Licences fro the Database.
Definition at line 281 of file licencemanager.cpp.
References LoadLicences().
|
private |
Find the Licence Index from the Licence text.
| Licence | Short Name Licence Text |
Return the Licence Index, or 0 if there is no match
Definition at line 264 of file licencemanager.cpp.
Referenced by WriteLicenceState().
| void LicenceManager::LoadLicences | ( | void | ) |
Load the Licence Data from the Database.
Definition at line 17 of file licencemanager.cpp.
References LoadQtLicence(), SendStatusMessage(), and ui.
Referenced by DoClear().
|
private |
Load the Qt Licence from settings.
Definition at line 92 of file licencemanager.cpp.
References LOG_DEBUG, LogAdd(), MODE_CONFIG, and ui.
Referenced by LoadLicences().
|
private |
Add a Log Entry.
| Severity | Severity of the Logged Event |
| Mode | Part of the Program being Logged |
| Message | Description of the Log Event |
Definition at line 108 of file licencemanager.cpp.
References REMOTE_LOG_ENTRY::Message, REMOTE_LOG_ENTRY::Mode, SendLogEntry(), and REMOTE_LOG_ENTRY::Severity.
Referenced by LoadQtLicence(), SaveQtLicence(), SendStatusMessage(), and TriggerSendLicence().
|
private |
Use the Documenrtation Restrictions to limit the possible licence selections.
| DocumentationRestriction | Posible restriction to Software Licences |
Definition at line 198 of file licencemanager.cpp.
References ui.
Referenced by ReadLicenceState(), and ReadPrimaryTool().
|
private |
Use the Hardware Restrictions to limit the possible licence selections.
| HardwareRestriction | Posible restrictions to Hardware Licences |
Definition at line 223 of file licencemanager.cpp.
References ui.
Referenced by ReadLicenceState(), and ReadPrimaryTool().
|
private |
Use the Soft Restrictions to limit the possible licence selections.
| SoftwareRestriction | Posible restriction to Software Licences |
Definition at line 172 of file licencemanager.cpp.
References ui.
Referenced by ReadLicenceState(), and ReadPrimaryTool().
|
slot |
process the Licence state including any restrictions
| LicenceState | Structure holding the state of the licences |
Definition at line 248 of file licencemanager.cpp.
References LICENCE_STATE::DocumentationLicence, LICENCE_STATE::HardwareLicence, ProcessDocumentationRestriction(), ProcessHardwareRestriction(), ProcessSoftwareRestriction(), and LICENCE_STATE::SoftwareLicence.
|
slot |
read Primary Tool & Apply any licence Restrictions
Definition at line 117 of file licencemanager.cpp.
References ProcessDocumentationRestriction(), ProcessHardwareRestriction(), ProcessSoftwareRestriction(), and ui.
|
slot |
Save the Default Qt Licence to settings.
Definition at line 100 of file licencemanager.cpp.
References LOG_INFO, LogAdd(), MODE_CONFIG, and ui.
|
signal |
Send the State of the Licences.
| Structure | holding Licence Information |
Referenced by WriteLicenceState().
|
signal |
Send Log Entry to the Log \LogEntry Structure holding Log information.
Referenced by LogAdd().
|
private |
Send the Type of Licence and the number licences loaded.
| Type | The Type of Licence in text |
| Counter | The number Licences of that Type loaded |
Definition at line 80 of file licencemanager.cpp.
References LOG_DEBUG, LOG_ERROR, LogAdd(), and MODE_DATABASE.
Referenced by LoadLicences().
|
privateslot |
Set the Documentation Licence.
| LicenceIndex |
Definition at line 298 of file licencemanager.cpp.
References ui, and UpdateDocumentationLicence().
|
privateslot |
Set the Hardware Licence.
| LicenceIndex |
Definition at line 292 of file licencemanager.cpp.
References ui, and UpdateHardwareLicence().
|
privateslot |
Set the Software Licence.
| LicenceIndex |
Definition at line 286 of file licencemanager.cpp.
References ui, and UpdateSoftwareLicence().
|
slot |
Trigger to send out the Licence states.
Definition at line 275 of file licencemanager.cpp.
References LOG_DEBUG, LogAdd(), MODE_QT, and WriteLicenceState().
|
signal |
Emits the Text Name of the Documentation Lidence.
Referenced by SetDocumentationLicence().
|
signal |
Emits the Text Name of the Hardware Lidence.
Referenced by SetHardwareLicence().
|
signal |
Emits the Text Name of the Software Lidence.
Referenced by SetSoftwareLicence().
| void LicenceManager::WriteLicenceState | ( | void | ) |
Read the Current Lilcence Stae on Display & Send out.
Definition at line 255 of file licencemanager.cpp.
References LICENCE_STATE::DocumentationLicence, GetLicenceIndex(), LICENCE_STATE::HardwareLicence, SendLicenceState(), LICENCE_STATE::SoftwareLicence, and ui.
Referenced by TriggerSendLicence().
|
private |
Index of the Primary Tool.
Definition at line 86 of file licencemanager.h.
|
private |
Index of the Qt Licence.
Definition at line 92 of file licencemanager.h.
|
private |
Pointer to the Main Window.
Definition at line 80 of file licencemanager.h.
Referenced by LoadLicences(), LoadQtLicence(), ProcessDocumentationRestriction(), ProcessHardwareRestriction(), ProcessSoftwareRestriction(), ReadPrimaryTool(), SaveQtLicence(), SetDocumentationLicence(), SetHardwareLicence(), SetSoftwareLicence(), and WriteLicenceState().