Changed implementation
[situare] / src / ui / mainwindow.h
index bf4a250..a496e9e 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "network/networkcookiejar.h"
 #include "panelsidebar.h"
-#include "notedata.h"
 
 class QGraphicsScene;
 class QLabel;
@@ -81,6 +80,14 @@ private:
  ******************************************************************************/
 public:
     /**
+    * @brief Builds information box with message.
+    *
+    * @param message Information message
+    * @param modal Modal = true, non-modal false
+    */
+    void buildInformationBox(const QString &message, bool modal=false);
+
+    /**
     * @brief Clears cookie jar
     *
     */
@@ -94,14 +101,6 @@ public:
     void loggedIn(bool logged);
 
     /**
-    * @brief Queues information box with message.
-    *
-    * @param message Information message
-    * @param modal Modal = true, non-modal false
-    */
-    void queueInformationBox(const QString &message, bool modal=false);
-
-    /**
     * @brief Enable / disable auto centering button.
     *
     * @param enabled true if shoud be enabled, false otherwise
@@ -160,9 +159,8 @@ public slots:
     * @brief Public slot to intercept signal when old cerdentials are invalid or credentials
     *        doesn't exist yet
     *
-    * @param url Login page url
     */
-    void startLoginProcess(const QUrl &url);
+    void startLoginProcess();
 
     /**
     * @brief Toggle progress indicator.
@@ -233,6 +231,13 @@ private:
     void grabZoomKeys(bool grab);
 
     /**
+    * @brief Queues dialog/information box
+    *
+    * @param dialog Dialog to be added into queue
+    */
+    void queueDialog(QDialog *dialog);
+
+    /**
       * @brief Set own location crosshair visibility
       *
       * @param visible
@@ -248,6 +253,13 @@ private:
 
 private slots:
     /**
+    * @brief Slot to intercept signal when dialog/information note is processed
+    *
+    * @param status Status of the dialog
+    */
+    void dialogFinished(int status);
+
+    /**
     * @brief Slot for drawing the fullscreen toggle button
     *
     * @param size Size of the screen
@@ -290,12 +302,6 @@ private slots:
     void loadDone(bool done);
 
     /**
-    * @brief Slot to intercept signal when information note is processed
-    *
-    */
-    void noteFinished();
-
-    /**
     * @brief Slot to save cookies to settings
     *
     */
@@ -523,7 +529,7 @@ private:
 
     SettingsDialog *m_settingsDialog;       ///< Settings dialog
 
-    QList<NoteData *> m_queue;              ///< List type queue for information boxes
+    QList<QDialog *> m_queue;
 };
 
 #endif // MAINWINDOW_H