00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Sami Rämö - sami.ramo@ixonos.com 00006 00007 Situare is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 version 2 as published by the Free Software Foundation. 00010 00011 Situare is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Situare; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00019 USA. 00020 */ 00021 00022 00023 #ifndef MAPSCROLLER_H 00024 #define MAPSCROLLER_H 00025 00026 #include <QVariantAnimation> 00027 00028 #include "coordinates/scenecoordinate.h" 00029 00040 class MapScroller : public QVariantAnimation 00041 { 00042 Q_OBJECT 00043 00044 private: 00048 MapScroller() {} 00049 00053 ~MapScroller() {} 00054 00058 MapScroller(const MapScroller &); 00059 00063 MapScroller & operator=(const MapScroller &); 00064 00065 /******************************************************************************* 00066 * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS 00067 ******************************************************************************/ 00068 private: 00077 void updateCurrentValue(const QVariant &value); 00078 00079 /******************************************************************************* 00080 * MEMBER FUNCTIONS AND SLOTS 00081 ******************************************************************************/ 00082 public: 00090 static MapScroller &getInstance(); 00091 00092 /******************************************************************************* 00093 * SIGNALS 00094 ******************************************************************************/ 00095 signals: 00101 void coordinateUpdated(SceneCoordinate coordinate); 00102 }; 00103 00104 #endif // MAPSCROLLER_H