• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

E:/sqlmaster/src/gpublics.cpp

Go to the documentation of this file.
00001 #include "gpublics.h"
00002 //--------------------------------------------------------------------------------
00003 GPublics::GPublics()
00004 {
00005 }
00006 //--------------------------------------------------------------------------------
00007 QStringList GPublics::mysqlKeywords() {
00008     //provides a list of all mysql keywords
00009     QStringList keywords;
00010     QFile file(":/dat/datafiles/keywords.dat");
00011     if (!file.open(QFile::ReadOnly));
00012     while (!file.atEnd()) {
00013         QByteArray line = file.readLine();
00014         if (!line.isEmpty()) {
00015             keywords << line.trimmed();
00016         }
00017     }
00018     return keywords;
00019     //
00020 }
00021 //--------------------------------------------------------------------------------
00022 QStringList GPublics::mysqlDatatypes() {
00023     //provides a list of all mysql data types.
00024     QStringList dataTypes;
00025     dataTypes << "bigint"         << "binary"          << "bit"
00026             << "blob"           << "bool"            << "boolean"       << "char"
00027             << "date"           << "datetime"        << "decimal"       << "double"
00028             << "enum"           << "float"           << "int"           << "longblob"
00029             << "float"          << "int"             << "longblob"      << "longtext"
00030             << "mediumblob"     << "mediumint"       << "mediumtext"
00031             << "numeric"        << "real"            << "set"           << "smallint"
00032             << "text"           << "time"            << "timestamp"     << "tinyblob"
00033             << "tinyint"        << "tinytext"        << "varbinary"
00034             << "varchar"        << "year";
00035     return dataTypes;
00036 }
00037 //--------------------------------------------------------------------------------
00038 void GPublics::showInformationMessage(QString message, QString title) {
00039     QMessageBox::information(0, title, message);
00040 }
00041 //--------------------------------------------------------------------------------
00042 void GPublics::showCriticalMessage(QString message, QString title) {
00043     QMessageBox::critical(0, title, message);
00044 }
00045 //--------------------------------------------------------------------------------
00046 void GPublics::showWarningMessage(QString message, QString title) {
00047     QMessageBox::warning(0, title, message);
00048 }
00049 //--------------------------------------------------------------------------------

Generated on Wed Dec 1 2010 08:43:39 for SQL Master by  doxygen 1.7.2