Public Member Functions | Private Attributes | List of all members
EMailHandler Class Reference

#include <dochandler.h>

Inheritance diagram for EMailHandler:
BaseHandler< EMailHandler > QXmlDefaultHandler ElementMapper< EMailHandler > LocatorContainer IBaseHandler QXmlContentHandler QXmlErrorHandler QXmlDTDHandler QXmlEntityResolver QXmlLexicalHandler QXmlDeclHandler

Public Member Functions

 EMailHandler (IBaseHandler *parent)
 
virtual ~EMailHandler ()
 
void startEMail (const QXmlAttributes &attrib)
 
void endEMail ()
 
virtual Kind kind () const
 
virtual const IStringaddress () const
 
- Public Member Functions inherited from BaseHandler< EMailHandler >
 BaseHandler ()
 
virtual ~BaseHandler ()
 
virtual bool startDocument ()
 
virtual bool startElement (const QString &namespaceURI, const QString &localName, const QString &name, const QXmlAttributes &attrib)
 
virtual bool endElement (const QString &namespaceURI, const QString &localName, const QString &name)
 
bool skippedEntity (const QString &s)
 
virtual bool characters (const QString &ch)
 
void setDelegate (QXmlDefaultHandler *delegate)
 
QXmlDefaultHandlerdelegate () const
 
void setFallBackHandler (IFallBackHandler *h)
 
IFallBackHandlerfallBackHandler () const
 
void setDocumentLocator (QXmlLocator *locator)
 
- Public Member Functions inherited from QXmlDefaultHandler
 QXmlDefaultHandler ()
 
virtual ~QXmlDefaultHandler ()
 
bool endDocument ()
 
bool startPrefixMapping (const QString &prefix, const QString &uri)
 
bool endPrefixMapping (const QString &prefix)
 
bool ignorableWhitespace (const QString &ch)
 
bool processingInstruction (const QString &target, const QString &data)
 
bool warning (const QXmlParseException &exception)
 
bool error (const QXmlParseException &exception)
 
bool fatalError (const QXmlParseException &exception)
 
bool notationDecl (const QString &name, const QString &publicId, const QString &systemId)
 
bool unparsedEntityDecl (const QString &name, const QString &publicId, const QString &systemId, const QString &notationName)
 
bool resolveEntity (const QString &publicId, const QString &systemId, QXmlInputSource *&ret)
 
bool startDTD (const QString &name, const QString &publicId, const QString &systemId)
 
bool endDTD ()
 
bool startCDATA ()
 
bool endCDATA ()
 
bool comment (const QString &ch)
 
bool attributeDecl (const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value)
 
bool internalEntityDecl (const QString &name, const QString &value)
 
bool externalEntityDecl (const QString &name, const QString &publicId, const QString &systemId)
 
QString errorString ()
 
- Public Member Functions inherited from QXmlContentHandler
virtual ~QXmlContentHandler ()
 
- Public Member Functions inherited from QXmlErrorHandler
virtual ~QXmlErrorHandler ()
 
- Public Member Functions inherited from QXmlDTDHandler
virtual ~QXmlDTDHandler ()
 
- Public Member Functions inherited from QXmlEntityResolver
virtual ~QXmlEntityResolver ()
 
- Public Member Functions inherited from QXmlLexicalHandler
virtual ~QXmlLexicalHandler ()
 
- Public Member Functions inherited from QXmlDeclHandler
virtual ~QXmlDeclHandler ()
 
- Public Member Functions inherited from ElementMapper< EMailHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, EMailHandler *obj, void(EMailHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, EMailHandler *obj, void(EMailHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_address
 

Additional Inherited Members

- Public Types inherited from BaseHandler< EMailHandler >
typedef ElementMapper< EMailHandler >::StartElementHandlerT StartElementHandlerT
 
typedef ElementMapper< EMailHandler >::EndElementHandlerT EndElementHandlerT
 
- Public Types inherited from ElementMapper< EMailHandler >
typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 
- Static Public Attributes inherited from LocatorContainer
static QXmlLocators_theLocator =0
 
- Protected Attributes inherited from BaseHandler< EMailHandler >
QString m_curString
 
QString m_skipUntil
 
int m_skipCount
 
QXmlDefaultHandlerm_delegateHandler
 
IFallBackHandlerm_fallBackHandler
 
- Protected Attributes inherited from ElementMapper< EMailHandler >
QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Detailed Description

Definition at line 553 of file dochandler.h.

Constructor & Destructor Documentation

EMailHandler::EMailHandler ( IBaseHandler parent)

Definition at line 708 of file dochandler.cpp.

709  : m_parent(parent)
710 {
711  addEndHandler("email",this,&EMailHandler::endEMail);
712 }
IBaseHandler * m_parent
Definition: dochandler.h:567
void endEMail()
Definition: dochandler.cpp:725
void addEndHandler(const char *key)
Definition: basehandler.h:101
EMailHandler::~EMailHandler ( )
virtual

Definition at line 714 of file dochandler.cpp.

715 {
716 }

Member Function Documentation

virtual const IString* EMailHandler::address ( ) const
inlinevirtual

Definition at line 564 of file dochandler.h.

564 { return &m_address; }
StringImpl m_address
Definition: dochandler.h:568
void EMailHandler::endEMail ( )

Definition at line 725 of file dochandler.cpp.

726 {
728  m_curString="";
729  m_parent->setDelegate(0);
730  debug(2,"End email\n");
731 }
IBaseHandler * m_parent
Definition: dochandler.h:567
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
StringImpl m_address
Definition: dochandler.h:568
virtual Kind EMailHandler::kind ( ) const
inlinevirtual

Definition at line 563 of file dochandler.h.

563 { return DocImpl::EMail; }
void EMailHandler::startEMail ( const QXmlAttributes attrib)

Definition at line 718 of file dochandler.cpp.

719 {
720  m_parent->setDelegate(this);
721  debug(2,"Start email\n");
722  m_curString="";
723 }
IBaseHandler * m_parent
Definition: dochandler.h:567
virtual void setDelegate(QXmlDefaultHandler *delegate)=0

Member Data Documentation

StringImpl EMailHandler::m_address
private

Definition at line 568 of file dochandler.h.

IBaseHandler* EMailHandler::m_parent
private

Definition at line 567 of file dochandler.h.


The documentation for this class was generated from the following files: