os/mm/mmlibs/mmfw/inc/mmf/ControllerFramework/mmfdurationinfocustomcommands.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/inc/mmf/ControllerFramework/mmfdurationinfocustomcommands.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,137 @@
     1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __MMF_DURATION_INFO_CUSTOM_COMMANDS_H__
    1.20 +#define __MMF_DURATION_INFO_CUSTOM_COMMANDS_H__
    1.21 +
    1.22 +#ifdef SYMBIAN_CAF_V2
    1.23 +
    1.24 +#include <e32base.h>
    1.25 +#include <mmf/common/mmcaf.h>
    1.26 +#include <mmf/common/mmfstandardcustomcommands.h>
    1.27 +
    1.28 +
    1.29 +/**
    1.30 +@publishedAll
    1.31 +@deprecated 9.2- Replaced by KUidInterfaceMMFDurationInfoControl2
    1.32 +*/
    1.33 +
    1.34 +const TUid KUidInterfaceMMFDurationInfoControl = {0x102737C8};
    1.35 +
    1.36 +/**
    1.37 +@publishedAll
    1.38 +@released
    1.39 +
    1.40 +The duration state of the controller.
    1.41 +*/
    1.42 +enum TMMFDurationInfo
    1.43 +	{
    1.44 +	EMMFDurationInfoValid, 		// Duration is known
    1.45 +	EMMFDurationInfoUnknown,	// Invalid response from controller
    1.46 +	EMMFDurationInfoInfinite,	// Clip is of infinite length
    1.47 +	};
    1.48 +
    1.49 +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    1.50 +#include <mmf/common/mmfdurationinfocustomcommandsimpl.h>
    1.51 +#include <mmf/common/mmfdurationinfocustomcommandsenums.h>
    1.52 +#endif
    1.53 +
    1.54 +/**
    1.55 +@publishedAll
    1.56 +@deprecated 9.2 - Replaced by MMMFDurationInfoCustomCommandImplementor2
    1.57 +
    1.58 +Mixin class to be derived from by controller plugins wishing to support the Duration information 
    1.59 +custom commands
    1.60 +*/
    1.61 +class MMMFDurationInfoCustomCommandImplementor
    1.62 +	{
    1.63 +public:
    1.64 +
    1.65 +	/**
    1.66 +	Is the duration of the clip known? i.e. is the stream infinite?
    1.67 +	
    1.68 +	@param aDurationInfo
    1.69 +		   Controller duration information
    1.70 +		   
    1.71 +	@return TMMFDurationInfo Duration state.
    1.72 +	*/
    1.73 +	virtual TMMFDurationInfo GetDurationInfo(TMMFDurationInfo& aDurationInfo)=0;
    1.74 +	};
    1.75 +
    1.76 +/**
    1.77 +@publishedAll
    1.78 +@deprecated 9.2 - Replaced by CMMFDurationInfoCustomCommandParser2
    1.79 +*/
    1.80 +class CMMFDurationInfoCustomCommandParser : public CMMFCustomCommandParserBase
    1.81 +	{
    1.82 +public:
    1.83 +
    1.84 +	/**
    1.85 +	Creates a new custom command parser capable of processing duration information controller commands.
    1.86 +
    1.87 +	@param  aImplementor
    1.88 +	        A reference to the controller plugin that owns this new object.
    1.89 +
    1.90 +	@return A pointer to the object created.
    1.91 +
    1.92 +	@since  9.1
    1.93 +	*/
    1.94 +	IMPORT_C static CMMFDurationInfoCustomCommandParser* NewL(MMMFDurationInfoCustomCommandImplementor& aImplementor);
    1.95 +
    1.96 +	/**
    1.97 +	Destructor.
    1.98 +
    1.99 +	@since  9.1
   1.100 +	*/
   1.101 +	IMPORT_C ~CMMFDurationInfoCustomCommandParser();
   1.102 +
   1.103 +	/**
   1.104 +	Handles a request from the client. Called by the controller framework.
   1.105 +
   1.106 +	@param  aMessage
   1.107 +	        The message to be handled.
   1.108 +
   1.109 +	@since  9.1
   1.110 +	*/
   1.111 +	void HandleRequest(TMMFMessage& aMessage);
   1.112 +
   1.113 +private:
   1.114 +	/**
   1.115 +	Constructor.
   1.116 +
   1.117 +	@param  aImplementor
   1.118 +	        A reference to the controller plugin that owns this new object.
   1.119 +	@since  9.1
   1.120 +	*/
   1.121 +	CMMFDurationInfoCustomCommandParser(MMMFDurationInfoCustomCommandImplementor& aImplementor);
   1.122 +	
   1.123 +	/**
   1.124 +	Request duration information from the implementor
   1.125 +
   1.126 +	@param  aMessage
   1.127 +	        Message for writing results to the client.
   1.128 +	*/
   1.129 +	TInt GetDurationInfo(TMMFMessage& aMessage);
   1.130 +
   1.131 +private:
   1.132 +
   1.133 +	MMMFDurationInfoCustomCommandImplementor& iImplementor;
   1.134 +	
   1.135 +	};
   1.136 +
   1.137 +#endif // SYMBIAN_CAF_V2
   1.138 +
   1.139 +#endif // __MMF_DURATION_INFO_CUSTOM_COMMANDS_H__
   1.140 +