#ifndef EETTEMPLATE_H #define EETTEMPLATE_H #include #include #include #include "eetrequest.h" #define BODY_TEMPLATE ":/res/template_body.txt" #define REQUEST_TEMPLATE ":/res/template_request.txt" #define SIGNATURE_TEMPLATE ":/res/template_signature.txt" class EetTemplate : public QObject { Q_OBJECT public: explicit EetTemplate(QObject *parent = 0); EetTemplate(const QString &tmp, QObject *parent = 0); QString fillTemplate(EetRequest *request); QString fillTemplate(QMap map); signals: public slots: private: QString m_template; QString fillTemplateInternal(EetRequest *request, QMap *map); }; #endif // EETTEMPLATE_H