daemon mode and bugs fixes
[googlelatitude] / src / latitude.cpp
index 864f5c0..7bdc14a 100644 (file)
@@ -44,11 +44,7 @@ LatitudeGUI::LatitudeGUI(QMainWindow *parent) : QMainWindow(parent) {
 }
 
 void LatitudeGUI::set() {
-#ifdef Q_WS_MAEMO_5
-    QMaemo5InformationBox::information(this, "new position...", 1000);
-#else
-    qDebug() << "new position...";
-#endif
+    qDebug() << "LatitudeGUI: set";
     glatitude->login(setting->value("user","my_username").toString(),
                      setting->value("pass","my_password").toString());
     glatitude->set(gps->get_lat(),
@@ -57,19 +53,17 @@ void LatitudeGUI::set() {
 }
 
 void LatitudeGUI::latitude_OK() {
-#ifdef Q_WS_MAEMO_5
-    QMaemo5InformationBox::information(this, "...location Sent!", 1000);
-#else
-    qDebug() << "...location Sent!";
-#endif
+    qDebug() << "LatitudeGUI: send";
 }
 
 void LatitudeGUI::latitude_ERROR() {
 #ifdef Q_WS_MAEMO_5
-    QMaemo5InformationBox::information(this, "Error in Authentification !", 3000);
-#else
-    qDebug() << "Error in Authentification !";
+    QString error_message = tr("<b>Error in Authentification!</b><br><br>") +
+                            tr("Plese verify your login details<br>");
+    QMaemo5InformationBox::information(this, error_message,
+                                       QMaemo5InformationBox::NoTimeout);
 #endif
+    qDebug() << "LatitudeGUI: no auth";
 }
 
 void LatitudeGUI::save_user(QString _user) {