MagicSmoke  $VERSION$
printrun.h
Go to the documentation of this file.
1 //
2 // C++ Interface: print @ home run
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2016
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef PAH_RUN_H
14 #define PAH_RUN_H
15 
16 #include <QObject>
17 #include <QMap>
18 
19 #include "MOOrderInfo"
20 #include "MOCustomerInfo"
21 #include "MOCustomer"
22 #include "MOEvent"
23 
24 #include "templates/templates.h"
25 
26 class MOOrderDocument;
27 class MOOrder;
28 
30 class PrintingRun:public QObject
31 {
32  Q_OBJECT
33 public:
35  PrintingRun();
36 
37 public slots:
39  void exec();
40 private:
41  QList<MOOrderInfo>morders;
42  QList<MOCustomerInfo>mcustomers;
43  QMap<int,MOCustomer>mcustomerdetails;
44  MTemplate ticket,voucher,invoice,mail;
45  QString mticketname,mvouchername,minvoicename;
46  QMap<int,MOEvent>mevents;
47 
48  void printOneOrder(const MOOrderInfo&);
49  void uploadFile(int orderid,QString localfile,QString remotefile,QList<MOOrderDocument>&doclist);
50  void sendMail(const MOOrder&,const QList<MOOrderDocument>&);
51 };
52 
53 #endif
this class wraps a single template
Definition: templates.h:25
This class represents a document stored for a specific order.
Definition: srcMOOrderDocument.h:15
Represents a single printing run with multiple orders to be printed.
Definition: printrun.h:30
Definition: orderinfo.h:24
PrintingRun()
retrieves all basic information for open orders
Definition: printrun.cpp:44
void exec()
executes the actual print run
Definition: printrun.cpp:72
this class represents a complete order
Definition: order.h:27