BigBlueBox
An Inventory Management System for a NYLT Course or other Boy Scout Programs
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
category.h
Go to the documentation of this file.
1 #ifndef CATEGORY_H
2 #define CATEGORY_H
3 
4 //*********************************************************************************
5 // For string operations
6 #include <QString>
7 #include <QStringList>
8 //*********************************************************************************
9 
10 namespace bbb {
11 //*********************************************************************************
17 //*********************************************************************************
18 class Category
19 {
20 public:
21  //**********************************************************
24  Category();
25  //**********************************************************
26 
27  //**********************************************************
31  enum categoryType {
32  NO_OPP = 0,
33  KITCHEN = 1,
34  PROPANE = 2,
35  CRAFTS = 3,
36  TARPS = 4,
37  OFFICE = 5
38  };
39  //**********************************************************
40 
41 
42  //**********************************************************
46  static QString categoryToQString(Category::categoryType cat);
47  //**********************************************************
48 
49 
50  //**********************************************************
54  static QString categoryToQString(int cat);
55  //**********************************************************
56 
57  //**********************************************************
61  static int intFromString(QString catStr);
62  //**********************************************************
63 
64 }; // end class
65 //*********************************************************************************
66 } // end namespace
67 #endif // CATEGORY_H
Category()
Default no-args constructor.
Definition: category.cpp:4
Holds catagory enum and related methods :Business Object.
Definition: category.h:18
Definition: category.h:32
Definition: category.h:36
Definition: category.h:35
static int intFromString(QString catStr)
Turns a QString into a int.
Definition: category.cpp:35
static QString categoryToQString(Category::categoryType cat)
Turns enum to string.
Definition: category.cpp:11
Definition: category.h:34
categoryType
Holds all catagories that items belong to.
Definition: category.h:31
Definition: category.h:37
Definition: category.h:33