videoplayerapp/mpxvideoplayer/inc/mpxvideoembeddedpdlhandler.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Handles Embbeded PDL playback
       
    15  *
       
    16 */
       
    17 
       
    18 // Version : %version: 5 %
       
    19 
       
    20 
       
    21 #ifndef __CMPXVIDEOEMBEDDEDPDLHANDLER_H__
       
    22 #define __CMPXVIDEOEMBEDDEDPDLHANDLER_H__
       
    23 
       
    24 //
       
    25 //  INCLUDES
       
    26 //
       
    27 #include <e32base.h>
       
    28 
       
    29 #include <mpxplaybackframeworkdefs.h>
       
    30 #include <mpxplaybackcommanddefs.h>
       
    31 
       
    32 //
       
    33 //  FORWARD DECLARATIONS
       
    34 //
       
    35 class CMpxVideoPlayerAppUiEngine;
       
    36 
       
    37 //
       
    38 //  CLASS DECLARATION
       
    39 //
       
    40 
       
    41 /*
       
    42  *  Process PDL commands passed in by other applications.
       
    43  *
       
    44  *  @lib mpxvideo.exe
       
    45  *  @since 9.2 time box
       
    46  */
       
    47 class CMpxVideoEmbeddedPdlHandler : public CBase
       
    48 {
       
    49     public:  // Constructors and destructor
       
    50 
       
    51         /*
       
    52          * Two-phased constructor.
       
    53          *
       
    54          * @since 9.2
       
    55          * @param aPlaybackUtility Playback utility to use.
       
    56          * @return Pointer to newly created object.
       
    57          */
       
    58         static CMpxVideoEmbeddedPdlHandler* NewL( CMpxVideoPlayerAppUiEngine* aAppUiEngine );
       
    59 
       
    60         /*
       
    61          *  Destructor.
       
    62          */
       
    63         virtual ~CMpxVideoEmbeddedPdlHandler();
       
    64 
       
    65     public:
       
    66 
       
    67         void ConnectToEmbeddedDownloadL( TInt aDlId, TDesC& aFileName );
       
    68         void ConnectToCollectionDownloadL( TInt aDlId, TDesC& aFileName );
       
    69         void ClearPdlInformation();
       
    70 
       
    71     private:
       
    72 
       
    73         /*
       
    74          *  C++ Constructor
       
    75          */
       
    76         CMpxVideoEmbeddedPdlHandler( CMpxVideoPlayerAppUiEngine* aAppUiEngine );
       
    77 
       
    78         /*
       
    79          *  By default Symbian 2nd phase constructor is private.
       
    80          */
       
    81         void ConstructL();
       
    82 
       
    83     private:  // New functions
       
    84 
       
    85         void SendPdlCustomCommandL( TMPXPlaybackPdCommand aCustomCmd, TInt aData );
       
    86 
       
    87         void StartNewDownloadL( TInt aDlId, TDesC& aFileName );
       
    88 
       
    89     private:
       
    90 
       
    91         CMpxVideoPlayerAppUiEngine*   iAppUiEngine;
       
    92 
       
    93         TInt                          iDownloadId;
       
    94         HBufC*                        iDownloadFileName;
       
    95         TBool                         iEmbeddedPdlCase;
       
    96 };
       
    97 
       
    98 #endif // __CMPXVIDEOEMBEDDEDPDLHANDLER_H__
       
    99 
       
   100 // End of File