BigBlueBox
An Inventory Management System for a NYLT Course or other Boy Scout Programs
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
bbb::Category Class Reference

Holds catagory enum and related methods :Business Object. More...

#include <category.h>

Public Types

enum  categoryType {
  NO_OPP = 0, KITCHEN = 1, PROPANE = 2, CRAFTS = 3,
  TARPS = 4, OFFICE = 5
}
 Holds all catagories that items belong to. More...
 

Public Member Functions

 Category ()
 Default no-args constructor. More...
 

Static Public Member Functions

static QString categoryToQString (Category::categoryType cat)
 Turns enum to string. More...
 
static QString categoryToQString (int cat)
 Turns (int)enum to string. More...
 
static int intFromString (QString catStr)
 Turns a QString into a int. More...
 

Detailed Description

Holds catagory enum and related methods :Business Object.

Contains the enum for the item catagory as well as static methods for conveting the enums to strings for the UI.

Author
Bob Baker

Member Enumeration Documentation

Holds all catagories that items belong to.

Author
Bob Baker
Enumerator
NO_OPP 
KITCHEN 
PROPANE 
CRAFTS 
TARPS 
OFFICE 

Constructor & Destructor Documentation

Category::Category ( )

Default no-args constructor.

Author
Bob Baker

Member Function Documentation

QString Category::categoryToQString ( Category::categoryType  cat)
static

Turns enum to string.

Parameters
Category::categoryTypecat
Author
Bob Baker

Here is the caller graph for this function:

QString Category::categoryToQString ( int  cat)
static

Turns (int)enum to string.

Parameters
intcat
Author
Bob Baker
int Category::intFromString ( QString  catStr)
static

Turns a QString into a int.

Parameters
QStringcatStr
Author
Bob Baker

Here is the caller graph for this function:


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