1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/inc/Mda/Common/Test.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,228 @@
1.4 +// Copyright (c) 1997-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 +// Mda\Common\Test.h
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef __MDA_COMMON_TEST_H__
1.22 +#define __MDA_COMMON_TEST_H__
1.23 +
1.24 +// Standard EPOC32 includes
1.25 +#include <e32base.h>
1.26 +
1.27 +// Public Media Server includes
1.28 +#include <mda/common/base.h>
1.29 +#include <mda/common/controller.h>
1.30 +#include <mda/common/port.h>
1.31 +#include <mda/common/resource.h>
1.32 +
1.33 +#include "Mda/Common/Test.hrh"
1.34 +
1.35 +// Uids
1.36 +
1.37 +/**
1.38 + *@publishedAll
1.39 + *@deprecated
1.40 + */
1.41 +const TUint KUidMdaHttpResLocValue = KUidMdaHttpResLocDefine;
1.42 +
1.43 +/**
1.44 + *@publishedAll
1.45 + *@deprecated
1.46 + */
1.47 +const TUid KUidMdaHttpResLoc = {KUidMdaHttpResLocValue};
1.48 +
1.49 +/**
1.50 + *@publishedAll
1.51 + *@deprecated
1.52 + */
1.53 +const TUint KUidMdaEventTesterValue = KUidMdaEventTesterDefine;
1.54 +
1.55 +/**
1.56 + *@publishedAll
1.57 + *@deprecated
1.58 + */
1.59 +const TUid KUidMdaEventTester = {KUidMdaEventTesterValue};
1.60 +
1.61 +/**
1.62 + *@publishedAll
1.63 + *@deprecated
1.64 + */
1.65 +const TUint KUidMdaTestSrcPortValue = KUidMdaTestSrcPortDefine;
1.66 +
1.67 +/**
1.68 + *@publishedAll
1.69 + *@deprecated
1.70 + */
1.71 +const TUid KUidMdaTestSrcPort = {KUidMdaTestSrcPortValue};
1.72 +
1.73 +/**
1.74 + *@publishedAll
1.75 + *@deprecated
1.76 + */
1.77 +const TUint KUidMdaTestDstPortValue = KUidMdaTestDstPortDefine;
1.78 +
1.79 +/**
1.80 + *@publishedAll
1.81 + *@deprecated
1.82 + */
1.83 +const TUid KUidMdaTestDstPort = {KUidMdaTestDstPortValue};
1.84 +
1.85 +/**
1.86 + *@publishedAll
1.87 + *@deprecated
1.88 + */
1.89 +const TUint KUidMdaDatatypeValue = KUidMdaDatatypeDefine;
1.90 +
1.91 +/**
1.92 + *@publishedAll
1.93 + *@deprecated
1.94 + */
1.95 +const TUid KUidMdaDatatype = {KUidMdaDatatypeValue};
1.96 +
1.97 +/**
1.98 + *@publishedAll
1.99 + *@deprecated
1.100 + */
1.101 +const TUint KUidMdaAudioTestSrcPortValue = KUidMdaAudioTestSrcPortDefine;
1.102 +
1.103 +/**
1.104 + *@publishedAll
1.105 + *@deprecated
1.106 + */
1.107 +const TUid KUidMdaAudioTestSrcPort = {KUidMdaAudioTestSrcPortValue};
1.108 +
1.109 +/**
1.110 + *@publishedAll
1.111 + *@deprecated
1.112 + */
1.113 +const TUint KUidMdaAudioTestDstPortValue = KUidMdaAudioTestDstPortDefine;
1.114 +
1.115 +/**
1.116 + *@publishedAll
1.117 + *@deprecated
1.118 + */
1.119 +const TUid KUidMdaAudioTestDstPort = {KUidMdaAudioTestDstPortValue};
1.120 +
1.121 +/**
1.122 + *@publishedAll
1.123 + *@deprecated
1.124 + */
1.125 +const TUint KUidMdaTestThreadValue = KUidMdaTestThreadDefine;
1.126 +
1.127 +/**
1.128 + *@publishedAll
1.129 + *@deprecated
1.130 + */
1.131 +const TUid KUidMdaTestThread = {KUidMdaTestThreadValue};
1.132 +
1.133 +/**
1.134 + *@publishedAll
1.135 + *@deprecated
1.136 + */
1.137 +const TUint KUidMdaTestServerHeapValue = KUidMdaTestServerHeapDefine;
1.138 +
1.139 +/**
1.140 + *@publishedAll
1.141 + *@deprecated
1.142 + */
1.143 +const TUid KUidMdaTestServerHeap = {KUidMdaTestServerHeapValue};
1.144 +
1.145 +// Functions
1.146 +
1.147 +/**
1.148 + *@publishedAll
1.149 + *@deprecated
1.150 + */
1.151 +enum TMdaEventTesterFunctions
1.152 + {
1.153 + EMdaEventTesterGenerateEvents=0
1.154 + };
1.155 +
1.156 +/**
1.157 + *@publishedAll
1.158 + *@deprecated
1.159 + */
1.160 +enum TMdaTestPortFunctions
1.161 + {
1.162 + EMdaTestPortBaseFunction = 3, // was EMLbPortNegotiate
1.163 + EMdaTestPortSetOpenParams,
1.164 + EMdaTestPortCompleteDelayedOpen
1.165 + };
1.166 +
1.167 +/**
1.168 + *@publishedAll
1.169 + *@deprecated
1.170 + */
1.171 +enum TMdaTestAudioPortFunctions
1.172 + {
1.173 + EMdaTestAudioPortBaseFunction = 3, // was EMLbPortNegotiate
1.174 + EMdaTestAudioPortSetAudio,
1.175 + EMdaTestAudioPortGetAudio,
1.176 + EMdaTestAudioPortSetBuffers,
1.177 + EMdaTestAudioPortGetBuffers
1.178 + };
1.179 +
1.180 +/**
1.181 + *@publishedAll
1.182 + *@deprecated
1.183 + */
1.184 +enum TMdaTestThreadFunctions
1.185 + {
1.186 + EMdaTestThreadStartFunction,
1.187 + EMdaTestThreadStopFunction
1.188 + };
1.189 +
1.190 +/**
1.191 + *@publishedAll
1.192 + *@deprecated
1.193 + */
1.194 +enum TMdaTestServerHeapFunctions
1.195 + {
1.196 + EMdaTestServerHeapMarkStartFunction,
1.197 + EMdaTestServerHeapMarkCheckFunction,
1.198 + EMdaTestServerHeapMarkEndFunction,
1.199 + EMdaTestServerHeapSetAllocFailFunction
1.200 + };
1.201 +
1.202 +// Packages
1.203 +
1.204 +
1.205 +
1.206 +class TMdaHttpClipLocation : public TMdaClipLocation
1.207 +/**
1.208 + * @internalTechnology
1.209 + *
1.210 + * Clip Locations
1.211 + */
1.212 + {
1.213 +public:
1.214 + inline TMdaHttpClipLocation();
1.215 + inline TMdaHttpClipLocation(const TDesC& aName);
1.216 +public:
1.217 + TBuf<256> iName;
1.218 + TTimeIntervalMicroSeconds32 iDelay;
1.219 + };
1.220 +
1.221 +// Inline functions
1.222 +
1.223 +inline TMdaHttpClipLocation::TMdaHttpClipLocation() :
1.224 +TMdaClipLocation(KUidMdaHttpResLoc,sizeof(TMdaHttpClipLocation)) {}
1.225 +
1.226 +inline TMdaHttpClipLocation::TMdaHttpClipLocation(const TDesC& aName) :
1.227 +TMdaClipLocation(KUidMdaHttpResLoc,sizeof(TMdaHttpClipLocation)),
1.228 +iName(aName) {}
1.229 +
1.230 +#endif
1.231 +