videocollection/hgmyvideos/inc/vcxhgmyvideosindicatorhelper.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:41:27 +0300
branchRCL_3
changeset 20 2d690156cf8f
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2008 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:   TVcxHgMyVideosIndicatorHelper class definition*
*/




#ifndef VCXHGMYVIDEOSINDICATORHELPER_H
#define VCXHGMYVIDEOSINDICATORHELPER_H

// INCLUDE FILES
#include <coemain.h>
 
// FORWARD DECLARATIONS
class CVcxHgMyVideosModel;
class CFbsBitmap;

// CLASS DECLARATION

/**
 *
 * @lib vcxhgmyvideos.lib
 */
NONSHARABLE_CLASS( TVcxHgMyVideosIndicatorHelper )  
    {
    public:

        /**
         * DRM status of video, for indicator selection.
         */
        enum TIndicatorDrmStatus
            {
            EIndicatorDrmStatusUnknown = 0,
            EIndicatorDrmStatusValid,
            EIndicatorDrmStatusExpired
            };

    public:        
        
        /**
         * Default constructor
         *
         */
        TVcxHgMyVideosIndicatorHelper();

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

        /**
         * Selectes which indicators should be shown for a video.
         * 
         * @param aModel Reference to component's model.
         * @param aNewVideo ETrue if video is new.
         * @param aRecordingOngoing ETrue if video is recording.
         * @param aPath Path to video.
         * @param aDrmStatus TIndicatorDrmStatus.
         * @param aIndicator1 On return, indicator 1.
         * @param aIndicator2 On return, indicator 2.
         */
        void GetIndicatorsForVideoL( CVcxHgMyVideosModel& aModel,
                                     TBool aNewVideo,
                                     TBool aRecordingOngoing,
                                     const TDesC& aPath,
                                     TIndicatorDrmStatus aDrmStatus,
                                     TInt& aIndicator1,
                                     TInt& aIndicator2 );           
    };

#endif // VCXHGMYVIDEOSINDICATORHELPER_H