omxil/omxilcomponentcommon/src/common/omxilclientclockport.h
changeset 56 b6488ac24ddc
parent 47 481b3bce574a
child 57 1cbb0d5bf7f2
equal deleted inserted replaced
47:481b3bce574a 56:b6488ac24ddc
     1 // Copyright (c) 2008-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 /**
       
    18    @file
       
    19    @internalComponent
       
    20 */
       
    21 
       
    22 #ifndef OMXILCLIENTCLOCKPORT_H
       
    23 #define OMXILCLIENTCLOCKPORT_H
       
    24 
       
    25 #include "omxilotherport.h"
       
    26 #include "omxilclockcomponentcmdsif.h"
       
    27 
       
    28 NONSHARABLE_CLASS(COmxILClientClockPort) : public COmxILOtherPort, public MOmxILClockComponentCmdsIf
       
    29 	{
       
    30 public:
       
    31 	IMPORT_C static COmxILClientClockPort* NewL(const TOmxILCommonPortData& aCommonPortData,
       
    32 						    					const RArray<OMX_OTHER_FORMATTYPE>& aSupportedOtherFormats);
       
    33 
       
    34 	// From MOmxILClockComponentCmdsIf
       
    35 	IMPORT_C OMX_ERRORTYPE GetMediaTime(OMX_TICKS& aMediaTime) const;
       
    36 	
       
    37 	// From MOmxILClockComponentCmdsIf
       
    38 	IMPORT_C OMX_ERRORTYPE GetWallTime(OMX_TICKS& aWallTime) const;
       
    39 
       
    40 	// From MOmxILClockComponentCmdsIf
       
    41 	IMPORT_C OMX_ERRORTYPE GetClockState(OMX_TIME_CONFIG_CLOCKSTATETYPE& aClockState) const;
       
    42 	
       
    43 	// From MOmxILClockComponentCmdsIf
       
    44 	IMPORT_C OMX_ERRORTYPE MediaTimeRequest(const OMX_PTR apPrivate, const OMX_TICKS aMediaTime, const OMX_TICKS aOffset) const;
       
    45 	
       
    46 	// From MOmxILClockComponentCmdsIf
       
    47 	IMPORT_C OMX_ERRORTYPE SetStartTime(const OMX_TICKS aStartTime) const;
       
    48 	
       
    49 	// From MOmxILClockComponentCmdsIf
       
    50 	IMPORT_C OMX_ERRORTYPE SetVideoReference(const OMX_TICKS aVideRef) const;
       
    51 	
       
    52 	// From MOmxILClockComponentCmdsIf
       
    53 	IMPORT_C OMX_ERRORTYPE SetAudioReference(const OMX_TICKS aAudioRef) const;
       
    54 	
       
    55 	// From MOmxILClockComponentCmdsIf
       
    56 	IMPORT_C OMX_BOOL IsClockComponentAvailable() const;
       
    57 	
       
    58 	// From COmxILPort
       
    59 	OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const;
       
    60 
       
    61 	// From COmxILPort
       
    62 	OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const;
       
    63 
       
    64 	// From COmxILPort
       
    65 	OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex,
       
    66 	                                    TAny* apComponentParameterStructure) const;
       
    67 
       
    68 	// From COmxILPort
       
    69 	OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex,
       
    70 	                                    const TAny* apComponentParameterStructure,
       
    71 	                                    TBool& aUpdateProcessingFunction);
       
    72 										
       
    73 protected:
       
    74 	// From COmxILPort
       
    75 	OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition,
       
    76 							 						TBool& aUpdateProcessingFunction);
       
    77 
       
    78 	// From COmxILPort
       
    79 	TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const;
       
    80 
       
    81 private:
       
    82 	
       
    83 	COmxILClientClockPort(const TOmxILCommonPortData& aCommonPortData);
       
    84 
       
    85 	OMX_ERRORTYPE GetTime(OMX_TICKS& aTime, const OMX_INDEXTYPE aTimeIndex) const;
       
    86 
       
    87 	OMX_ERRORTYPE SetTime(const OMX_TICKS aTime, const OMX_INDEXTYPE aTimeIndex) const;
       
    88 	
       
    89 	const OMX_VERSIONTYPE iSpecVersion;
       
    90 	};
       
    91 
       
    92 #endif // COMXILCLIENTCLOCKPORT_H