+/*
+ * Registration class to registrate username for user
+ *
+ * @author Olavi Pulkkinen <olavi.pulkkinen@fudeco.com>
+ * @author
+ * @copyright (c) 2010 Speed Freak team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ */
+
#include "registration.h"
#include "ui_registration.h"
#include <QMessageBox>
{
ui->setupUi(this);
this->setWindowTitle("Registration for Speed Freak server");
+
+ //Let`s not type it again
+ ui->newUsernameLineEdit->setText("user123");
+ ui->newPasswordLineEdit->setText("salainen");
+ ui->eMailLineEdit->setText("user123@emaili.fi");
}
Registration::~Registration()
void Registration::on_registratePushButton_clicked()
{
- //Let`s not type it again
- ui->newUsernameLineEdit->setText("user123");
- ui->newPasswordLineEdit->setText("salainen");
- ui->eMailLineEdit->setText("user123@emaili.fi");
-
- for(int i = 0; i < 3000; i++);
-
// Send username, password and email to SpeedFreak server
this->username = ui->newUsernameLineEdit->text();
this->password = ui->newPasswordLineEdit->text();