xmlsecurityengine/xmlsecwrapper/inc/xmlsecwglobalstate.h
changeset 0 e35f40988205
child 20 889504eac4fb
equal deleted inserted replaced
-1:000000000000 0:e35f40988205
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Structure with global states for component.       
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_GLOABALSTATE_H
       
    19 #define C_GLOABALSTATE_H
       
    20 
       
    21 #include <xmlengdomimplementation.h>
       
    22 
       
    23 class CXmlSecKeyManager;    
       
    24 /**
       
    25  * Strucure with global states for component.
       
    26  * Holds key manager pointer and user counter.
       
    27  *
       
    28  * @lib XmlSecWrapper.dll
       
    29  * @since S60 v3.2 
       
    30  */
       
    31 struct XmlSecGlobalState
       
    32     {
       
    33 public:
       
    34     /**
       
    35      * Key manager pointer.
       
    36      */
       
    37     CXmlSecKeyManager* iKeyManager;
       
    38     
       
    39     /**
       
    40      * User counter.
       
    41      */
       
    42     TInt iUserCount;
       
    43     
       
    44     /**
       
    45      * DOM implementation.
       
    46      */
       
    47     RXmlEngDOMImplementation* iDOMImpl;
       
    48     };
       
    49     
       
    50     /**
       
    51      * Gets global state for dll
       
    52      */
       
    53     XmlSecGlobalState* XmlSecGetTls();
       
    54     
       
    55     /**
       
    56      * Sets global state for dll
       
    57      */
       
    58     XmlSecGlobalState* XmlSecSetTlsL();
       
    59 	
       
    60     
       
    61 #endif // C_GLOABALSTATE_H