#include "userinfopanel.h"
#include "zoombuttonpanel.h"
+
#include "mainwindow.h"
// These MUST BE HERE, compiling for Maemo fails if moved
#include <X11/Xlib.h>
#endif // Q_WS_MAEMO_5
+#if defined(Q_WS_MAEMO_5) & defined(ARMEL)
+#include "ossoabookdialog.h"
+#endif
+
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent),
m_errorShown(false),
connect(m_friendsListPanel, SIGNAL(routeToFriend(const GeoCoordinate&)),
this, SIGNAL(routeTo(const GeoCoordinate&)));
+
+ connect(m_friendsListPanel, SIGNAL(requestContactDialog(const QString &)),
+ this, SIGNAL(requestContactDialog(const QString &)));
}
void MainWindow::buildFullScreenButton()
m_email = username;
}
+void MainWindow::showContactDialog(const QString &guid)
+{
+ qDebug() << __PRETTY_FUNCTION__;
+
+#if defined(Q_WS_MAEMO_5) & defined(ARMEL)
+ OssoABookDialog::showContactDialog(guid);
+#else
+ Q_UNUSED(guid);
+ buildInformationBox(tr("Contact dialog works only on phone!"), true);
+#endif
+}
+
void MainWindow::showEnableAutomaticUpdateLocationDialog(const QString &text)
{
qDebug() << __PRETTY_FUNCTION__;