FactDev  0.1
hierarchicalsystem.h
1 #ifndef HIERARCHICALSYSTEM_H
2 #define HIERARCHICALSYSTEM_H
3 #include <QMap>
4 
5 #include "database/database.h"
6 #include "exceptions/dbexception.h"
7 #include "models/billing.h"
8 #include "models/customer.h"
9 #include "models/project.h"
10 
11 using namespace Models;
12 
13 namespace Utils {
23 
24 public:
30 
35  void getAllProjects();
36 
41  void getAllBillings();
42 
47  void updateData();
48 
55  void addProjectToCustomer(Project *p, Customer c);
56 
63  void addBillingToProject(Billing *b, Project *p);
64 
70  QMap<Project *, Customer> getCustomers() const;
71 
77  QMap<Billing *, Project*> getProjects() const;
78 
79 private:
80 
81  QMap<Project*, Customer> _customers;
82  QMap<Billing*, Project*> _projects;
83 };
84 }
85 
86 #endif // HIERARCHICALSYSTEM_H
The Project class : Project linked to a Customer.
Definition: project.h:17
The Customer class Customer.
Definition: customer.h:15
The Billing class : Billing or Quote of a Customer.
Definition: billing.h:28
The HierarchicalSystem class Create class which contains hierarchical system of FactDev.
Definition: hierarchicalsystem.h:22