os/mm/mmlibs/mmfw/inc/mmf/ControllerFramework/mmfdurationinfocustomcommandsimpl.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __MMF_DURATION_INFO_CUSTOM_COMMANDS_IMPL_H__
sl@0
    17
#define __MMF_DURATION_INFO_CUSTOM_COMMANDS_IMPL_H__
sl@0
    18
sl@0
    19
#ifdef SYMBIAN_CAF_V2
sl@0
    20
sl@0
    21
/**
sl@0
    22
@publishedPartner
sl@0
    23
@released
sl@0
    24
*/
sl@0
    25
sl@0
    26
const TUid KUidInterfaceMMFDurationInfoControl2 = {0x10273812};
sl@0
    27
	
sl@0
    28
/**
sl@0
    29
@publishedPartner
sl@0
    30
@released
sl@0
    31
sl@0
    32
Mixin class to be derived from by controller plugins wishing to support the Duration information 
sl@0
    33
custom commands
sl@0
    34
*/
sl@0
    35
class MMMFDurationInfoCustomCommandImplementor2
sl@0
    36
	{
sl@0
    37
public:
sl@0
    38
sl@0
    39
	/**
sl@0
    40
	Is the duration of the clip known? i.e. is the stream infinite?
sl@0
    41
	
sl@0
    42
	@param aDurationInfo
sl@0
    43
		   Controller duration information
sl@0
    44
		   
sl@0
    45
	@return KErrNone or System wide error code
sl@0
    46
	*/
sl@0
    47
	virtual TInt GetDurationInfo(TMMFDurationInfo& aDurationInfo)=0;
sl@0
    48
	};
sl@0
    49
	
sl@0
    50
/**
sl@0
    51
@publishedPartner
sl@0
    52
@released
sl@0
    53
sl@0
    54
Custom command parser capable of processing duration information controller commands
sl@0
    55
*/
sl@0
    56
class CMMFDurationInfoCustomCommandParser2 : public CMMFCustomCommandParserBase
sl@0
    57
	{
sl@0
    58
public:
sl@0
    59
sl@0
    60
	/**
sl@0
    61
	Creates a new custom command parser capable of processing duration information controller commands.
sl@0
    62
sl@0
    63
	@param  aImplementor
sl@0
    64
	        A reference to the controller plugin that owns this new object.
sl@0
    65
sl@0
    66
	@return A pointer to the object created.
sl@0
    67
sl@0
    68
	@since  9.2
sl@0
    69
	*/
sl@0
    70
	IMPORT_C static CMMFDurationInfoCustomCommandParser2* NewL(MMMFDurationInfoCustomCommandImplementor2& aImplementor);
sl@0
    71
sl@0
    72
	/**
sl@0
    73
	Destructor.
sl@0
    74
sl@0
    75
	@since  9.2
sl@0
    76
	*/
sl@0
    77
	IMPORT_C ~CMMFDurationInfoCustomCommandParser2();
sl@0
    78
sl@0
    79
	/**
sl@0
    80
	Handles a request from the client. Called by the controller framework.
sl@0
    81
sl@0
    82
	@param  aMessage
sl@0
    83
	        The message to be handled.
sl@0
    84
sl@0
    85
	@since  9.2
sl@0
    86
	*/
sl@0
    87
	void HandleRequest(TMMFMessage& aMessage);
sl@0
    88
sl@0
    89
private:
sl@0
    90
	/**
sl@0
    91
	Constructor.
sl@0
    92
sl@0
    93
	@param  aImplementor
sl@0
    94
	        A reference to the controller plugin that owns this new object.
sl@0
    95
	@since  9.2
sl@0
    96
	*/
sl@0
    97
	CMMFDurationInfoCustomCommandParser2(MMMFDurationInfoCustomCommandImplementor2& aImplementor);
sl@0
    98
	
sl@0
    99
	/**
sl@0
   100
	Request duration information from the implementor
sl@0
   101
sl@0
   102
	@param  aMessage
sl@0
   103
	        Message for writing results to the client.
sl@0
   104
	*/
sl@0
   105
	TInt GetDurationInfo(TMMFMessage& aMessage);
sl@0
   106
sl@0
   107
private:
sl@0
   108
	MMMFDurationInfoCustomCommandImplementor2& iImplementor;
sl@0
   109
	};
sl@0
   110
sl@0
   111
#endif // SYMBIAN_CAF_V2
sl@0
   112
sl@0
   113
#endif // __MMF_DURATION_INFO_CUSTOM_COMMANDS_IMPL_H__
sl@0
   114