Update contrib.
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __MMF_DURATION_INFO_CUSTOM_COMMANDS_H__
17 #define __MMF_DURATION_INFO_CUSTOM_COMMANDS_H__
22 #include <mmf/common/mmcaf.h>
23 #include <mmf/common/mmfstandardcustomcommands.h>
28 @deprecated 9.2- Replaced by KUidInterfaceMMFDurationInfoControl2
31 const TUid KUidInterfaceMMFDurationInfoControl = {0x102737C8};
37 The duration state of the controller.
41 EMMFDurationInfoValid, // Duration is known
42 EMMFDurationInfoUnknown, // Invalid response from controller
43 EMMFDurationInfoInfinite, // Clip is of infinite length
46 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
47 #include <mmf/common/mmfdurationinfocustomcommandsimpl.h>
48 #include <mmf/common/mmfdurationinfocustomcommandsenums.h>
53 @deprecated 9.2 - Replaced by MMMFDurationInfoCustomCommandImplementor2
55 Mixin class to be derived from by controller plugins wishing to support the Duration information
58 class MMMFDurationInfoCustomCommandImplementor
63 Is the duration of the clip known? i.e. is the stream infinite?
66 Controller duration information
68 @return TMMFDurationInfo Duration state.
70 virtual TMMFDurationInfo GetDurationInfo(TMMFDurationInfo& aDurationInfo)=0;
75 @deprecated 9.2 - Replaced by CMMFDurationInfoCustomCommandParser2
77 class CMMFDurationInfoCustomCommandParser : public CMMFCustomCommandParserBase
82 Creates a new custom command parser capable of processing duration information controller commands.
85 A reference to the controller plugin that owns this new object.
87 @return A pointer to the object created.
91 IMPORT_C static CMMFDurationInfoCustomCommandParser* NewL(MMMFDurationInfoCustomCommandImplementor& aImplementor);
98 IMPORT_C ~CMMFDurationInfoCustomCommandParser();
101 Handles a request from the client. Called by the controller framework.
104 The message to be handled.
108 void HandleRequest(TMMFMessage& aMessage);
115 A reference to the controller plugin that owns this new object.
118 CMMFDurationInfoCustomCommandParser(MMMFDurationInfoCustomCommandImplementor& aImplementor);
121 Request duration information from the implementor
124 Message for writing results to the client.
126 TInt GetDurationInfo(TMMFMessage& aMessage);
130 MMMFDurationInfoCustomCommandImplementor& iImplementor;
134 #endif // SYMBIAN_CAF_V2
136 #endif // __MMF_DURATION_INFO_CUSTOM_COMMANDS_H__