Hi Everybody,
Im here to give the portugese community a push to better stability
My development is a Adminitrative-tool that is portable toyour USB / pc, This can be very handy because you only have to edit the config file like a emulator
This emulator will be Open source released and will support the following emulators
-Plus Emulator
-Arcturus-emulator
-Comet Emulator
Dont forget that you still have to login with a ranked user
snippets:
Código:/*
Function: Get all values from selected user
Parameters SQL: uName -> username
*/
QSqlQuery dbo(db.db);
dbo.prepare("SELECT * FROM users WHERE username = (:uName)");
dbo.bindValue(":uName", ui->TextBox->text());
if(dbo.exec())
{
if(Config.Emulator.toString() == "Plus")
{
id = dbo.value(0).toString()
username = dbo.value(1).toString()
email = dbo.value(2).toString()
//todo save all information on a safe location & get more values then just
//id,username,email,...
else if(Config.Emulator.toString() == "Arcturus")
{
//Arcturus data
}else{
//comet data here
//iknow that this is not the best way to check it its also not the finished product!
}
}else{
//something went wrong
//error handling implentation needed
}
coders:
-DikkiX
-DionFuZion
Greetz ...
↧