FactDev  0.1
Utils::ItemType Class Reference

The ItemType class Item type model. More...

#include <itemtype.h>

Public Member Functions

 ItemType (int type, QString name)
 ItemType::ItemType Construct an Item type. More...
 
QString getName () const
 ItemType::getName Get item name. More...
 
Models::IModelgetModel (int id)
 ItemType::getModel Get the databasemodel of the ItemType according to this identity id More...
 
void setName (const QString &name)
 ItemType::setName Modify the item name. More...
 
int getType () const
 ItemType::getType Get the type of the current item. More...
 
void setType (int type)
 ItemType::setType Modify the type of the current item. More...
 

Static Public Attributes

static const int CUSTOMER = 0
 constant value assigned to Customer
 
static const int PROJECT = 1
 constant value assigned to Project
 
static const int BILLING = 2
 constant value assigned to Billing
 
static const int QUOTE = 3
 constant value assigned to Quote
 

Detailed Description

The ItemType class Item type model.

Constructor & Destructor Documentation

Utils::ItemType::ItemType ( int  type,
QString  name 
)

ItemType::ItemType Construct an Item type.

Parameters
typeType of the item
nameName of the item

Member Function Documentation

Models::IModel * Utils::ItemType::getModel ( int  id)

ItemType::getModel Get the databasemodel of the ItemType according to this identity id

Parameters
idItem type identity
Returns
database model
QString Utils::ItemType::getName ( ) const

ItemType::getName Get item name.

Returns
item name
int Utils::ItemType::getType ( ) const

ItemType::getType Get the type of the current item.

Returns
type of the current item
void Utils::ItemType::setName ( const QString &  name)

ItemType::setName Modify the item name.

Parameters
nameNew Item name
void Utils::ItemType::setType ( int  type)

ItemType::setType Modify the type of the current item.

Parameters
typeNew item type

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