Kitlist
1.1.0
|
#include <item.hpp>
Public Member Functions | |
Item () | |
Item (const Item &i) | |
Creates a copy of this item based on the passed item. More... | |
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. More... | |
std::string | m_desc |
The item's description. More... | |
bool | m_checked |
Whether checked/ticked or not. More... | |
Friends | |
class | ItemCompareName |
class | ItemCompareId |
std::ostream & | operator<< (std::ostream &os, const Item &i) |
|
inline |
|
inline |
Definition at line 50 of file item.hpp.
References m_checked.
Referenced by XmlDao::add_item_to_dom(), FilterItem::operator()(), and TickItem::operator()().
|
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()().
|
inline |
Definition at line 46 of file item.hpp.
References m_id.
Referenced by XmlDao::add_category_item_to_dom(), ModelCategory::add_item(), KitModel::add_item(), XmlDao::add_item_to_dom(), XmlDao::get_model(), KitList::list_item(), ModelItemCompareId::operator()(), TickItem::operator()(), and ModelCategory::remove_item().
|
inlinevirtual |
Reimplemented in ModelItem.
Definition at line 49 of file item.hpp.
Referenced by KitListGui::close_add_item_window(), TickItem::operator()(), and ModelItem::set_checked().
|
inline |
Definition at line 47 of file item.hpp.
Referenced by KitListGui::close_add_item_window(), KitParser::on_end_element(), and Service::update_item().
|
inline |
Definition at line 45 of file item.hpp.
Referenced by Service::create_item(), and KitParser::process_item().
|
friend |
|
friend |
|
friend |
|
private |
|
private |
The item's description.
Definition at line 39 of file item.hpp.
Referenced by get_description(), and ItemCompareName::operator()().
|
private |
Unique ID.
Definition at line 38 of file item.hpp.
Referenced by get_id(), and ItemCompareId::operator()().