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,
27 #include <QVariantAnimation>
32 * Used for kinetic and smooth scroll effects. Class implementation is following the singleton
35 * @author Sami Rämö - sami.ramo@ixonos.com
37 class MapScroller : public QVariantAnimation
43 * @brief Constructor in not accessible because class is using singleton design pattern.
48 * @brief Destructor in not accessible because class is using singleton design pattern.
53 * @brief Copy constructor in not accessible because class is using singleton design pattern.
55 MapScroller(const MapScroller &);
58 * @brief Assignment operator in not accessible because class is using singleton design pattern.
60 MapScroller & operator=(const MapScroller &);
62 /*******************************************************************************
63 * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
64 ******************************************************************************/
67 * @brief Reimplemented from QVariantAnimation::updateCurrentValue()
69 * Called every time the animation's current value changes
71 * @param value New value
73 void updateCurrentValue(const QVariant &value);
75 /*******************************************************************************
76 * MEMBER FUNCTIONS AND SLOTS
77 ******************************************************************************/
80 * @brief Get reference to instance of this class
82 * @return reference to instance of this class
84 static MapScroller &getInstance();
86 /*******************************************************************************
88 ******************************************************************************/
91 * @brief Signal if emitted when coordinate value is updated
93 * @param coordinate New coordinate value
95 void coordinateUpdated(QPoint coordinate);
98 #endif // MAPSCROLLER_H