SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
Classes | Enumerations | Functions
main.cpp File Reference
#include "PasswordHasher.h"
#include <QtCore/QSettings>
#include <QtCore/QString>
#include <QtCore/QFileInfo>
#include <QtCore/QFile>
#include <QtCore/QDir>
#include <QtCore/QDebug>
#include <QtCore/QCoreApplication>
#include <QtCore/QCommandLineParser>
#include <QtSql/QtSql>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlError>
#include <QtSql/QSqlQuery>
#include <iostream>
#include <vector>
Include dependency graph for main.cpp:

Classes

class  ConfigStruct
 

Enumerations

enum  {
  SUCCESS, SETTINGS_MISSING, DBFOLDER_MISSING, NOT_FORCED,
  NOT_ENOUGH_PARAMS, SQLITE_DB_MISSING, DB_RM_FAILED, DB_CONN_FAILED,
  QUERY_FAILED, QUERY_PREP_FAILED, USERNAME_TAKEN
}
 

Functions

bool dbExists (const ConfigStruct &database_to_look_for)
 
bool deleteDb (QString const &db_file_name)
 
void Pause (void)
 
bool fileQueryDb (QFile &source_file, QSqlQuery &query)
 
void errorHandler (QtMsgType type, const QMessageLogContext &context, const QString &msg)
 
int createDatabases (std::vector< ConfigStruct > const &configs)
 
int addAccount (const ConfigStruct &char_database, const QString &username, const QString &password, uint16_t access_level)
 
int main (int argc, char **argv)