Added missing comments to engine.h, liblocationwrapper.h, mainwindow.h
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Thu, 10 Jun 2010 06:40:51 +0000 (09:40 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Thu, 10 Jun 2010 06:40:51 +0000 (09:40 +0300)
and settingsdialog.h.

src/engine/engine.cpp
src/engine/engine.h
src/gps/liblocationwrapper.h
src/ui/mainwindow.h
src/ui/settingsdialog.h

index 224bc65..1fa8c94 100644 (file)
@@ -46,11 +46,11 @@ SituareEngine::SituareEngine(QMainWindow *parent)
       m_autoCenteringEnabled(false),
       m_automaticUpdateFirstStart(true),
       m_loggedIn(false),
-      m_automaticUpdateIntervalTimer(0),
-      m_lastUpdatedGPSPosition(QPointF()),
       m_userMoved(false),
-      m_automaticUpdateEnabled(false)
-{
+      m_automaticUpdateEnabled(false),
+      m_automaticUpdateIntervalTimer(0),
+      m_lastUpdatedGPSPosition(QPointF())
+{    
     qDebug() << __PRETTY_FUNCTION__;
     m_ui = new MainWindow;
     m_ui->updateItemVisibility(m_loggedIn);
index ba8b83d..529bfdc 100644 (file)
@@ -222,7 +222,8 @@ private slots:
     /**
     * @brief Enables automatic location update.
     *
-    * @param enabled true if
+    * @param enabled true if enabled, false otherwise
+    * @param updateIntervalMsecs update interval in milliseconds
     */
     void enableAutomaticLocationUpdate(bool enabled, int updateIntervalMsecs = 0);
 
@@ -276,6 +277,9 @@ private:
     bool m_autoCenteringEnabled;        ///< Auto centering flag
     bool m_automaticUpdateFirstStart;   ///< Automatic location update first start flag
     bool m_loggedIn;                    ///< Login state
+    bool m_userMoved;                       ///< Flag for user moving
+    bool m_automaticUpdateEnabled;          ///< Automatic update enabled flag
+
     FacebookAuthentication *m_facebookAuthenticator; ///< Instance for facebook authenticator
     GPSPosition *m_gps;                              ///< Instance of the gps position
     MainWindow *m_ui;                                ///< Instance of the MainWindow UI
@@ -284,8 +288,6 @@ private:
 
     QTimer *m_automaticUpdateIntervalTimer; ///< Automatic update interval timer
     QPointF m_lastUpdatedGPSPosition;       ///< Last updated GPS position
-    bool m_userMoved;                       ///< Flag for user moving
-    bool m_automaticUpdateEnabled;
 };
 
 #endif // ENGINE_H
index dbcae05..486a836 100644 (file)
@@ -142,7 +142,7 @@ signals:
     /**
     * @brief Signal for error.
     *
-    * @param messgage error message
+    * @param message error message
     */
     void errorMessage(const QString &message);
 
index 71fd17e..90b08dd 100644 (file)
@@ -594,6 +594,8 @@ private:
 
     QMenu *m_viewMenu;                      ///< Object that hold the view menu items
 
+    QMessageBox *m_automaticUpdateLocationDialog;   ///< Automatic update location dialog
+
     QString m_email;                        ///< Placeholder for email
     QString m_password;                     ///< Placeholder for password
 
@@ -611,8 +613,6 @@ private:
     ZoomButtonPanel *m_zoomButtonPanel;     ///< Instance of zoom button panel
 
     SettingsDialog *m_settingsDialog;       ///< Settings dialog
-
-    QMessageBox *m_automaticUpdateLocationDialog;
 };
 
 #endif // MAINWINDOW_H
index eaf8eb6..94c2bc0 100644 (file)
@@ -93,7 +93,7 @@ private slots:
     *
     * Enables and disabled automatic location update interval time edit.
     *
-    * @param value true if settings are enabled, false otherwise
+    * @param enabled true if settings are enabled, false otherwise
     */
     void toggleAutomaticLocationUpdate(bool enabled);