X-Git-Url: http://git.maemo.org/git/?p=googlelatitude;a=blobdiff_plain;f=src%2Flatitude.cpp;h=aa742f1d70e78c472eeaee6736a0c7295e6a1c0b;hp=c215f01d7efafc64eaec2af5077609252ef8be8f;hb=e1790861d041d0aec07947dcec23fd61b31cce50;hpb=c0df4cf5c73d03efed976bc718261f5afc78cab9 diff --git a/src/latitude.cpp b/src/latitude.cpp index c215f01..aa742f1 100644 --- a/src/latitude.cpp +++ b/src/latitude.cpp @@ -1,8 +1,10 @@ #include "latitude.h" LatitudeGUI::LatitudeGUI(QMainWindow *parent) : QMainWindow(parent) { +#ifdef Q_WS_MAEMO_5 setAttribute(Qt::WA_Maemo5AutoOrientation, true); - setWindowTitle(tr("Google Latitude Updater")); +#endif + setWindowTitle(tr("Latitude & Buzz")); setting = new QSettings(); @@ -41,7 +43,11 @@ LatitudeGUI::LatitudeGUI(QMainWindow *parent) : QMainWindow(parent) { } void LatitudeGUI::set() { - QMaemo5InformationBox::information(this, "New gps position", 1000); +#ifdef Q_WS_MAEMO_5 + QMaemo5InformationBox::information(this, "new position...", 1000); +#else + qDebug() << "new position..."; +#endif glatitude->login(setting->value("user","my_username").toString(), setting->value("pass","my_password").toString()); glatitude->set(gps->get_lat(), @@ -50,11 +56,19 @@ void LatitudeGUI::set() { } void LatitudeGUI::latitude_OK() { - QMaemo5InformationBox::information(this, "Location Sent!", 1000); +#ifdef Q_WS_MAEMO_5 + QMaemo5InformationBox::information(this, "...location Sent!", 1000); +#else + qDebug() << "...location Sent!"; +#endif } void LatitudeGUI::latitude_ERROR() { +#ifdef Q_WS_MAEMO_5 QMaemo5InformationBox::information(this, "Error in Authentification !", 3000); +#else + qDebug() << "Error in Authentification !"; +#endif } void LatitudeGUI::save_user(QString _user) {