locationtriggering/ltcontextsourceplugin/inc/lbtcontextsourceplugincommon.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Common settings for LBT Source plugin
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef COMMON_H_
       
    19 #define COMMON_H_
       
    20 
       
    21 _LIT( KMyRequestor , "Requestor" );
       
    22 
       
    23 _LIT(KDefaultValue,"0");
       
    24 
       
    25 _LIT( KDefaultContextSourceName, "Location" );
       
    26 
       
    27 
       
    28 _LIT(KContextType, "Location.Trigger");
       
    29 
       
    30 // constant to define max length for trigger name & set name
       
    31 // limit as specified by LBT engine
       
    32 const TInt KMaxNameLength =256;
       
    33 // defines length of real number
       
    34 const TInt KRealWidth = 50;
       
    35 // ascii value for point '.'
       
    36 const TInt KRealPoint = 46;
       
    37 // used for formatting the latitude & longitude
       
    38 const TInt KCoordinateDecimalPlaces = 6;
       
    39 // constants for checking the range of the coordinates
       
    40 const TReal KMinLatitude = -90.0;
       
    41 const TReal KMaxLatitude = 90.0;
       
    42 const TReal KMinLongitude = -180.0;
       
    43 const TReal KMaxLongitude = 180.0;
       
    44 const TReal KMinRadius = 100.0;
       
    45 
       
    46 // constant defining the permissible region value
       
    47 _LIT( KRegionValue, "circle" );
       
    48 _LIT( KDirectionValueOnEntry, "onentry" );
       
    49 _LIT( KDirectionValueOnExit, "onexit" );
       
    50 _LIT( KCurrentStateOn, "on" );
       
    51 _LIT( KCurrentStateOff, "off" );
       
    52 
       
    53 
       
    54 
       
    55 
       
    56 typedef struct 
       
    57  {
       
    58     TLbtTriggerId iTriggerId;
       
    59     TPtrC contextName;
       
    60     TPtrC triggerName;
       
    61  }TriggerList;
       
    62          
       
    63 #endif /* COMMON_H_ */