Ejemplo n.º 1
0
    DBusXMLHandler(ParserInterface * parser,
                   QXmlSimpleReader * reader,
                   const char * file_name,
                   Entry * root) :
        m_parser(parser),
        m_locator(reader),
        m_currentEntry(0),
        m_currentInterface(0),
        m_currentMethod(0),
        m_currentArgument(0),
        m_currentProperty(0),
        m_currentEnum(0),
        m_fileName(file_name),
        m_currentComment(0)
    {
        setDocumentLocator(&m_locator);

        m_scopeCount = 0;

        // Set up stack cleanup:
        m_structStack.setAutoDelete(TRUE);
        m_elementStack.setAutoDelete(TRUE);
        m_scopeStack.setAutoDelete(TRUE);

        openScopes(root);
    }
Ejemplo n.º 2
0
void QXmlDefaultHandler_QtDShell::__override_setDocumentLocator(QXmlLocator*  locator0, bool static_call)
{
    if (static_call) {
        QXmlDefaultHandler::setDocumentLocator((QXmlLocator* )locator0);
    } else {
        setDocumentLocator((QXmlLocator* )locator0);
    }
}