6 #include <QSqlDatabase>
14 #include <QStringList>
193 void addNote(
int catId,
int idvId, QString note, QString author);
230 #endif // DBCONNECT_H
void addNote(int catId, int idvId, QString note, QString author)
Adds new Gear Note to DB.
Definition: dbconnect.cpp:466
bool isCheckedOut(int catId, int idvId)
Checks if Gear is checked out.
Definition: dbconnect.cpp:403
QString isCheckedOutBy(int catId, int idvId)
Definition: dbconnect.cpp:618
bool gearItemExists(int catId, int idvId)
Definition: dbconnect.cpp:492
const QString dateFormat
Server DateTime format for all Date.toString()'s.
Definition: dbconnect.h:60
QVector< GearNote > getGearNotes(int catId, int idvId)
Gets notes for a gear item.
Definition: dbconnect.cpp:203
QStringList getDefaultNotes()
Gets Default Notes.
Definition: dbconnect.cpp:438
void deleteItem(QString name)
Deletes a item from the database.
Definition: dbconnect.cpp:159
static DbConnect * instance
Singleton Pointer.
Definition: dbconnect.h:46
bool itemAlreadyExists(QString name)
Checks to see if an item exists.
Definition: dbconnect.cpp:173
Business Object Layer : Inventory Item.
Definition: item.h:18
DbConnect()
Default no-args constructor.
Definition: dbconnect.cpp:8
QVector< Item > getFullInvAsVector()
Gets full inventory.
Definition: dbconnect.cpp:50
void updateItem(QString orgName, Row newRowInfo)
Updates the contents of one item.
Definition: dbconnect.cpp:100
void sysLog(QString log)
System Log.
Definition: dbconnect.cpp:574
void checkOutGear(int catId, int idvId, QString pid)
Definition: dbconnect.cpp:526
QSqlDatabase bbb_db
Database object.
Definition: dbconnect.h:41
QStringList getTroopNames()
Gets Troop names.
Definition: dbconnect.cpp:300
Gear getGearInfo(int catId, int idvId)
Gets all info for a gear item.
Definition: dbconnect.cpp:258
DataBase Comm. Layer : Singleton.
Definition: dbconnect.h:36
static DbConnect * getInstance()
Singleton pointer return function.
Definition: dbconnect.cpp:39
void updateGearItemHealth(int catId, int idvId, int health)
Updates Health Status.
Definition: dbconnect.cpp:595
void checkInGear(int catId, int idvId)
Definition: dbconnect.cpp:550
Ui Object Layer : Inventory Table Row.
Definition: item.h:78
QStringList getPatrolNamesByTroop(int troopNum)
Gets Patrol names.
Definition: dbconnect.cpp:337
~DbConnect()
Default non-args de-constructor.
Definition: dbconnect.cpp:28
void addNewItem(Item newItem)
Addes a new item to the database.
Definition: dbconnect.cpp:134
QStringList getGearHealthStatusList()
Gets all Heath Statuses.
Definition: dbconnect.cpp:371