mtpdataproviders/mtpplaybackcontroldp/mtpplaybackinterface/inc/cmtpplaybackevent.h
branchRCL_3
changeset 19 0aa8cc770c8a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mtpdataproviders/mtpplaybackcontroldp/mtpplaybackinterface/inc/cmtpplaybackevent.h	Tue Aug 31 16:03:15 2010 +0300
@@ -0,0 +1,77 @@
+// 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 CMTPPLAYBACKEVENT_H
+#define CMTPPLAYBACKEVENT_H
+
+#include "mtpdebug.h"
+#include "mmtpplaybackinterface.h"
+#include "cmtpplaybackparam.h"
+
+/**
+* Encapsulates parameter for command EPlaybackCmdInitObject
+*/
+class CMTPPbEventParam : public CMTPPbParamBase
+    {
+public:
+    static CMTPPbEventParam* NewL(TMTPPbCategory aCategory, const TDesC& aSuid);
+    static CMTPPbEventParam* NewL(TInt32 aValue);
+    static CMTPPbEventParam* NewL(TUint32 aValue);
+    ~CMTPPbEventParam();
+
+private:
+    /**
+     * The constuctor.
+     * @param aCategory, category of object for initialization,
+     */
+    CMTPPbEventParam(TMTPPbCategory aCategory, const TDesC& aSuid);
+    CMTPPbEventParam(TInt32 aValue);
+    CMTPPbEventParam(TUint32 aValue);
+    };
+
+
+/** 
+Implements the CMTPPlaybackCommand.
+@internalComponent
+*/
+class CMTPPlaybackEvent : public CBase
+    {
+public:
+
+    static CMTPPlaybackEvent* NewL(TMTPPlaybackEvent aCmd, CMTPPbEventParam* aParam);
+    
+    void SetParam(CMTPPbEventParam* aParam);
+    const CMTPPbEventParam& ParamL();
+    TMTPPlaybackEvent PlaybackEvent();
+    
+    ~CMTPPlaybackEvent();
+   
+private:
+    CMTPPlaybackEvent(TMTPPlaybackEvent aCmd, CMTPPbEventParam* aParam);
+    void ConstructL();
+
+private: // Owned.
+    __FLOG_DECLARATION_MEMBER;
+    const TMTPPlaybackEvent iPbEvent;
+    CMTPPbEventParam* iParam;
+    };
+
+#endif //CMTPPLAYBACKEVENT_H
+