os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/SDevSound/SDSCapTestServer/src/captestinfoserver.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) 2008-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 
    20 /**
    21  @file captestinfoserver.h
    22 */
    23 #ifndef __CAPTESTINFOSERVER_H__
    24 #define __CAPTESTINFOSERVER_H__
    25 
    26 #include <e32base.h>
    27 
    28 _LIT(KInfoServerName,"SDSCapTestInfoServer");
    29 
    30 // Function codes (opcodes) used in message passing between client and server
    31 enum TCapTestInfoRequest
    32     {
    33     ECapTestInfoThreadId = 1,
    34     };
    35 
    36 class CCapTestInfoServer : public CServer2
    37 	{
    38 public:
    39 	static CCapTestInfoServer* NewL();
    40 	CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
    41 	~CCapTestInfoServer();
    42 	
    43 private:
    44 	CCapTestInfoServer();
    45 
    46 private:
    47 	TBool iSessionConnected;
    48 	};
    49 
    50 class CCapTestInfoServerSession : public CSession2
    51 	{
    52 public:
    53 	static CCapTestInfoServerSession* NewL();
    54 	~CCapTestInfoServerSession();
    55 	void ServiceL(const RMessage2 &aMessage);
    56 
    57 private:
    58 	CCapTestInfoServerSession();
    59 	void DoGetThreadIdL(const RMessage2 &aMessage);
    60 	};
    61 
    62 #endif
    63