#include <gpublics.h>
Public Member Functions | |
GPublics () | |
QStringList | mysqlDatatypes () |
void | showInformationMessage (QString message, QString title) |
void | showWarningMessage (QString message, QString title) |
void | showCriticalMessage (QString message, QString title) |
QStringList | mysqlKeywords () |
Definition at line 6 of file gpublics.h.
GPublics::GPublics | ( | ) |
Definition at line 3 of file gpublics.cpp.
{ }
QStringList GPublics::mysqlDatatypes | ( | ) |
Definition at line 22 of file gpublics.cpp.
Referenced by tableEditor::addColumn(), and addColumnToTable::addColumnToTable().
{ //provides a list of all mysql data types. QStringList dataTypes; dataTypes << "bigint" << "binary" << "bit" << "blob" << "bool" << "boolean" << "char" << "date" << "datetime" << "decimal" << "double" << "enum" << "float" << "int" << "longblob" << "float" << "int" << "longblob" << "longtext" << "mediumblob" << "mediumint" << "mediumtext" << "numeric" << "real" << "set" << "smallint" << "text" << "time" << "timestamp" << "tinyblob" << "tinyint" << "tinytext" << "varbinary" << "varchar" << "year"; return dataTypes; }
QStringList GPublics::mysqlKeywords | ( | ) |
Definition at line 7 of file gpublics.cpp.
{ //provides a list of all mysql keywords QStringList keywords; QFile file(":/dat/datafiles/keywords.dat"); if (!file.open(QFile::ReadOnly)); while (!file.atEnd()) { QByteArray line = file.readLine(); if (!line.isEmpty()) { keywords << line.trimmed(); } } return keywords; // }
void GPublics::showCriticalMessage | ( | QString | message, |
QString | title | ||
) |
Definition at line 42 of file gpublics.cpp.
{ QMessageBox::critical(0, title, message); }
void GPublics::showInformationMessage | ( | QString | message, |
QString | title | ||
) |
Definition at line 38 of file gpublics.cpp.
{ QMessageBox::information(0, title, message); }
void GPublics::showWarningMessage | ( | QString | message, |
QString | title | ||
) |
Definition at line 46 of file gpublics.cpp.
{ QMessageBox::warning(0, title, message); }