videoplayer_plat/videocollection_api/inc/myvideosindicator.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 12:44:54 +0300
branchRCL_3
changeset 15 8f0df5c82986
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* 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 ECom plugin interface.*
*/



#ifndef MYVIDEOSINDICATOR_H
#define MYVIDEOSINDICATOR_H

#include <e32base.h>
#include "myvideosindicator.hrh"

class CGulIcon;
class CMPXMedia;

/**
 * ECom plugin interface definition.
 */
class CMyVideosIndicator : public CBase
    {
    public:

        /**
         * Wraps ECom object instantitation.
         */
        static CMyVideosIndicator* NewL();
        
        /**
         * Wraps ECom object destruction.
         */
        virtual ~CMyVideosIndicator();
        
        /**
         * Returns overlay indicator. Ownership is transferred.
         *
         * @return Pointer to an icon.
         */
        virtual CGulIcon* VideoOverlayIndicatorL() = 0;

        /**
         * 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).
         */
        virtual TBool IsIndicatorShown( const CMPXMedia& aMedia ) = 0;

    private:

        /** 
         * Instance identifier key.
         */
        TUid iDtor_ID_Key;

    };

#include <ecom/ecom.h>
#include "myvideosindicator.inl" // Our own base implementations for ECOM

#endif // MYVIDEOSINDICATOR_H