First public contribution.
1 // Copyright (c) 2007-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 "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef MMRCSERVERSTART_H
17 #define MMRCSERVERSTART_H
19 _LIT(KMMRCServerName,"MMRCServer");
20 _LIT(KMMRCServerFileName,"mmrcserver");
22 const TUid KMMRCServerUID3 = {0x102021d5};
24 const TInt KMMRCServerStackSize=0x2000; // 8KB
25 const TInt KMMRCServerInitHeapSize=0x1000; // 4KB
26 const TInt KMMRCServerMaxHeapSize=0x1000000; // 16MB
28 const TUint KMMRCServerVersion=1;
29 const TUint KMMRCServerMinorVersionNumber=0;
30 const TUint KMMRCServerBuildVersionNumber=0;
36 TServerStart(TRequestStatus& aStatus);
37 TPtrC AsCommand() const;
42 TRequestStatus* iStatus;
45 inline TServerStart::TServerStart(TRequestStatus& aStatus)
46 :iId(RThread().Id()),iStatus(&aStatus)
48 aStatus = KRequestPending;
51 // Descriptorizes ’this’ to pass it from client to server
52 inline TPtrC TServerStart::AsCommand() const
54 return TPtrC(reinterpret_cast<const TText*>(this),sizeof(TServerStart)/sizeof(TText));
57 void TServerStart::SignalL()
60 User::LeaveIfError(client.Open(iId));
61 client.RequestComplete(iStatus, KErrNone);
64 #endif //__MMRCSERVERSTART_H