os/boardsupport/haitest/bspsvs/suite/bsp/sound/inc/t_sounddriverserver.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 /**
    19 @test
    20 @internalComponent
    21 
    22 This contains CT_SoundDriverServer
    23 */
    24 
    25 #ifndef __T_SOUND_DRIVER_SERVER_H__
    26 #define __T_SOUND_DRIVER_SERVER_H__
    27 
    28 // EPOC Includes
    29 #include <testblockcontroller.h>
    30 #include <testserver2.h>
    31 
    32 // User includes
    33 #include "t_mdadevsounddata.h"
    34 #include "t_currentsoundformatdata.h"
    35 #include "t_soundformatssupporteddata.h"
    36 
    37 // classes being tested
    38 _LIT(KRMdaDevSound,					"RMdaDevSound");
    39 _LIT(KTCurrentSoundFormat,			"TCurrentSoundFormat");
    40 _LIT(KTSoundFormatsSupported,		"TSoundFormatsSupported");
    41 
    42 // This wrapper class extends the test server and creates test server for sound driver
    43 class CT_SoundDriverServer : public CTestServer2
    44 	{
    45 private:
    46 	class CT_SoundDriverBlock : public CTestBlockController
    47 		{
    48 	public:
    49 		inline CT_SoundDriverBlock();
    50 		inline ~CT_SoundDriverBlock();
    51 		inline void ConstructL();
    52 
    53 		inline CDataWrapper*	CreateDataL(const TDesC& aData);
    54 		
    55 	public:
    56 		RMdaDevSound* iServerStore;
    57 		};
    58 
    59 public:
    60 	static CT_SoundDriverServer* NewL();
    61 	inline ~CT_SoundDriverServer();
    62 
    63 	inline CTestBlockController*	CreateTestBlock();
    64 
    65 protected:
    66 	inline CT_SoundDriverServer();
    67 	
    68 private:
    69 	RMdaDevSound iServerStore;
    70 	};
    71 
    72 #include "t_sounddriverserver.inl"
    73 
    74 #endif // __T_SOUND_DRIVER_SERVER_H__