+/*
+ Situare - A location system for Facebook
+ Copyright (C) 2010 Ixonos Plc. Authors:
+
+ Ville Tiensuu - ville.tiensuu@ixonos.com
+
+ Situare is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ version 2 as published by the Free Software Foundation.
+
+ Situare is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Situare; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ USA.
+*/
+
+#ifndef BASELOCATIONITEM_H
+#define BASELOCATIONITEM_H
+
+#include <QGraphicsPixmapItem>
+
+
+
+class BaseLocationItem : public QGraphicsPixmapItem, public QObject
+{
+
+public:
+ BaseLocationItem(QObject *parent = 0);
+
+ /*******************************************************************************
+ * MEMBER FUNCTIONS AND SLOTS
+ ******************************************************************************/
+ public:
+
+ /**
+ * @brief Hides item so that it is invisible on the map
+ *
+ */
+ void hideLocation();
+
+ /**
+ * @brief returns position of item in scene coordinates.
+ *
+ * @return QPoint position of OwnLocationItem
+ */
+ QPoint position() const;
+
+ /**
+ * @brief sets position of item as specified in parameter.
+ * Parameter can be given in georaphical coordinates
+ *
+ * @param newPosition Parameter that specifies new position.
+ */
+ void setPosition(const QPointF & newPosition);
+
+ /**
+ * @brief Sets item to be visible on the map.
+ * Item is visible by default, function is needed only when own location
+ * needs to be set back visible after hideLocation function call.
+ */
+ void showLocation();
+};
+
+
+#endif // BASELOCATIONITEM_H