videocollection/myvideosindicatorplugin/inc/myvideosindicatorplugin.h
branchRCL_3
changeset 23 befca0ec475f
parent 0 96612d01cf9f
equal deleted inserted replaced
22:839377eedc2b 23:befca0ec475f
       
     1 /*
       
     2 * Copyright (c) 2009 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 the License "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:  My Videos indicator plug-in.*
       
    15 */
       
    16 
       
    17 
       
    18 #ifndef MYVIDEOSINDICATORPLUGIN_H
       
    19 #define MYVIDEOSINDICATORPLUGIN_H
       
    20 
       
    21 #include <myvideosindicator.h>
       
    22 
       
    23 /**
       
    24  *  My Videos indicator plug-in implementation.
       
    25  */
       
    26 class CMyVideosIndicatorPlugin : public CMyVideosIndicator
       
    27     {
       
    28 public:
       
    29 
       
    30     /**
       
    31      * Two-phased constructor.
       
    32      *
       
    33      * @return Pointer to newly created object.
       
    34      */
       
    35     static CMyVideosIndicatorPlugin* NewL();
       
    36 
       
    37     /**
       
    38      * Destructor.
       
    39      */
       
    40     virtual ~CMyVideosIndicatorPlugin();
       
    41 
       
    42     /**
       
    43      * Returns overlay indicator. Ownership is transferred.
       
    44      *
       
    45      * @return Pointer to an icon.
       
    46      */
       
    47     CGulIcon* VideoOverlayIndicatorL();
       
    48 
       
    49     /**
       
    50      * Tells whether to show the overlay indicator for a given media object.
       
    51      * 
       
    52      * @param aMedia The media object.
       
    53      * @return Whether to show the indicator (true/false).
       
    54      */
       
    55     TBool IsIndicatorShown( const CMPXMedia& aMedia );
       
    56 
       
    57 private:
       
    58 
       
    59     /**
       
    60      * C++ constructor.
       
    61      */
       
    62     CMyVideosIndicatorPlugin();
       
    63 
       
    64     };
       
    65 
       
    66 #endif // MYVIDEOSINDICATORPLUGIN_H