Add confirmation after download on Symbian.
[dorian] / platform.cpp
index f96cdda..dff134c 100644 (file)
@@ -25,6 +25,12 @@ static const char *DORIAN_VERSION =
 #include "pkg/version.txt"
 ;
 
+#ifdef Q_WS_MAEMO_5
+#   include <QtMaemo5/QMaemo5InformationBox>
+#else
+#   include <QMessageBox>
+#endif
+
 QString Platform::dbPath()
 {
     QString base(QDir::home().absoluteFilePath(DORIAN_BASE));
@@ -73,3 +79,14 @@ QString Platform::defaultFont()
     return QString("Times New Roman");
 #endif
 }
+
+void Platform::information(const QString &label, QWidget *parent)
+{
+#ifdef Q_WS_MAEMO_5
+    QMaemo5InformationBox::information(parent, label,
+                                       QMaemo5InformationBox::DefaultTimeout);
+#else
+    (void)QMessageBox::information(parent, QObject::tr("Dorian"), label,
+                                   QMessageBox::Ok);
+#endif
+}