upnp/upnpstack_plat/upnp_device_api/inc/upnpdevicedescriptionrequest.h
changeset 0 f5a58ecadc66
child 8 92b4d337bbaf
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     2 * Copyright (c) 2005-2008 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:  Declaration of MUpnpSubscriberLibraryObserver
       
    15 *
       
    16 */
       
    17 
       
    18 //INCLUDES
       
    19 #ifndef C_MUPNPDESCRIPTIONPROVIDER_H
       
    20 #define C_MUPNPDESCRIPTIONPROVIDER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <in_sock.h>
       
    24 
       
    25 
       
    26 //FORWARD DECLARATIONS
       
    27 class CUpnpHttpMessage;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31 *  
       
    32 */
       
    33 NONSHARABLE_CLASS( CUpnpDeviceDescriptionRequest ): public CBase
       
    34 {
       
    35 public: // New functions 
       
    36 
       
    37    /**
       
    38     * Method is called on request of device icon 
       
    39     * @param aServiceUri service description uri
       
    40     * @param aServiceFile open handle to icon file    
       
    41     * @return System wide error code
       
    42     */    
       
    43     static CUpnpDeviceDescriptionRequest* NewL( const TDesC8& aUri,
       
    44                                                  const TInetAddr& aInetAddress );
       
    45     
       
    46     static CUpnpDeviceDescriptionRequest* NewLC( const TDesC8& aUri,
       
    47                                                   const TInetAddr& aInetAddress );
       
    48         
       
    49    
       
    50     /**
       
    51      * Method matches uri and returs a handle to an open file 
       
    52      * @param aServiceUri service description uri
       
    53      * @param aServiceFile open handle to icon file    
       
    54      * @return System wide error code
       
    55      */
       
    56     IMPORT_C void InetAddress( TInetAddr& aInetAddr );
       
    57 
       
    58     /**
       
    59      * Method matches uri and returs a handle to an open file 
       
    60      * @param aServiceUri service description uri
       
    61      * @param aServiceFile open handle to icon file    
       
    62      * @return System wide error code
       
    63      */
       
    64     IMPORT_C TPtrC8 Uri();
       
    65                     
       
    66 
       
    67     CUpnpDeviceDescriptionRequest::~CUpnpDeviceDescriptionRequest();
       
    68     
       
    69 private:
       
    70     
       
    71     CUpnpDeviceDescriptionRequest::CUpnpDeviceDescriptionRequest( const TInetAddr& aInetAddress );
       
    72 
       
    73     void CUpnpDeviceDescriptionRequest::ConstructL( const TDesC8& aUri );
       
    74     
       
    75     RBuf8 iUri;
       
    76     
       
    77     TInetAddr iAddress;
       
    78         
       
    79     
       
    80 };
       
    81 
       
    82 
       
    83 #endif  // C_MUPNPDESCRIPTIONPROVIDER_H
       
    84 
       
    85 //End of File