+
+/**
+ *This slot function is called when the server has finished guery.
+ */
+void CarMainWindow::networkResponse(QNetworkReply *reply)
+{
+}
+
+/**
+ *This slot function is called when the user will to send data to server.
+ */
+void CarMainWindow::on_pushButton_clicked()
+{
+ QNetworkRequest postData;
+ postData.setUrl(QString("http://weather.yahooapis.com/forecastrss?p=FIXX0013&u=c"));
+ manager->get(postData);
+
+}
+
+/**
+ *This slot function is called when login/logout button is clicked.
+ */
+void CarMainWindow::on_loginLogoutButton_clicked()
+{
+ //LoginWindow myLogin;
+
+ myLogin->show();
+ //ui->loginLogoutButton->setText("logout");
+}
+
+/**
+ *This slot function is called when registrate button is clicked.
+ */
+void CarMainWindow::on_registratePushButton_clicked()
+{
+ myRegistration->show();
+}
+
+/**
+ *This slot function is called when ever refresh button clicked. Top-tab view.
+ */
+void CarMainWindow::on_buttonTopRefresh_clicked()
+{
+ setCategoryCompoBox();
+}
+
+/**
+ *This slot function is called when ever category combobox current index changed. Top-tab view.
+ *@param QString category
+ */
+void CarMainWindow::on_comboBoxTopCategory_currentIndexChanged(QString category)
+{
+ setListViewTopList(category);
+}
+
+/**
+ *This slot function is called when ever category combobox activated. Top-tab view.
+ *@param QString category
+ */
+void CarMainWindow::on_comboBoxTopCategory_activated(QString category)
+{
+ setListViewTopList(category);
+}
+
+/**
+ *This slot function is called when set/change user button is clicked.
+ */
+void CarMainWindow::on_setUserPushButton_clicked()
+{
+ myLogin->show();
+
+ ui->userNameLabel->setText( "User: " + myLogin->getUserName());
+ ui->setUserPushButton->setText( "Change User");
+}