webservices/idwsfplugin/inc/idwsfsiuheader.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef IDWSF_SIU_HEADER_H
       
    26 #define IDWSF_SIU_HEADER_H
       
    27 
       
    28 // INCLUDES
       
    29 #include "SenCredential.h"
       
    30 #include "SenBaseFragment.h"
       
    31 
       
    32 // CONSTANTS
       
    33 _LIT8(KSiuXmlns, "urn:liberty:sb:2004-04");
       
    34 _LIT8(KSiuName, "ServiceInstanceUpdate");
       
    35 _LIT8(KCredentialElementLocalNameName, "Credential");
       
    36 
       
    37 // CLASS DECLARATION
       
    38 class CIdWsfSiuHeader :  public CSenBaseFragment
       
    39     {
       
    40     public: // Constructors and destructor
       
    41         
       
    42         static CIdWsfSiuHeader* NewL();
       
    43         virtual ~CIdWsfSiuHeader();
       
    44         
       
    45         // New functions
       
    46         
       
    47         TPtrC8 Endpoint();
       
    48         TPtrC8 SecurityMechId();
       
    49         const TTime& NotOnOrAfter();
       
    50         TBool IsNotOnOrAfterSet();
       
    51 
       
    52         /**
       
    53         * Retains ownership.
       
    54         */
       
    55         CSenCredential* Credential();
       
    56 
       
    57     private:
       
    58         
       
    59         /**
       
    60         * C++ default constructor.
       
    61         */
       
    62         CIdWsfSiuHeader();
       
    63         
       
    64         /**
       
    65         * By default Symbian 2nd phase constructor is private.
       
    66         */
       
    67         void ConstructL();
       
    68         
       
    69         // From CBaseFragment
       
    70         virtual void StartElementL(const TDesC8& aNsUri,
       
    71                                    const TDesC8& aLocalName,
       
    72                                    const TDesC8& aQName,
       
    73                                    const RAttributeArray& aAttributes);
       
    74     
       
    75         virtual void EndElementL(const TDesC8& aNsUri,
       
    76                                  const TDesC8& aLocalName,
       
    77                                  const TDesC8& aQName);
       
    78 
       
    79     private: // Data
       
    80         CSenCredential* ipCredential;   // Owned
       
    81         TTime iNotOnOrAfter;
       
    82     };
       
    83 
       
    84 #endif // IDWSF_SIU_HEADER_H
       
    85 
       
    86 // End of File