#include <item.hpp>
Public Member Functions | |
Item () | |
Item (const Item &i) | |
Creates a copy of this item based on the passed item. | |
void | set_id (long id) |
long | get_id () |
void | set_description (const std::string description) |
std::string | get_description () |
virtual void | set_checked (bool checked) |
bool | get_checked () |
Private Attributes | |
long | m_id |
Unique ID. | |
std::string | m_desc |
The item's description. | |
bool | m_checked |
Whether checked/ticked or not. | |
Friends | |
class | ItemCompareName |
class | ItemCompareId |
std::ostream & | operator<< (std::ostream &os, const Item &i) |
Definition at line 37 of file item.hpp.
Item::Item | ( | const Item & | i | ) | [inline] |
void Item::set_id | ( | long | id | ) | [inline] |
Definition at line 45 of file item.hpp.
References m_id.
Referenced by Service::create_item(), and KitParser::process_item().
long Item::get_id | ( | ) | [inline] |
Definition at line 46 of file item.hpp.
References m_id.
Referenced by XmlDao::add_category_item_to_dom(), KitModel::add_item(), ModelCategory::add_item(), XmlDao::add_item_to_dom(), XmlDao::get_model(), KitList::list_item(), TickItem::operator()(), ModelItemCompareId::operator()(), and ModelCategory::remove_item().
void Item::set_description | ( | const std::string | description | ) | [inline] |
Definition at line 47 of file item.hpp.
References m_desc.
Referenced by KitListGui::close_add_item_window(), KitParser::on_end_element(), KitListGui::on_menu_add(), and Service::update_item().
std::string Item::get_description | ( | ) | [inline] |
Definition at line 48 of file item.hpp.
References m_desc.
Referenced by XmlDao::add_item_to_dom(), KitList::list_item(), KitPrintOperation::on_begin_print(), and TickItem::operator()().
virtual void Item::set_checked | ( | bool | checked | ) | [inline, virtual] |
Reimplemented in ModelItem.
Definition at line 49 of file item.hpp.
References m_checked.
Referenced by KitListGui::close_add_item_window(), KitListGui::on_menu_add(), TickItem::operator()(), and ModelItem::set_checked().
bool Item::get_checked | ( | ) | [inline] |
Definition at line 50 of file item.hpp.
References m_checked.
Referenced by XmlDao::add_item_to_dom(), FilterItem::operator()(), and TickItem::operator()().
friend class ItemCompareName [friend] |
friend class ItemCompareId [friend] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const Item & | i | |||
) | [friend] |
long Item::m_id [private] |
Unique ID.
Definition at line 38 of file item.hpp.
Referenced by get_id(), ItemCompareId::operator()(), and set_id().
std::string Item::m_desc [private] |
The item's description.
Definition at line 39 of file item.hpp.
Referenced by get_description(), ItemCompareName::operator()(), and set_description().
bool Item::m_checked [private] |
Whether checked/ticked or not.
Definition at line 40 of file item.hpp.
Referenced by get_checked(), and set_checked().