mpx/playbackframework/playbackengine/inc/mpxplaybackpluginhandler.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 playback plugin handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // ----------------------------------------------------------------------------
       
    20 // Set observer
       
    21 // ----------------------------------------------------------------------------
       
    22 //
       
    23 inline void CMPXPlaybackPluginHandler::SetObserver(
       
    24     MMPXPlaybackPluginObserver& aObs)
       
    25     {
       
    26     iPluginObserver = &aObs;
       
    27     }
       
    28 
       
    29 // ----------------------------------------------------------------------------
       
    30 // Return current plugin
       
    31 // ----------------------------------------------------------------------------
       
    32 //
       
    33 inline CMPXPlaybackPlugin* CMPXPlaybackPluginHandler::Plugin()
       
    34     {
       
    35     return iPlugin;
       
    36     }
       
    37 
       
    38 // ----------------------------------------------------------------------------
       
    39 // Return current plugin id
       
    40 // ----------------------------------------------------------------------------
       
    41 //
       
    42 inline TUid CMPXPlaybackPluginHandler::PluginUid() const
       
    43     {
       
    44     return iPluginUid;
       
    45     }
       
    46 
       
    47 // ----------------------------------------------------------------------------
       
    48 // Return current plugin type
       
    49 // ----------------------------------------------------------------------------
       
    50 //
       
    51 inline TMPXPlaybackPlayerType CMPXPlaybackPluginHandler::PluginType() const
       
    52     {
       
    53     return iPluginType;
       
    54     }
       
    55 
       
    56 // ----------------------------------------------------------------------------
       
    57 // Return player name
       
    58 // ----------------------------------------------------------------------------
       
    59 //
       
    60 inline const TDesC& CMPXPlaybackPluginHandler::PlayerName() const
       
    61     {
       
    62     return *iDisplayName;
       
    63     }
       
    64 
       
    65 // ----------------------------------------------------------------------------
       
    66 // Return index of the subplayer
       
    67 // ----------------------------------------------------------------------------
       
    68 //
       
    69 inline TInt CMPXPlaybackPluginHandler::SubPlayer() const
       
    70     {
       
    71     return iPlugin->SubPlayerIndex();
       
    72     }
       
    73 
       
    74 // ----------------------------------------------------------------------------
       
    75 // Check if the player found or not
       
    76 // ----------------------------------------------------------------------------
       
    77 //
       
    78 inline TBool CMPXPlaybackPluginHandler::PlayerFound() const
       
    79     {
       
    80     return iPlugin!=NULL;
       
    81     }