syncmlfw/dm/inc/nsmldminternalpskeys.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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:  DM publish & subscribe keys 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __NSMLDMINTERNALPSKEYS_H
       
    21 #define __NSMLDMINTERNALPSKEYS_H
       
    22 
       
    23 // CONSTANTS
       
    24 
       
    25 _LIT_SECURITY_POLICY_C1( KReadPolicy, ECapabilityReadDeviceData );
       
    26 _LIT_SECURITY_POLICY_C1( KWritePolicy, ECapabilityWriteDeviceData );
       
    27 
       
    28 // Dm Sync agent Uid
       
    29 const TUid KPSUidNSmlDMSyncAgent = {0x101f9a0a};
       
    30 
       
    31 // PubSub key used to share information about adding the leaf node in the
       
    32 // current DM session.
       
    33 // Contains value as -1, when the DM command from server is other than Add
       
    34 // Contains value as 1,when the command from DM server is Add(may be node/leaf)
       
    35 // Contains value as 2, when the command from DM server is Add on existing
       
    36 // leaf node
       
    37 const TUint32 KNSmlDMCmdAddOnExistingNodeorLeafKey = 0x0000000A;
       
    38 
       
    39 // PubSub key used to share information about node adding in current Dm session
       
    40 // For success value is 1, set by DM Host session
       
    41 const TUint32 KNSmlDMCmdAddNodeSuccess = 0x0000000B;
       
    42 
       
    43 // Enum for the P&S key KNSmlDMCmdAddOnExistingLeafKey
       
    44 enum TNSmlDmSyncCmdOnLeafNode
       
    45 	{
       
    46 	EAddCmd = 1, //DM cmd is Add (on leaf/internal node)
       
    47 	EAddOnExistingNode
       
    48 	};
       
    49 	
       
    50 // Enum for the P&S key KNSmlDMCmdAddNodeSuccess
       
    51 enum TNSmlDmSyncAddCmdOnNode
       
    52 	{
       
    53 	ENotAdded = 0, //buffered
       
    54 	EAdded,
       
    55 	EFailed
       
    56 	};		
       
    57 #endif // __NSMLDMINTERNALPSKEYS_H