Merge branch 'master' into context_driven_buttons, review
[situare] / src / ui / listview.h
index 417c5d1..eaf32fb 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef LISTVIEW_H
 #define LISTVIEW_H
 
+#include <QHash>
 #include <QListWidget>
 
 class GeoCoordinate;
@@ -154,6 +155,19 @@ public:
     ListItem *listItemAt(int index);
 
     /**
+    * @brief Prepends item to view and item list.
+    *
+    * @param key user ID
+    * @param item item to prepend to view and list
+    */
+    void prependListItem(const QString &key, ListItem *item);
+
+    /**
+    * @brief Removes last ListItem in list.
+    */
+    void removeLastItem();
+
+    /**
     * @brief Returns selected ListItem.
     *
     * @return ListItem if there is selected, 0 otherwise