landmarks/locationlandmarks/tsrc/LandmarkTestModule/TestProvider/ServerClientLib/inc/FT_PosLmServerCommon.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2005 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: 
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef POSLMSERVERCOMMON_H
       
    21 #define POSLMSERVERCOMMON_H
       
    22 
       
    23 #include "FT_PosLmServerDefs.h"
       
    24 
       
    25 // CONSTANTS
       
    26 const TUint KPosLmServerEventArg =      0;
       
    27 const TUint KPosLmServerDbManEventArg  =0;
       
    28 const TUint KPosLmServerUriArg =        0;
       
    29 const TUint KPosLmServerUriLengthArg =  1;
       
    30 const TUint KPosLmServerDbReplaceArg =  1;
       
    31 const TUint KPosLmServerProtocolArg  =  0;
       
    32 const TUint KPosLmServerSourceUriArg =  0;
       
    33 const TUint KPosLmServerDbInfoArg    =  0;
       
    34 const TUint KPosLmServerTargetUriArg =  1;
       
    35 
       
    36 const TUint KPosLmServerDbManUriArg  =  1;
       
    37 const TUint KPosLmServerDriveArg     =  1;
       
    38 const TUint KPosLmServerBufferArg    =  1;
       
    39 const TUint KPosLmServerDbEventArg   =  1;
       
    40 
       
    41 const TUint KPosLmServerAllocLengthArg =2;
       
    42 const TUint KPosLmServerDbSettingsArg  =2;
       
    43 
       
    44 const TUint KPosLmServerStatusArg   =   0;
       
    45 const TUint KPosLmServerProgressArg =   1;
       
    46 const TUint KPosLmServerInitFlagArg =   2;
       
    47 
       
    48 const TUint KPosLmServerDbLockSetOnArg =    0;
       
    49 const TUint KPosLmServerDbLockSetWriteArg = 1;
       
    50 
       
    51 /**
       
    52 * Possible messages to be sent between client and server.
       
    53 */
       
    54 enum TPosLmServerMessage
       
    55     {
       
    56     // NOTE!
       
    57     // If you add a new message here, it must also be added
       
    58     // to the policy handling in the CPosLmServer class.
       
    59 
       
    60     EPosLmServerInitializeSync = 0,
       
    61     EPosLmServerInitializeAsync,
       
    62     EPosLmServerInitializeCancel,
       
    63     EPosLmServerLangSwitchSync,
       
    64     EPosLmServerLangSwitchAsync,
       
    65     EPosLmServerLangSwitchCancel,
       
    66     EPosLmServerRecoverSync,
       
    67     EPosLmServerRecoverAsync,
       
    68     EPosLmServerRecoverCancel,
       
    69     EPosLmServerListenForLmEvent,
       
    70     EPosLmServerCancelListenForLmEvent,
       
    71     EPosLmServerListenForDbEvent,
       
    72     EPosLmServerCancelListenForDbEvent,
       
    73     EPosLmServerUriFromLastEvent,
       
    74     EPosLmServerCreateDefaultDb,
       
    75     EPosLmServerListDatabaseUris,
       
    76     EPosLmServerRemainingDatabaseUris,
       
    77     EPosLmServerListDatabaseInfo,
       
    78     EPosLmServerRemainingDatabaseInfo,
       
    79     EPosLmServerReadDatabaseSettings,
       
    80     // The IPC messages above requires capability ReadUserData.
       
    81 
       
    82     EPosLmServerRegisterSession,
       
    83     EPosLmServerRegisterLocalAccessSubsession,
       
    84     EPosLmServerRegisterEventListenerSubsession,
       
    85     EPosLmServerRegisterLocalDbManSubsession,
       
    86     EPosLmServerUnregisterSubsession,
       
    87     // The IPC messages above requires NO capabilities.
       
    88 
       
    89     EPosLmServerDbLock,
       
    90     // The IPC message above requires a custom check.
       
    91     //  Read lock requires:     ReadUserData
       
    92     //  Write lock requires:    ReadUserData, WriteUserData
       
    93 
       
    94     EPosLmServerCreateDatabase,
       
    95     EPosLmServerDeleteDatabase,
       
    96     EPosLmServerCopyDatabase,
       
    97     EPosLmServerRegisterDatabase,
       
    98     EPosLmServerUnregisterDatabase,
       
    99     EPosLmServerUnregisterAllDatabases,
       
   100     EPosLmServerModifyDatabaseSettings,
       
   101     EPosLmServerReportLmEvent,
       
   102     EPosLmServerReportDbEvent,
       
   103     EPosLmServerFreeResources,
       
   104     // The IPC messages above requires capability ReadUserData and WriteUserData
       
   105 
       
   106     EPosLmServerLast
       
   107     };
       
   108 
       
   109 
       
   110 #endif      // POSLMSERVERCOMMON_H
       
   111 
       
   112 // End of File
       
   113