diff -r 000000000000 -r 96612d01cf9f videoplayerapp/mpxvideoplayer/inc/mpxvideoembeddedpdlhandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoplayerapp/mpxvideoplayer/inc/mpxvideoembeddedpdlhandler.h Mon Jan 18 20:21:12 2010 +0200 @@ -0,0 +1,100 @@ +/* +* 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 "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: Handles Embbeded PDL playback + * +*/ + +// Version : %version: 5 % + + +#ifndef __CMPXVIDEOEMBEDDEDPDLHANDLER_H__ +#define __CMPXVIDEOEMBEDDEDPDLHANDLER_H__ + +// +// INCLUDES +// +#include + +#include +#include + +// +// FORWARD DECLARATIONS +// +class CMpxVideoPlayerAppUiEngine; + +// +// CLASS DECLARATION +// + +/* + * Process PDL commands passed in by other applications. + * + * @lib mpxvideo.exe + * @since 9.2 time box + */ +class CMpxVideoEmbeddedPdlHandler : public CBase +{ + public: // Constructors and destructor + + /* + * Two-phased constructor. + * + * @since 9.2 + * @param aPlaybackUtility Playback utility to use. + * @return Pointer to newly created object. + */ + static CMpxVideoEmbeddedPdlHandler* NewL( CMpxVideoPlayerAppUiEngine* aAppUiEngine ); + + /* + * Destructor. + */ + virtual ~CMpxVideoEmbeddedPdlHandler(); + + public: + + void ConnectToEmbeddedDownloadL( TInt aDlId, TDesC& aFileName ); + void ConnectToCollectionDownloadL( TInt aDlId, TDesC& aFileName ); + void ClearPdlInformation(); + + private: + + /* + * C++ Constructor + */ + CMpxVideoEmbeddedPdlHandler( CMpxVideoPlayerAppUiEngine* aAppUiEngine ); + + /* + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + private: // New functions + + void SendPdlCustomCommandL( TMPXPlaybackPdCommand aCustomCmd, TInt aData ); + + void StartNewDownloadL( TInt aDlId, TDesC& aFileName ); + + private: + + CMpxVideoPlayerAppUiEngine* iAppUiEngine; + + TInt iDownloadId; + HBufC* iDownloadFileName; + TBool iEmbeddedPdlCase; +}; + +#endif // __CMPXVIDEOEMBEDDEDPDLHANDLER_H__ + +// End of File