and settingsdialog.h.
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);
/**
* @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);
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
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
/**
* @brief Signal for error.
*
- * @param messgage error message
+ * @param message error message
*/
void errorMessage(const QString &message);
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
ZoomButtonPanel *m_zoomButtonPanel; ///< Instance of zoom button panel
SettingsDialog *m_settingsDialog; ///< Settings dialog
-
- QMessageBox *m_automaticUpdateLocationDialog;
};
#endif // MAINWINDOW_H
*
* 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);