25 #ifndef YItemCustomStatus_h
26 #define YItemCustomStatus_h
62 const std::string &
iconName()
const {
return _iconName; }
98 std::string _iconName;
99 std::string _textIndicator;
104 typedef std::vector<YItemCustomStatus> YItemCustomStatusVector;
107 #endif // YItemCustomStatus_h
Class describing a non-binary status for an item.
int nextStatus() const
This returns the next status to cycle through if the user clicks on the status or cycles through stat...
const std::string & textIndicator() const
A text representation of this status in a text-based UI if an item has this status,...
YItemCustomStatus(const std::string &iconName, const std::string &textIndicator, int nextStatus=-1)
Constructor.
const std::string & iconName() const
The name of an icon to use in the widget in a graphical UI if an item has this status.
void setNextStatus(int value)
Set the next status.
bool hasNextStatus() const
Return 'true' if a next status to cylce to is defined for this status, 'false' if not.