webservices/idwsfplugin/inc/idwsfmessage.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_MESSAGE_H
       
    26 #define IDWSF_MESSAGE_H
       
    27 
       
    28 // INCLUDES
       
    29 #include "idwsfcorrelationheader.h"
       
    30 #include "idwsfsiuheader.h"
       
    31 #include "idwsfsoapmessage.h"
       
    32 
       
    33 // CONSTANTS
       
    34 _LIT8(KSBXmlNs,                         "urn:liberty:sb:2003-08");
       
    35 _LIT8(KStatusEndpointMoved,             "EndpointMoved");
       
    36 _LIT8(KStatusInappropriateCredentials,  "InappropriateCredentials");
       
    37 
       
    38 // CLASS DECLARATION
       
    39 class CIdWsfMessage : public CIdWsfSoapMessage
       
    40     {
       
    41     public: // Constructors and destructor
       
    42     
       
    43         static CIdWsfMessage* NewL(const TDesC8& aRefToMessageId = KNullDesC8);
       
    44         virtual ~CIdWsfMessage();
       
    45 
       
    46         // New functions
       
    47     
       
    48         /**
       
    49         * Convenience methods
       
    50         */
       
    51         virtual void SetCorrelationL(const TDesC8& aRefToMessageId);
       
    52         virtual TPtrC8 MessageId();
       
    53         virtual TPtrC8 RefToMessageId();
       
    54         virtual TPtrC8 Timestamp();
       
    55 
       
    56         /**
       
    57         * Retains ownership.
       
    58         */
       
    59         virtual CIdWsfSiuHeader* SiuHeader();
       
    60 
       
    61         /**
       
    62         * @return the value of the "code" attribute in a possible Status element.
       
    63         * The Status element is expected to be a child of the first child of the
       
    64         * S:Body. Or the child of a <detail> element of a <s:Fault>
       
    65         */
       
    66         virtual const TDesC8* StatusCodeL();
       
    67 
       
    68         // Functions from base classes
       
    69         
       
    70         // From CSenSoapMessage
       
    71         virtual void ParseHeaderL(const TDesC8& aNsUri,
       
    72                                   const TDesC8& aLocalName,
       
    73                                   const TDesC8& aQName,
       
    74                                   const RAttributeArray& aAttributes);
       
    75 
       
    76 
       
    77 
       
    78     protected:
       
    79         
       
    80         /**
       
    81         * C++ default constructor.
       
    82         */
       
    83         CIdWsfMessage();
       
    84         
       
    85         /**
       
    86         * By default Symbian 2nd phase constructor is private.
       
    87         */
       
    88         void BaseConstructL(const TDesC8& aRefToMessageId);
       
    89 
       
    90     private: // Data
       
    91         CIdWsfCorrelationHeader* ipCorrelationHeader;// Not owned (owned by header)
       
    92         CIdWsfSiuHeader* ipSiuHeader;                // Owned, but element not owned
       
    93     };
       
    94 
       
    95 #endif // IDWSF_MESSAGE_H
       
    96 
       
    97 // End of File
       
    98