1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/bench/t_proc.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,54 @@
1.4 +// Copyright (c) 1996-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 the License "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 +// e32test\bench\t_proc.h
1.18 +//
1.19 +//
1.20 +
1.21 +#if !defined(__E32VER_H__)
1.22 +#include <e32ver.h>
1.23 +#endif
1.24 +
1.25 +const TInt KMajorVersionNumber=1;
1.26 +const TInt KMinorVersionNumber=0;
1.27 +const TInt KBuildVersionNumber=KE32BuildVersionNumber;
1.28 +const TInt KHeapSize=0x2000;
1.29 +
1.30 +_LIT(KServerName,"Display");
1.31 +
1.32 +RSemaphore globSem1;
1.33 +RSemaphore globSem2;
1.34 +
1.35 +class CMyActiveScheduler : public CActiveScheduler
1.36 + {
1.37 +public:
1.38 + virtual void Error(TInt anError) const; //Overloading pure virtual function
1.39 + };
1.40 +
1.41 +class CMyServer : public CServer2
1.42 + {
1.43 +public:
1.44 + enum {EDisplay,ERead,EWrite,ETest,EStop};
1.45 +public:
1.46 + CMyServer(TInt aPriority);
1.47 + static CMyServer* New(TInt aPriority);
1.48 + virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2&) const;//Overloading
1.49 + };
1.50 +
1.51 +class CMySession : public CSession2
1.52 + {
1.53 +public:
1.54 + void DisplayName(const RMessage2&, const TDesC& aText);
1.55 + virtual void ServiceL(const RMessage2& aMessage); //pure virtual fns.
1.56 + };
1.57 +