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 GPSLOCATIONITEM_H 00024 #define GPSLOCATIONITEM_H 00025 00026 #include <QGraphicsPixmapItem> 00027 00034 class GPSLocationItem : public QGraphicsPixmapItem 00035 { 00036 public: 00040 GPSLocationItem(); 00041 00042 /******************************************************************************* 00043 * MEMBER FUNCTIONS AND SLOTS 00044 ******************************************************************************/ 00045 public: 00051 void setEnabled(bool enable); 00052 00061 void updatePosition(QPoint scenePosition, qreal accuracy); 00062 00063 /******************************************************************************* 00064 * DATA MEMBERS 00065 ******************************************************************************/ 00066 private: 00070 enum Accuracy { NOT_SET, ACCURATE, COARSE }; 00071 00072 QPixmap m_accuratePixmap; 00073 QPixmap m_coarsePixmap; 00074 Accuracy m_currentAccuracy; 00075 }; 00076 00077 #endif // GPSLOCATIONITEM_H