mtpdataproviders/mtpplaybackcontroldp/mtpplaybackmpximplementation/inc/cmtpplaybackcommandchecker.h
branchRCL_3
changeset 19 0aa8cc770c8a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mtpdataproviders/mtpplaybackcontroldp/mtpplaybackmpximplementation/inc/cmtpplaybackcommandchecker.h	Tue Aug 31 16:03:15 2010 +0300
@@ -0,0 +1,81 @@
+// Copyright (c) 2010 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:
+//
+
+/**
+ @file
+ @internalComponent
+*/
+
+#ifndef CMTPPLAYBACKCOMMANDCHECKER_H_
+#define CMTPPLAYBACKCOMMANDCHECKER_H_
+
+#include "cmtpplaybackcommand.h"
+#include "mtpdebug.h"
+
+class CMTPPlaybackControlImpl;
+
+NONSHARABLE_CLASS( CMTPPlaybackCommandChecker ) : public CBase
+    {
+public: // Constructors and destructor
+
+    /**
+     * Two-phased constructor.
+     */
+    static CMTPPlaybackCommandChecker* NewL( CMTPPlaybackControlImpl& aControlImpl );
+    /**
+     * Destructor.
+     */
+    virtual ~CMTPPlaybackCommandChecker();
+    
+public:
+    
+    /**
+    * Check playback command context
+    */
+    void CheckPlaybackCommandContextL( TMTPPlaybackCommand aMTPPBCommand );
+    
+    /**
+     *Check and update playback param
+    */
+    void CheckAndUpdatePlaybackParamL( CMTPPlaybackCommand& aMTPPPBSourceCmd, CMTPPbCmdParam** aMTPPPBTargetParam );
+    
+private:
+    
+    /**
+     * C++ default constructor.
+     */
+    CMTPPlaybackCommandChecker( CMTPPlaybackControlImpl& aControlImpl );
+    
+private:
+    
+    /**
+     * Return instance of CMTPPlaybackControlImpl.
+     */
+    CMTPPlaybackControlImpl& MTPPlaybackControlImpl();
+    
+private:
+    
+    /**
+    The handle of the owner
+    */
+    CMTPPlaybackControlImpl&     iMTPPlaybackControl;
+    
+    /**
+    FLOGGER debug trace member variable.
+     */
+    __FLOG_DECLARATION_MEMBER;
+    };
+    
+#endif /* CMTPPLAYBACKCOMMANDCHECKER_H_ */