upnp/upnpstack/serviceframework/inc/upnpsoapmessagefactory.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     2 * Copyright (c) 2005-2006 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:  Declares the RUpnpSoapMessageFactory class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_RUPNPSOAPMESSAGEFACTORY_H
       
    20 #define C_RUPNPSOAPMESSAGEFACTORY_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 //#include <e32base.h>
       
    25 #include "upnphttpmessage.h"
       
    26 #include "upnperrors.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 class CUpnpSoapMessage;
       
    31 class CUpnpAction;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  SSDP Message Factory. Used to create standard SSDP messages.
       
    37 *
       
    38 *  @since Series60 2.6
       
    39 */
       
    40 class RUpnpSoapMessageFactory
       
    41 {
       
    42 public: // New functions
       
    43     
       
    44     /**
       
    45     * SOAP request
       
    46     * @since Series60 2.6
       
    47     * @param aAction the action requested
       
    48     */
       
    49     IMPORT_C static CUpnpSoapMessage* SoapRequestL( CUpnpAction* aAction );
       
    50     
       
    51     /**
       
    52     * SOAP response
       
    53     * @since Series60 2.6
       
    54     * @param aAction the action response
       
    55     * @param aCode the error code
       
    56     */
       
    57     IMPORT_C static CUpnpSoapMessage* SoapResponseL( CUpnpAction* aAction, 
       
    58                              TUpnpErrorCode aCode );
       
    59     
       
    60     /**
       
    61     * SOAP response
       
    62     * @since Series60 2.6
       
    63     * @param aAction the action response
       
    64     * @param aCode the error code
       
    65     * @param aDescription the error code description
       
    66     */
       
    67     IMPORT_C static CUpnpSoapMessage* SoapResponseL( CUpnpAction* aAction, 
       
    68                              TUpnpErrorCode aCode, 
       
    69                              const TDesC8& aDescription);
       
    70                                  
       
    71     /**
       
    72     * SOAP response
       
    73     * @since Series60 2.6
       
    74     * @param aAction the action response
       
    75     */
       
    76     IMPORT_C static CUpnpSoapMessage* SoapResponseL( CUpnpAction* aAction );
       
    77     
       
    78     /**
       
    79     * SOAP response
       
    80     * @since Series60 2.6
       
    81     * @param aMessage the message response
       
    82     * @param aCode the error code response
       
    83     */
       
    84     IMPORT_C static CUpnpSoapMessage* SoapResponseL( CUpnpSoapMessage* aMessage, 
       
    85                              TUpnpErrorCode aCode );
       
    86        
       
    87 };
       
    88 
       
    89 #endif  // C_RUPNPSOAPMESSAGEFACTORY_H
       
    90 
       
    91 // End of File