#ifndef EETTEMPLATE_H #define EETTEMPLATE_H #include #include #include #include "eetrequest.h" #include "eetsigner.h" #define BODY_TEMPLATE ":/res/template_body.txt" #define REQUEST_TEMPLATE ":/res/template_request.txt" #define SIGNATURE_TEMPLATE ":/res/template_signature.txt" class EetResult; 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); void setSigner(EetSigner *signer) { m_signer = signer; } void setResult(EetResult *result); signals: public slots: private: QString m_template; QString fillTemplateInternal(EetRequest *request, QMap *map); QString getPkpString(EetRequest *request); EetSigner *m_signer; EetResult *m_result; }; #endif // EETTEMPLATE_H