diff -r 000000000000 -r 60b4b6493d7b videocollection/myvideosindicatorplugin/inc/myvideosindicatorplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videocollection/myvideosindicatorplugin/inc/myvideosindicatorplugin.h Thu Nov 04 11:16:56 2010 +0200 @@ -0,0 +1,66 @@ +/* +* 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 + +/** + * 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