21#ifndef __KMAIL_TEMPLATEPARSER_H__
22#define __KMAIL_TEMPLATEPARSER_H__
54class TemplateParser : public TQObject
67 static const int PipeTimeout = 15;
70 TemplateParser( KMMessage *amsg, const Mode amode );
91 virtual void process( KMMessage *aorig_msg, KMFolder *afolder = 0, bool append = false );
92 virtual void process( const TQString &tmplName, KMMessage *aorig_msg,
93 KMFolder *afolder = 0, bool append = false );
94 virtual void processWithTemplate( const TQString &tmpl );
107 virtual TQString pipe( const TQString &cmd, const TQString &buf );
109 virtual TQString getFName( const TQString &str );
110 virtual TQString getLName( const TQString &str );
119 bool mAllowDecryption;
124 TQString mQuoteString;
162 int parseQuotes( const TQString &prefix, const TQString &str,
163 TQString "e ) const;
166 void onProcessExited( TDEProcess *proc );
167 void onReceivedStdout( TDEProcess *proc, char *buffer, int buflen );
168 void onReceivedStderr( TDEProcess *proc, char *buffer, int buflen );
169 void onWroteStdin( TDEProcess *proc );
void setAllowDecryption(const bool allowDecryption) Sets whether the template parser is allowed to decrypt the original message when needing its message ...
virtual TQString findCustomTemplate(const TQString &tmpl) Finds the template with the given name.
void setSelection(const TQString &selection) Sets the selection.
bool shouldStripSignature() const Determines whether the signature should be stripped when getting the text of the original message,...
virtual TQString findTemplate() This finds the template to use.
partNode * parsedObjectTree() Returns the parsed object tree of the original message.
TQString messageText(bool allowSelectionOnly) If there was a text selection set in the constructor, that will be returned.
void addProcessedBodyToMessage(const TQString &body) Called by processWithTemplate().
|