17 QString query_string = QString(
"select * from project where project_index = %1").arg(QString::number(ProjectIndex));
19 QSqlQuery project_query(query_string);
20 while ( project_query.next() )
64 query_string = QString(
"select * from project_manager where proj_manager_index = %1").arg(QString::number(ProgramIndex));
66 QSqlQuery program_query(query_string);
68 while ( program_query.next() )
91 return(result && result1);
97 QString query_string = QString(
"select * from licence where licence_index = %1").arg(QString::number(LicenceIndex));
99 QSqlQuery licence_query(query_string);
101 while ( licence_query.next() )
103 Licence->
LicenceIndex = licence_query.value(row_index++).toInt();
104 Licence->
ShortName = licence_query.value(row_index++).toString();
105 Licence->
FullName = licence_query.value(row_index++).toString();
106 Licence->
LicenceURL = licence_query.value(row_index++).toString();
107 Licence->
LicenceImage = licence_query.value(row_index++).toString();
125 QString query_string = QString(
"select * from in_association where in_assoc_index = %1").arg(QString::number(AssociationIndex));
127 QSqlQuery assoc_query(query_string);
129 while(assoc_query.next())
132 Assoc->
ShortName = assoc_query.value(row_index++).toString();
133 Assoc->
FullName = assoc_query.value(row_index++).toString();
134 Assoc->
AssociationURL = assoc_query.value(row_index++).toString();
155 QString query_string = QString(
"select * from dev_family where dev_family_index = %1").arg(QString::number(DevFamilyIndex));
157 QSqlQuery dev_fam_query(query_string);
159 while(dev_fam_query.next())
161 DevFam->
DevFamilyIndex = dev_fam_query.value(row_index++).toInt();
162 DevFam->
ShortName = dev_fam_query.value(row_index++).toString();
163 DevFam->
FullName = dev_fam_query.value(row_index++).toString();
164 DevFam->
DevFamilyImage = dev_fam_query.value(row_index++).toString();
182 QString query_string = QString(
"select * from compiler_family where comp_family_index = %1").arg(QString::number(LangFamilyIndex));
184 QSqlQuery lang_fam_query(query_string);
186 while(lang_fam_query.next())
189 LangFam->
ShortName = lang_fam_query.value(row_index++).toString();
190 LangFam->
FullName = lang_fam_query.value(row_index++).toString();
191 LangFam->
LangFamilyImage = lang_fam_query.value(row_index++).toString();
209 QString query_string = QString(
"select * from target_family where target_family_index = %1").arg(QString::number(TargetFamilyIndex));
211 QSqlQuery target_fam_query(query_string);
213 while(target_fam_query.next())
216 TargetFam->
ShortName = target_fam_query.value(row_index++).toString();
217 TargetFam->
FullName = target_fam_query.value(row_index++).toString();
237 QString query_string = QString(
"select * from compiler_instance where compiler_instance_index = %1").arg(QString::number(CompFamilyIndex));
239 QSqlQuery compiler_fam_query(query_string);
241 while(compiler_fam_query.next())
243 CompFam->
CompFamilyIndex = compiler_fam_query.value(row_index++).toInt();
244 CompFam->
ShortName = compiler_fam_query.value(row_index++).toString();
245 CompFam->
FullName = compiler_fam_query.value(row_index++).toString();
271 QString query_string =
272 QString(
"select description, version_timestamp from proj_version_info where project_id = %1 and major_version = %2 and minor_version = %3 and revision = %4")
274 QSqlQuery version_text_query(query_string);
276 while (version_text_query.next())
279 Version->
VersionDate = version_text_query.value(1).toDateTime();
289 QString query_string =
290 QString(
"select major_version, minor_version, revision, description from proj_version_info where project_id = %1 order by major_version desc, minor_version desc, revision desc").arg(QString::number(ProjectIndex));
291 QSqlQuery version_text_query(query_string);
295 while (version_text_query.next())
298 FormatVersion(version_text_query.value(0).toInt(), version_text_query.value(1).toInt(), version_text_query.value(2).toInt()) +
300 version_text_query.value(3).toString() +
"</P>\n";
308 QString version_string = QString(
"%1.%2.%3")
309 .arg(QString::number(MajorVersion).rightJustified(2,
'0'), QString::number(MinorVersion).rightJustified(2,
'0'), QString::number(Revision ).rightJustified(2,
'0'));
310 return(version_string);
316 QString query_string =
317 QString(
"select * from project_status where proj_status_index = %1").arg(QString::number(StatusIndex));
318 QSqlQuery status_query(query_string);
321 while (status_query.next())
323 Status->
StatusIndex = status_query.value(row_index++).toInt();
324 Status->
StatusName = status_query.value(row_index++).toString();
326 Status->
StatusImage = status_query.value(row_index++).toString();
335 QString query_string =
336 QString(
"select * from developer where developer_index = %1").arg(QString::number(DevIndex));
337 QSqlQuery dev_query(query_string);
340 while (dev_query.next())
343 person->
Name = dev_query.value(row_index++).toString();
344 person->
Email = dev_query.value(row_index++).toString();
345 person->
Phone = dev_query.value(row_index++).toString();
346 person->
Info = dev_query.value(row_index++).toString();
347 person->
IsAvailable = dev_query.value(row_index++).toBool();
348 person->
Handle = dev_query.value(row_index++).toString();
349 person->
DateJoined = dev_query.value(row_index++).toDateTime();
350 person->
DateLeft = dev_query.value(row_index++).toDateTime();
360 log_entry.
Mode = Mode;
368 QString set_command_string = QString(
"UPDATE project SET ")
369 +
" project_lock = " + QVariant(LockState).toString()
370 +
", project_queued = " + QVariant(QueueState).toString()
371 +
" where project_index = " + QString::number(ProjectIndex);
373 QSqlQuery update_query;
374 result = update_query.exec(set_command_string);
bool SetProjectStatus(int ProjectIndex, bool LockState, bool QueueState)
Set the Locked and Queued State of the Project.
QString FormatVersion(int MajorVersion, int MinorVersion, int Revision)
Format the Version information into a String.
bool LoadAssocGroupData(ASSOCIATED_GROUP_INFO *Assoc, int AssociationIndex)
Load the In Association Information for the Selected Licence.
bool LoadCompilerFamilyData(COMP_FAMILY_INFO *CompFam, int CompFamilyIndex)
Load the Compiler Family Information for the Selected Licence.
bool LoadFullHistory(VERSION_INFO *Version, int ProjectIndex)
Load the Compiler Family Information for the Selected Licence.
ReadProjectInfo(QObject *parent=nullptr)
Read Project Info Clawss Constructor.
bool LoadTargetFamilyData(TARGET_FAMILY_INFO *TargetFam, int TargetFamilyIndex)
Load the Compiler Family Information for the Selected Licence.
bool LoadLangFamilyData(LANG_FAMILY_INFO *LangFam, int LangFamilyIndex)
Load the Licence Information for the Selected Licence.
bool LoadProjectInfo(PROJECT_INFORMATION *Store, int ProjectIndex, int ProjManIndex)
Load Project & relevant System Information into the Structure.
bool LoadLicenceData(LICENCE_INFO *Licence, int LicenceIndex)
Load the Licence Information for the Selected Licence.
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)
Send Message to the Log.
bool LoadDevFamilyData(DEV_FAMILY_INFO *DevFam, int DevFamilyIndex)
Load the Licence Information for the Selected Licence.
bool LoadDeveloperData(DEVELOPER_INFO *person, int DevIndex)
Load the Developer Information for the Selected Licence.
bool LoadVersionInfo(VERSION_INFO *Version, int ProjectIndex)
Load the Compiler Family Information for the Selected Licence.
bool LoadStatusInfo(STATUS_INFO *Status, int StatusIndex)
Load the Status Information for the Selected Licence.
@ PM_PROJECT_LIST_FOOTER_FILENAME
@ PM_PUBLISHER_CONTACT_EMAIL
@ PM_PROJECT_DEVELOPMENT_DOXY_DIRECTORY
@ PM_PROJECT_LIST_RETURN_ADDRESS
@ PM_PROJECT_LIST_HEADER_FILENAME
@ PM_PRIMARY_WEBSITE_DIRECTORY
@ PM_PROJECT_LIST_LINE_FILENAME
@ PT_DOXY_HTML_HEADER_FILENAME
@ PT_DOXY_EXTRA_STYLESHEET_FILENAME
@ PT_EXECUTABLE_DIRECTORY
@ PT_DOXY_HTML_FOOTER_FILENAME
@ PT_DOXY_PROJECT_LOGO_FILENAME
#define DATETIME_DISPLAY_FORMAT
DateTime formatting for the program displays.
LOGGING_SEVERITY
Log Severity allow the selection of logging events based on Severity.
LOGGING_MODE
Log Severity allow the selection of logging events based on the mode.
int current_locked_project
Database Index of currently locked Project.
Class for Reading Projects.
Inforamtion about Group Associated with the Project.
Information about the Primary Tool.
QString CompilerToolImage
uint SoftwareLicenceRestriction
uint DocumentationLicenceRestriction
QString CompilerDirectory
uint HardwareLicenceRestriction
Personal Information about the Developer.
Project Groups like Home Automation, Houseboat, Sensors, etc.
QString DoxyExtraStylesheetFilename
QString DoxyHtmlHeaderFilename
QString DoxyHtmlFooterFilename
Language groups like C++, Javascript, CAD etc.
Fields describing a Licence.
LOGGING_SEVERITY Severity
Information about the Development Status.
QString StatusDescription
QString StatusDateTimeString
Target Systems like Linux, Windows, Arduino.
QString TargetFamilyImage
Information about the Project's Version.
QString VersionDateString
QString CurrentVersionString
QString FullVersionString