aboutsummaryrefslogtreecommitdiff
path: root/0.26.0_alpha1/src/clients/gtkpaludis/libgtkpaludis/task_sequence_list_model.hh
diff options
context:
space:
mode:
Diffstat (limited to '0.26.0_alpha1/src/clients/gtkpaludis/libgtkpaludis/task_sequence_list_model.hh')
-rw-r--r--0.26.0_alpha1/src/clients/gtkpaludis/libgtkpaludis/task_sequence_list_model.hh41
1 files changed, 41 insertions, 0 deletions
diff --git a/0.26.0_alpha1/src/clients/gtkpaludis/libgtkpaludis/task_sequence_list_model.hh b/0.26.0_alpha1/src/clients/gtkpaludis/libgtkpaludis/task_sequence_list_model.hh
new file mode 100644
index 000000000..2b24cedd2
--- /dev/null
+++ b/0.26.0_alpha1/src/clients/gtkpaludis/libgtkpaludis/task_sequence_list_model.hh
@@ -0,0 +1,41 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+#ifndef GTKPALUDIS_GUARD_LIBGTKPALUDIS_TASK_SEQUENCE_LIST_MODEL_HH
+#define GTKPALUDIS_GUARD_LIBGTKPALUDIS_TASK_SEQUENCE_LIST_MODEL_HH 1
+
+#include <gtkmm/liststore.h>
+#include <paludis/util/private_implementation_pattern.hh>
+
+namespace gtkpaludis
+{
+ class TaskSequenceListModel :
+ private paludis::PrivateImplementationPattern<TaskSequenceListModel>,
+ public Gtk::ListStore
+ {
+ public:
+ TaskSequenceListModel();
+ ~TaskSequenceListModel();
+
+ class Columns :
+ public Gtk::TreeModelColumnRecord
+ {
+ public:
+ Columns();
+ ~Columns();
+
+ Gtk::TreeModelColumn<Glib::ustring> col_id;
+ Gtk::TreeModelColumn<Glib::ustring> col_description;
+ Gtk::TreeModelColumn<Glib::ustring> col_status;
+ };
+
+ Columns & columns();
+
+ void append_sequence_item(const std::string & id, const std::string & description,
+ const std::string & status);
+
+ void set_sequence_item_status(const std::string & id, const std::string & status);
+ };
+}
+
+
+#endif