Merge branch 'master' into locationlistview
[situare] / src / ui / locationlistitem.h
1 #ifndef LOCATIONLISTITEM_H
2 #define LOCATIONLISTITEM_H
3
4 #include "extendedlistitem.h"
5 #include "../routing/location.h"
6
7 class LocationListItem : public ExtendedListItem
8 {
9 public:
10     LocationListItem();
11
12 /*******************************************************************************
13  * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
14  ******************************************************************************/
15 public:
16     /**
17     * @brief Returns item's coordinates.
18     *
19     * @return item's coordinates
20     */
21     GeoCoordinate coordinates();
22
23     /**
24     * @brief Returns item's ID.
25     *
26     * @return item's ID
27     */
28     QString id() const;
29
30     void bounds(GeoCoordinate &swBound, GeoCoordinate &neBound);
31
32 /******************************************************************************
33 * MEMBER FUNCTIONS AND SLOTS
34 ******************************************************************************/
35 public:
36     /**
37     * @brief Set user data for this item.
38     *
39     * @param user User pointer
40     */
41     void setLocationData(const Location &location);
42
43 /******************************************************************************
44 * DATA MEMBERS
45 ******************************************************************************/
46 private:
47     Location m_location;
48     bool m_selected;
49 };
50
51 #endif // LOCATIONLISTITEM_H