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