Kitlist  1.1.0
Public Member Functions | Friends | List of all members
ModelItem Class Reference

Represents an Item combined with GuiState attributes. More...

#include <kitmodel.hpp>

Inheritance diagram for ModelItem:
Item GuiState

Public Member Functions

 ModelItem ()
 
virtual void set_checked (bool checked)
 
- Public Member Functions inherited from Item
 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 ()
 
bool get_checked ()
 
- Public Member Functions inherited from GuiState
 GuiState ()
 
bool is_dirty ()
 
void set_dirty (bool dirty=true)
 
bool is_deleted ()
 
void set_deleted (bool deleted)
 
void set_new_flag (bool flag)
 
bool is_new ()
 
virtual void reset ()
 resets the state of each flag to it's default. More...
 

Friends

class ModelItemCompareId
 

Additional Inherited Members

- Protected Attributes inherited from GuiState
bool m_dirty
 
bool m_deleted
 
bool m_new
 

Detailed Description

Represents an Item combined with GuiState attributes.

Definition at line 60 of file kitmodel.hpp.

Constructor & Destructor Documentation

◆ ModelItem()

ModelItem::ModelItem ( )
inline

Definition at line 62 of file kitmodel.hpp.

Member Function Documentation

◆ set_checked()

virtual void ModelItem::set_checked ( bool  checked)
inlinevirtual

Reimplemented from Item.

Definition at line 64 of file kitmodel.hpp.

References Item::set_checked(), and GuiState::set_dirty().

Referenced by KitParser::process_item(), and Service::update_item().

Friends And Related Function Documentation

◆ ModelItemCompareId

friend class ModelItemCompareId
friend

Definition at line 63 of file kitmodel.hpp.


The documentation for this class was generated from the following file:

Copyright 2008-2021 Frank Dean