Update contrib.
1 // Copyright (c) 2006-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.
23 #ifndef MMRCCLIENTSERVER_H
24 #define MMRCCLIENTSERVER_H
40 // Function opcodes for client to server messaging
41 enum TMMRCClientToServerMessages
43 EMMRCClientToServerSetClientThreadId = 0,
44 EMMRCClientToServerSetMsgQueueHandle,
45 EMMRCClientToServerSetAdaptationProxy,
46 EMMRCClientToServerSetCallback,
47 EMMRCClientToServerRequestContextId,
48 EMMRCClientToServerCloseSession,
49 EMMRCClientToServerRequestResource,
50 EMMRCClientToServerRegisterAsClient,
51 EMMRCClientToServerCancelRegisterAsClient,
52 EMMRCClientToServerWillResumePlay
55 // Function opcodes for server to client messaging
56 enum TMMRCServerToClientMessageCallTypes
60 // Function opcodes for server to client messaging
61 enum TMMRCServerToClientMessageResults
63 EMMRCServerToClientResourceAgreed = 0,
64 EMMRCServerToClientResourcePreempt,
65 EMMRCServerToClientResourceDenied,
66 EMMRCServerToClientCommitUpdate,
67 EMMRCServerToClientRequestError
70 // Function opcodes for server to client messaging
71 enum TMMRCAdaptationToServerRequestResults
73 EMMRCAdaptationToServerResourceComplete = 0,
74 EMMRCAdaptationToServerResourceIncomplete,
75 EMMRCAdaptationToServerResourceTimeout,
76 EMMRCAdaptationToServerShutdown
81 EMMRCServerStateIdle = 0,
82 EMMRCServerStateWaitResourceResponseFromAdaptation,
83 EMMRCServerStateWaitPreemptionResponse
96 EMMRCRequestCommitUpdate = 0,
97 EMMRCRequestCommitResponse,
98 EMMRCRequestResourceUnallocated
107 MLogicalChain* iData;
108 TMMRCRequestType iRequestType;
109 TMMRCServerToClientMessageResults iResult;
114 IMPORT_C TInt StartMMRCServer(RThread& aServerThread);
116 #endif //__MMRCCLIENTSERVER_H