From f86997f052d4bed65c7222971a1d158fe8f51398 Mon Sep 17 00:00:00 2001 From: konrad Date: Fri, 1 Jan 2010 20:31:30 +0000 Subject: [PATCH] forgot one file... git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@394 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/wext/MOCustomer.h | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 src/wext/MOCustomer.h diff --git a/src/wext/MOCustomer.h b/src/wext/MOCustomer.h new file mode 100644 index 0000000..5a81583 --- /dev/null +++ b/src/wext/MOCustomer.h @@ -0,0 +1,32 @@ +// +// C++ Interface: MOCustomer +// +// Description: +// +// +// Author: Konrad Rosenbaum , (C) 2010 +// +// Copyright: See README/COPYING files that come with this distribution +// +// + +#ifndef MAGICSMOKE_MOCUSTOMER_H +#define MAGICSMOKE_MOCUSTOMER_H + +#include "MOCustomerAbstract.h" + +class MOCustomer:public MOCustomerAbstract +{ + WOBJECT(MOCustomer); + public: + /**shortcut: gets the customer from the DB*/ + MOCustomer(qint64); + /**returns whether the customer is valid*/ + bool isValid(){return !id().isNull();} + + /**returns the address of the customer*/ + QString address(int i=0); + +}; + +#endif -- 1.7.2.5