LCOV - code coverage report
Current view: top level - xmlsecurity/source/framework - elementcollector.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef _ELEMENTCOLLECTOR_HXX
      21             : #define _ELEMENTCOLLECTOR_HXX
      22             : 
      23             : #include "elementmark.hxx"
      24             : #include <com/sun/star/xml/crypto/sax/XReferenceResolvedListener.hpp>
      25             : #include <com/sun/star/xml/crypto/sax/ElementMarkPriority.hpp>
      26             : 
      27             : class ElementCollector : public ElementMark
      28             : /****** elementcollector.hxx/CLASS ElementCollector ***************************
      29             :  *
      30             :  *   NAME
      31             :  *  ElementCollector -- Class to manipulate an element collector
      32             :  *
      33             :  *   FUNCTION
      34             :  *  This class is derived from the ElementMark class. Beyond the function
      35             :  *  of the ElementMark class, this class also maintains the priority, and
      36             :  *  manages the notify process
      37             :  *
      38             :  *   AUTHOR
      39             :  *  Michael Mi
      40             :  *  Email: michael.mi@sun.com
      41             :  ******************************************************************************/
      42             : {
      43             : private:
      44             :     /*
      45             :      * the notify priority, is one of following values:
      46             :      * AFTERMODIFY  - this ElementCollector will notify after all
      47             :      *                    internal modifications have finished.
      48             :      * BEFOREMODIFY - this ElementCollector must notify before any
      49             :      *                    internal modification happens.
      50             :      */
      51             :     com::sun::star::xml::crypto::sax::ElementMarkPriority m_nPriority;
      52             : 
      53             :     /*
      54             :      * the modify flag, representing whether which elementcollector will
      55             :      * modify its data.
      56             :      */
      57             :     bool m_bToModify;
      58             : 
      59             :     /* the notify enable flag, see notifyListener method */
      60             :     bool m_bAbleToNotify;
      61             : 
      62             :     /* whether the listener has been notified */
      63             :     bool m_bNotified;
      64             : 
      65             :     /* the listener to be notified */
      66             :     com::sun::star::uno::Reference<
      67             :         com::sun::star::xml::crypto::sax::XReferenceResolvedListener > m_xReferenceResolvedListener;
      68             : 
      69             : public:
      70             :     ElementCollector(
      71             :         sal_Int32 nSecurityId,
      72             :         sal_Int32 nBufferId,
      73             :         com::sun::star::xml::crypto::sax::ElementMarkPriority nPriority,
      74             :         bool bToModify,
      75             :         const com::sun::star::uno::Reference<
      76             :             com::sun::star::xml::crypto::sax::XReferenceResolvedListener >&
      77             :             xReferenceResolvedListener);
      78           0 :     virtual ~ElementCollector() {};
      79             : 
      80             :     com::sun::star::xml::crypto::sax::ElementMarkPriority getPriority() const;
      81             :     bool getModify() const;
      82             :     void notifyListener();
      83             :     void setReferenceResolvedListener(
      84             :         const com::sun::star::uno::Reference<
      85             :             com::sun::star::xml::crypto::sax::XReferenceResolvedListener >&
      86             :             referenceResolvedListener);
      87             :     void doNotify();
      88             :     ElementCollector* clone(
      89             :         sal_Int32 nId,
      90             :         com::sun::star::xml::crypto::sax::ElementMarkPriority nPriority ) const;
      91             : };
      92             : 
      93             : #endif
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10