2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Sami Rämö - sami.ramo@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 #ifndef UPDATELOCATION_H
24 #define UPDATELOCATION_H
29 * @brief Controller for location update
31 * @author Sami Rämö (at) ixonos.com
33 class UpdateLocation : public QObject
42 Q_PROPERTY(QString message READ message WRITE setMessage NOTIFY messageChanged)
45 * @brief Publish on FB wall setting
49 Q_PROPERTY(bool publish READ publish WRITE setPublish NOTIFY publishChanged)
55 * Read unsent message from settigs.
57 explicit UpdateLocation(QObject *parent = 0);
62 * Save unsent message to settings.
67 * @brief Getter for message.
71 QString message() const;
74 * @brief Getter for publish setting
76 * @returns True is update should be published on FB wall.
87 * @brief Send location update
89 * Emits locationUpdate() signal.
94 * @brief Setter for message
96 * @param message New message.
98 void setMessage(const QString &message);
101 * @brief Setter for publish setting
103 * @param publish True is update should be published on FB wall.
105 void setPublish(bool publish);
109 * @brief Send location update
111 * @param status Status message
112 * @param publish Publish on Facebook?
114 void locationUpdate(const QString &status, bool publish);
117 * @brief Notifies that message has changed
119 void messageChanged();
122 * @brief Notifies that publish setting has changed
124 void publishChanged();
127 bool m_publish; ///< Should the update be published on FB wall
128 QString m_message; ///< Location update message
131 #endif // UPDATELOCATION_H