videocollection/myvideosindicatorplugin/inc/myvideosindicatorplugin.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 31 Mar 2010 21:34:36 +0300
branchRCL_3
changeset 10 112a725ff2c2
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201011 Kit: 201013

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  My Videos indicator plug-in.*
*/


#ifndef MYVIDEOSINDICATORPLUGIN_H
#define MYVIDEOSINDICATORPLUGIN_H

#include <myvideosindicator.h>

/**
 *  My Videos indicator plug-in implementation.
 */
class CMyVideosIndicatorPlugin : public CMyVideosIndicator
    {
public:

    /**
     * Two-phased constructor.
     *
     * @return Pointer to newly created object.
     */
    static CMyVideosIndicatorPlugin* NewL();

    /**
     * Destructor.
     */
    virtual ~CMyVideosIndicatorPlugin();

    /**
     * Returns overlay indicator. Ownership is transferred.
     *
     * @return Pointer to an icon.
     */
    CGulIcon* VideoOverlayIndicatorL();

    /**
     * Tells whether to show the overlay indicator for a given media object.
     * 
     * @param aMedia The media object.
     * @return Whether to show the indicator (true/false).
     */
    TBool IsIndicatorShown( const CMPXMedia& aMedia );

private:

    /**
     * C++ constructor.
     */
    CMyVideosIndicatorPlugin();

    };

#endif // MYVIDEOSINDICATORPLUGIN_H