0
|
1 |
// Copyright (c) 1996-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 the License "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 |
// e32test\bench\t_proc.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#if !defined(__E32VER_H__)
|
|
19 |
#include <e32ver.h>
|
|
20 |
#endif
|
|
21 |
|
|
22 |
const TInt KMajorVersionNumber=1;
|
|
23 |
const TInt KMinorVersionNumber=0;
|
|
24 |
const TInt KBuildVersionNumber=KE32BuildVersionNumber;
|
|
25 |
const TInt KHeapSize=0x2000;
|
|
26 |
|
|
27 |
_LIT(KServerName,"Display");
|
|
28 |
|
|
29 |
RSemaphore globSem1;
|
|
30 |
RSemaphore globSem2;
|
|
31 |
|
|
32 |
class CMyActiveScheduler : public CActiveScheduler
|
|
33 |
{
|
|
34 |
public:
|
|
35 |
virtual void Error(TInt anError) const; //Overloading pure virtual function
|
|
36 |
};
|
|
37 |
|
|
38 |
class CMyServer : public CServer2
|
|
39 |
{
|
|
40 |
public:
|
|
41 |
enum {EDisplay,ERead,EWrite,ETest,EStop};
|
|
42 |
public:
|
|
43 |
CMyServer(TInt aPriority);
|
|
44 |
static CMyServer* New(TInt aPriority);
|
|
45 |
virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2&) const;//Overloading
|
|
46 |
};
|
|
47 |
|
|
48 |
class CMySession : public CSession2
|
|
49 |
{
|
|
50 |
public:
|
|
51 |
void DisplayName(const RMessage2&, const TDesC& aText);
|
|
52 |
virtual void ServiceL(const RMessage2& aMessage); //pure virtual fns.
|
|
53 |
};
|
|
54 |
|