6 #include "database/database.h"
7 #include "database/billingdatabase.h"
8 #include "exceptions/dbexception.h"
9 #include "models/customer.h"
10 #include "models/billing.h"
11 #include "utils/log.h"
12 #include "utils/string.h"
13 #include "gui/utils/image.h"
14 #include "gui/widgets/widgetsmodels/customerstablemodel.h"
16 using namespace Exceptions;
17 using namespace Utils;
18 using namespace Gui::Widgets;
60 QStandardItemModel *getTree(QString filter=
"")
throw(
DbException*);
68 QSharedPointer<Models::Customer> getCustomer(
const int pId);
88 void removeCustomer(
const int pId);
102 QStandardItem *getItemRoot();
110 QStandardItem *getItemCustomer(QSqlQuery q1);
117 QStandardItem *getItemProject(QSqlQuery q2);
125 QSharedPointer<Models::Customer> getCustomer(QSqlQuery &q);
132 void updateCustomer(QSqlQuery &q,
Customer &pCustomer);
139 QPixmap getCustomerImage(
const int pId);
146 void setCustomerImage(
Customer &pCustomer);
152 QList<Customer> getCustomers();
164 #endif // BDDCUSTOMER_H
The DbException class for database exception : queries, db file, …
Definition: dbexception.h:18
The Database class Master class for all database access.
Definition: database.h:34
The CustomerDatabase class Customer table database.
Definition: customerdatabase.h:30
The Customer class Customer.
Definition: customer.h:15