upnpavcontroller/upnpavcontrollerhelper/inc/upnpdlnautility.h
changeset 0 7f85d04be362
child 38 5360b7ddc251
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 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 for working with dlna profiles
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef UPNPDLNAUTILITY_H
       
    24 #define UPNPDLNAUTILITY_H
       
    25 
       
    26 // INCLUDES
       
    27 #include <e32base.h>
       
    28 #include <badesca.h>
       
    29     
       
    30 /**
       
    31 * Utility for working with dlna profiles and mime types
       
    32 *
       
    33 * @lib upnpavcontrollerhelper.lib
       
    34 * @since S60 3.2
       
    35 */
       
    36 class UPnPDlnaUtility
       
    37     {
       
    38 
       
    39 public: // datatypes 
       
    40 
       
    41     enum TDlnaMode
       
    42         {
       
    43         EDMSMode = 0,
       
    44         EDMPMode,
       
    45         EDMUMode,
       
    46         EDMDMode
       
    47         };
       
    48 
       
    49 public: // Business logic methods
       
    50 
       
    51          /**
       
    52          * Returns Dlna profiles for which playback on
       
    53          * device might be supported.         
       
    54          * The client must release the memory allocated for the items 
       
    55          * in the array.          
       
    56          * @since Series 60 3.2
       
    57          * @param aMode, dlna mode
       
    58          * @return Dlna profile string array
       
    59          */
       
    60         IMPORT_C static CDesC8Array& GetSupportedProfilesL( 
       
    61             const TDlnaMode aMode );
       
    62     
       
    63          /**
       
    64          * Returns ETrue if aMime is such a mime type for which playback on 
       
    65          * device might be supported.
       
    66          * @since Series 60 3.2
       
    67          * @param aMime mime type
       
    68          * @return TBool Can the mime type possibly be playable on device.
       
    69          */
       
    70         IMPORT_C static TBool IsSupportedMimeType( const TDesC8& aMime );
       
    71         
       
    72          /**
       
    73          * Returns ETrue if aProfile is such a DLNA profile for which 
       
    74          * playback on device might be supported.
       
    75          * @since Series 60 3.2
       
    76          * @param aProfile mime type
       
    77          * @return TBool Can the DLNA profile possibly be playable on device.
       
    78          */
       
    79         IMPORT_C static TBool IsSupportedDlnaProfile( const TDesC8& aProfile );
       
    80 
       
    81     };
       
    82 
       
    83 #endif  // UPNPDLNAUTILITY_H
       
    84 
       
    85 // End of File