mmappfw_plat/playlist_engine_api/inc/mpxplaylistpluginhandler.inl
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 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:  Inline implementation of playlist plugin handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // ----------------------------------------------------------------------------
       
    20 // Return current playlist plugin id
       
    21 // ----------------------------------------------------------------------------
       
    22 //
       
    23 inline TUid CMPXPlaylistPluginHandler::PluginUid() const
       
    24     {
       
    25     return iPluginUid;
       
    26     }   
       
    27     
       
    28 // ----------------------------------------------------------------------------
       
    29 // Return current playlist plugin type
       
    30 // ----------------------------------------------------------------------------
       
    31 //
       
    32 inline TUint32 CMPXPlaylistPluginHandler::PluginType() const
       
    33     {
       
    34     return iPluginType;
       
    35     }   
       
    36     
       
    37 // ----------------------------------------------------------------------------
       
    38 // Return playlist plugin name
       
    39 // ----------------------------------------------------------------------------
       
    40 //
       
    41 inline const TDesC& CMPXPlaylistPluginHandler::PluginName() const
       
    42     {
       
    43     return iDisplayName ? static_cast<const TDesC&>( *iDisplayName ) : KNullDesC;
       
    44     }
       
    45 
       
    46 // ----------------------------------------------------------------------------
       
    47 // Check if the playlist plugin found or not
       
    48 // ----------------------------------------------------------------------------
       
    49 //
       
    50 inline TBool CMPXPlaylistPluginHandler::PluginFound() const
       
    51     { 
       
    52     return iPlugin!=NULL;
       
    53     }
       
    54 
       
    55 // ----------------------------------------------------------------------------
       
    56 // Return current playlist plugin
       
    57 // ----------------------------------------------------------------------------
       
    58 //
       
    59 inline CMPXPlaylistPlugin* CMPXPlaylistPluginHandler::Plugin() const
       
    60     {
       
    61     return iPlugin;
       
    62     }
       
    63     
       
    64     
       
    65     
       
    66