Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

SimpleSignatureGenerator.h

#ifndef _SIMPLE_SIGNATURE_GENERATOR_H_
#define _SIMPLE_SIGNATURE_GENERATOR_H_

#include "SignatureGenerator.h"

#include <podofo.h>

/** Simple signature generator
 */
00011 class SimpleSignatureGenerator
      :public SignatureGenerator
{
    PoDoFo::PdfData *pSignature;
public:
      SimpleSignatureGenerator() {
            pSignature = NULL;
      }
      virtual ~SimpleSignatureGenerator() {
            delete pSignature;
      }
      virtual bool appendData(const char *pData, unsigned int dataSize)
      {
            return true;
      }
      virtual bool finishData() {
            pSignature = new PoDoFo::PdfData("My-Test-Signature");
            return true;
      }
      virtual const PoDoFo::PdfData *getSignature() {
            return pSignature;
      }
};

#endif // _SIMPLE_SIGNATURE_GENERATOR_H_

Generated by  Doxygen 1.6.0   Back to index