2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Katri Kaikkonen - katri.kaikkonen@ixonos.com
6 Jussi Laitinen - jussi.laitinen@ixonos.com
8 Situare is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 Situare is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Situare; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 #ifndef SETTINGSDIALOG_H
24 #define SETTINGSDIALOG_H
28 #include <QStandardItemModel>
34 #include <QMaemo5ValueButton>
35 #include <QMaemo5ListPickSelector>
42 * @brief Settings Dialog.
44 * @class SettingsDialog settingsdialog.h "ui/settingsdialog.h"
46 class SettingsDialog : public QDialog
52 * @brief Default constructor
54 * @param parent Parent
56 SettingsDialog(QWidget *parent = 0);
58 /*******************************************************************************
59 * MEMBER FUNCTIONS AND SLOTS
60 ******************************************************************************/
63 * @brief Enables Situare related settings from settings dialog.
65 * @param enabled true if enabled, false otherwise
67 void enableSituareSettings(bool enabled);
71 * @brief Saves settings to file.
76 * @brief Toggles automatic location update state.
78 * Enables and disabled automatic location update interval time edit.
80 * @param enabled true if settings are enabled, false otherwise
82 void toggleAutomaticLocationUpdate(bool enabled);
86 * @brief Populates update interval list.
88 * @param model QStandardItemModel
90 void populateUpdateIntervalList(QStandardItemModel *model);
93 * @brief Read settings.
100 * @param time time to set
102 void setTime(const QTime &time);
105 * @brief Returns current update interval time.
107 * @return current time
111 /*******************************************************************************
113 ******************************************************************************/
115 QCheckBox *m_automaticLocationUpdate; ///< Pointer to CheckBox
118 QMaemo5ValueButton *m_automaticLocationUpdateIntervalButton; ///< Maemo 5 value button
119 QMaemo5ListPickSelector *m_timePick; ///< Maemo 5 time pick selector
121 QTimeEdit *m_automaticLocationUpdateInterval; ///< Pointer to QTimeEdit
124 QPushButton *m_saveButton; ///< Save button
127 #endif // SETTINGSDIALOG_H