oopapidocs
2.0
|
00001 #ifndef CUSTOMERLIST_H 00002 #define CUSTOMERLIST_H 00003 #define QT_COMPAT 00004 00005 #include <QList> 00006 #include "customer.h" 00007 00011 class CUSTOMER_EXPORT CustomerList : public DataObject { 00012 Q_OBJECT 00013 public: 00014 explicit CustomerList(QString listname = QString()) : 00015 DataObject(listname) {} 00016 00017 void addCustomer(Customer* cust); 00018 QList<Customer*> getCustomers(); 00019 QStringList getDateList(); 00020 QStringList getDateListVerbose(); 00021 00022 signals: 00023 void customerAdded(const Customer* newCust); 00024 void customerChanged(const Customer* newCust); 00025 00026 // We might add other signals later 00027 00028 private: 00029 QList<Customer*> getCustomers_old(); 00030 00031 } 00032 00033 00034 ; 00035 #endif