landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/EPos_LandmarksErrors.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 LANDMARKSERRORS_H
       
    21 #define LANDMARKSERRORS_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <e32def.h>
       
    26 
       
    27 // CONSTANTS
       
    28 _LIT(KPosLandmarksClientPanic,"Landmarks Client");
       
    29 
       
    30 /**
       
    31  * Landmarks panic codes
       
    32  *
       
    33  */
       
    34 enum TPositionLandmarksClientPanic
       
    35     {
       
    36     EPosInvalidPositionFieldId                  = 0
       
    37     /** A client has specified a position field ID that is invalid for
       
    38         the landmark. */,
       
    39     EPosNoneOrMultipleLandmarkAttributeSet      = 1
       
    40     /** A client has specified none or multiple landmark attributes. */,
       
    41     EPosSpecifiedIntervalLiesOutsideIteratedSet = 2
       
    42     /** A client has specified an interval that lies partially outside the
       
    43         iterated set. */,
       
    44     EPosNaNCoordinate                           = 3
       
    45     /** A client has specified a coordinate with latitude and/or longitude set
       
    46         to NaN. */,
       
    47     EPosInvalidLandmarkAttribute                = 4
       
    48     /** A client has specified a landmark attribute that is invalid. */,
       
    49     EPosInvalidValueSpecifiedInResourceFile     = 5
       
    50     /** An invalid value has been detected in a resource file. */,
       
    51     EPosInvalidPartialReadParameters            = 6
       
    52     /** Invalid partial read parameters have been detected. */,
       
    53     EPosInvalidRequestedPositionFields          = 7
       
    54     /** Invalid requested position fields have been detected. */,
       
    55     EPosNegativeValue                           = 8
       
    56     /** A negative value has been detected. */,
       
    57     EPosInvalidOperationMode                    = 9
       
    58     /** Invalid operation mode. Caused by mixed calls to NextStep and ExecuteL
       
    59         for an CPosLmOperation object or subsequent calls to NextStep. */,
       
    60     EPosInvalidEnumValue                        = 10
       
    61     /** Invalid enum value. */,
       
    62     EPosLmProtocolBreak                         = 11
       
    63     /** The protocol of CPosLandmarkEncoder/CPosLandmarkParser is not
       
    64         followed. */,
       
    65     EPosLmInvalidArgument                       = 12
       
    66     /** A client has passed an invalid argument. */,
       
    67     EPosInvalidIndex                            = 14
       
    68     /** A client has specified an invalid index. */,
       
    69     EPosInvalidItemType                         = 15
       
    70     /** A client has specified an invalid item type. */,
       
    71     EPosSearchOperationInUse                    = 16
       
    72     /** A client has tried to set/unset display data during an ongoing search.
       
    73         */
       
    74     };
       
    75 
       
    76 // FUNCTION PROTOTYPES
       
    77 IMPORT_C GLDEF_C void Panic(const TDesC& aCategory, TInt aReason);
       
    78 
       
    79 #endif      // LANDMARKSERRORS_H
       
    80 
       
    81 // End of File