atext/server/inc/atextclientsrvcommon.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Client-Server message passing declarations
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_ATEXTCLIENTSRVCOMMON_H
       
    20 #define C_ATEXTCLIENTSRVCOMMON_H
       
    21 
       
    22 /**  Opcodes used in message passing between client and server */
       
    23 enum TATExtIpc
       
    24     {
       
    25     EATExtSetCommonInterface,
       
    26     EATExtSynchronousClose,
       
    27     EATExtGetMode,
       
    28     EATExtReceiveModeStatusChange,
       
    29     EATExtCancelReceiveModeStatusChange,
       
    30     EATExtGetNvramStatus,
       
    31     EATExtReceiveNvramStatusChange,
       
    32     EATExtCancelReceiveNvramStatusChange,
       
    33     EInvalidIpc
       
    34     };
       
    35 
       
    36 /**  Message parameter indexes for client side */
       
    37 enum TATExtClientMessages
       
    38     {
       
    39     // Parameters for Connect()
       
    40     EATExtConnectParamName             = 0,
       
    41     // Parameters for GetMode()
       
    42     EATExtGetModeParamMask             = 0,
       
    43     EATExtGetModeParamMode             = 1,
       
    44     // Parameters for ReceiveModeStatusChange()
       
    45     EATExtReceiveModeChangeParamMode   = 0,
       
    46     // Parameters for GetNvramStatus()
       
    47     EATExtGetNvramStatusParamNvram     = 0,
       
    48     // Parameters for ReceiveNvramStatusChange()
       
    49     EATExtReceiveNvramChangeParamNvram = 0
       
    50     };
       
    51 
       
    52 /**  Server name */
       
    53 _LIT( KATExtSrvName, "atextcommon" );
       
    54 
       
    55 /**  A version must be specified when creating a session with the server */
       
    56 const TUint KCommonServerMajorVersionNumber = 2;
       
    57 const TUint KCommonServerMinorVersionNumber = 0;
       
    58 const TUint KCommonServerBuildVersionNumber = 0;
       
    59 
       
    60 #endif  // C_ATEXTCLIENTSRVCOMMON_H