SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
Classes | Enumerations | Functions
Projects/CoX/Utilities/dbtool

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)
 
bool ConfigStruct::initialize_from_settings (const QString &settings_file_name, const QString &group_name)
 

Detailed Description

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
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 

Function Documentation

◆ addAccount()

int addAccount ( const ConfigStruct char_database,
const QString &  username,
const QString &  password,
uint16_t  access_level 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDatabases()

int createDatabases ( std::vector< ConfigStruct > const &  configs)
Here is the call graph for this function:

◆ dbExists()

bool dbExists ( const ConfigStruct database_to_look_for)
Here is the call graph for this function:

◆ deleteDb()

bool deleteDb ( QString const &  db_file_name)
Here is the caller graph for this function:

◆ errorHandler()

void errorHandler ( QtMsgType  type,
const QMessageLogContext &  context,
const QString &  msg 
)
Here is the caller graph for this function:

◆ fileQueryDb()

bool fileQueryDb ( QFile &  source_file,
QSqlQuery &  query 
)
Here is the caller graph for this function:

◆ initialize_from_settings()

bool ConfigStruct::initialize_from_settings ( const QString &  settings_file_name,
const QString &  group_name 
)
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Replaced default admin user creation with a warning that no admin account was created. Also added text to show them the proper format in which to enter to submit an admin account.

Here is the call graph for this function:

◆ Pause()

void Pause ( void  )