00001 /* 00002 * ============================================================================== 00003 * Name : clientservercommon.h 00004 * Part of : CSAsync 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004-2006 Nokia Corporation and/or its subsidiary(-ies). 00010 * All rights reserved. 00011 * This component and the accompanying materials are made available 00012 * under the terms of "Eclipse Public License v1.0" 00013 * which accompanies this distribution, and is available 00014 * at the URL "http://www.eclipse.org/legal/epl-v10.html". 00015 * ============================================================================== 00016 */ 00017 00018 00019 #ifndef __CLIENTSERVERCOMMON_H__ 00020 #define __CLIENTSERVERCOMMON_H__ 00021 00022 // INCLUDE FILES 00023 #include <e32base.h> 00024 00025 // CONSTANTS 00026 _LIT( KTimeServerName,"AsyncTimeServer" ); // Server name 00027 _LIT( KTimeServerSemaphoreName, "AsyncTimeServerSemaphore" ); 00028 00029 // The server version. A version must be specified when 00030 // creating a session with the server. 00031 const TUint KTimeServMajorVersionNumber=0; 00032 const TUint KTimeServMinorVersionNumber=1; 00033 const TUint KTimeServBuildVersionNumber=1; 00034 00035 // DATA TYPES 00036 // Opcodes used in message passing between client and server 00037 enum TTimeServRqst 00038 { 00039 ETimeServRequestTime, 00040 ETimeServCancelRequestTime 00041 }; 00042 00043 // Opcodes used by server to indicate which asynchronous service 00044 // has completed 00045 enum TTimeServRqstComplete 00046 { 00047 ETimeServRequestTimeComplete = 1 00048 }; 00049 00050 #endif // __CLIENTSERVERCOMMON_H__ 00051 00052 // End of file