upnpframework/upnputilities/inc/upnpcdsreselementutility.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Utility class for UPnP contentdirectory res (resource)
       
    15 *                element related actions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef UPNPCDSRESELEMENTUTILITY_H
       
    21 #define UPNPCDSRESELEMENTUTILITY_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CUpnpItem;
       
    28 class CUpnpElement;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * CUpnpCdsResElementUtility provides utility functions for dealing with UPnP 
       
    34  * res (resource) elements. 
       
    35  *
       
    36  * @lib upnputilities.lib
       
    37  * @since Series 60 3.1
       
    38  */
       
    39 class UpnpCdsResElementUtility
       
    40     {
       
    41 public: // New functions
       
    42 
       
    43     /**
       
    44      * Adds a res tag to an existing UPnP item. Res tag has always 
       
    45      * protocolinfo and size parameters. Image files will have resolution 
       
    46      * parameter and audio&video files will have duration parameter filled.
       
    47      * 
       
    48      * @since Series 60 3.1
       
    49      * @param aItem UPnP item that needs res element.
       
    50      * @param aFilename The filename of the resource. Full path included.
       
    51      */
       
    52     IMPORT_C static void AddResElementL(
       
    53         CUpnpItem& aItem,
       
    54         const TDesC& aFilename );
       
    55 
       
    56     /**
       
    57      * Checks if the provided uri is absolute uri
       
    58      *
       
    59      * @since Series 60 3.1
       
    60      * @param aUri uri
       
    61      * @return ETrue if the uri is absolute
       
    62      */
       
    63     IMPORT_C static TBool IsUriAbsolute( const TDesC8& aUri );    
       
    64 
       
    65     };
       
    66 
       
    67 #endif // UPNPCDSRESELEMENTUTILITY_H  
       
    68             
       
    69 // End of File