upnp/upnpstack/serviceframework/inc/upnphttpservertransactiondescription.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     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:  CUpnpHttpServerTransactionDescription declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UPNPHTTPFILESERVETRANSACTION_H_
       
    19 #define UPNPHTTPFILESERVETRANSACTION_H_
       
    20 
       
    21 // INCLUDES
       
    22 #include "upnphttpservertransaction.h"
       
    23 
       
    24 // FORWARD DECLARATION
       
    25 class CUpnpHttpServerTransactionHandler;
       
    26 class TInetAddr;
       
    27 
       
    28 /**
       
    29  *  Transaction serving desciptions and icons. 
       
    30  *  
       
    31  */
       
    32 NONSHARABLE_CLASS( CUpnpHttpServerTransactionDescription ): public CUpnpHttpServerTransaction
       
    33     {
       
    34 public:
       
    35     /**
       
    36      * 2 phase constructor
       
    37      */
       
    38     static CUpnpHttpServerTransactionDescription* NewL( 
       
    39     		CUpnpHttpServerTransactionHandler& aClientContext, const TInetAddr& aSender, const TDesC8& aUri );
       
    40         
       
    41     ~CUpnpHttpServerTransactionDescription();
       
    42     
       
    43     /**
       
    44      * Base class callback implementation
       
    45      */        
       
    46     virtual void OnCallbackL( TUpnpHttpServerEvent aEvent );  
       
    47 
       
    48 
       
    49 
       
    50 protected:
       
    51 
       
    52     void ConstructL( const TInetAddr& aSender, const TDesC8& aSenderUri );
       
    53 	
       
    54     CUpnpHttpServerTransactionDescription( CUpnpHttpServerTransactionHandler& aClientContext );
       
    55     
       
    56 private:
       
    57     void DoCallbackL( TUpnpHttpServerEvent aEvent );
       
    58     
       
    59     TInt DecodeUri();
       
    60 
       
    61 private:
       
    62     // Sender Uri.
       
    63     HBufC8* iSenderUri;
       
    64     // Sender address.
       
    65     TInetAddr iSender;
       
    66     
       
    67     
       
    68     RBuf8 iDecodedUri;
       
    69     
       
    70     CUpnpHttpServerTransactionHandler& iClientContext;
       
    71         
       
    72     };
       
    73 
       
    74 #endif /* UPNPHTTPFILESERVETRANSACTION_H_ */