1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __LBSERRORS_H__
17 #define __LBSERRORS_H__
20 #include <lbsvariant.h>
28 _LIT(KPosClientFault,"Lbs Client Fault");
31 Position Client API panic codes
36 enum TPositionClientPanic
38 /** HPGI datatype mismatch */
39 EPositionGenericInfoMismatchDataType = 0,
40 /** CRequestor constructed with a null descriptor */
41 EPositionRequestorConstructorGivenNullData = 1,
42 /** HPGI zero-byte buffer */
43 EPositionGenericInfoZeroBufferSize = 2,
44 /** A unknown IPC request has been made on the server. */
45 EPositionBadRequest = 3,
46 /** A bad descriptor has been given to the server by the client. */
47 EPositionBadDescriptor = 4,
48 /** An attempt has been made to connect using an already open handle. */
49 EPositionServerHandleNotClosed = 5,
50 /** An attempt has been made to communicate though a non connected handle. */
51 EPositionServerBadHandle = 6,
52 /** A client has tried to use a RPositioner/RPositionServer handle that hasn't
53 been properly initialised. */
54 EPositionNullPointerHolder = 7,
55 /** A client has asked for/set the supported classes in TPositionModuleInfo
56 with an invalid class type. */
57 EPositionInvalidClassType = 8,
58 /** Too many items specified in a TPositionSelectionOrder. */
59 EPositionSelectionOrderOverflow = 9,
60 /** The class' size doesn't match the expected value. */
61 EPositionClassSizeMismatch = 10,
62 /** An unsupported object of size greater than KPositionMaxSizeQualityTrait has been
63 passed to a TPositionQualityBase as a field. */
64 EPositionQualityBadDataType = 11,
65 /** A negative TTimeIntervalMicroSeconds was passed to a method. */
66 EPositionBadTime = 12,
67 /** A negative value for accuracy was passed to a method. */
68 EPositionBadAccuracy = 13,
69 /** A client has attempted to instantiate a HPositionGenricInfo with 0 Max Fields. */
70 EPositionGenericInfoZeroMaxFields = 14,
71 /** A client has called an asynchronous request while it is still outstanding
72 on that RPositionServer / RPositioner. */
73 EPositionDuplicateRequest = 15,
74 /** A session or sub-session was closed with requests still outstanding. */
75 EPositionRequestsNotCancelled = 16,
76 /** A NULL entry has been found in the requestor stack. */
77 EPositionNullRequestor = 17
82 Completion codes to give extended information about location fix.
87 const TInt KPositionQualityLoss = 1;
90 Completion code for partial update.
95 const TInt KPositionPartialUpdate = 2;
98 Completion code indicating that the request has returned early at the explicit request of the application.
99 @see RPositionerSubSessionBase::CompleteRequest()
104 const TInt KPositionEarlyComplete = 3;
107 Status code indicating that a location data source has determined it will be unable to
108 provide an update of the required quality. This is only reported by the data source
109 module when it has reasoned that there is no point in continuing with the calculation.
110 It is not reported when there are transient conditions that might prevent the module
111 from obtaining the desired location information.
116 const TInt KPositionCalculationFutile = 4;
120 Code indicating that the assistance data response asks for a reset of the assistance data, as
121 shown by the data mask.
126 const TInt KPositionAssistanceDataReset = 5;
129 Lbs specific error codes.
134 If __S60_ is defined in lbsvariant.h the constant is -30371 otherwise it is -17350
136 const TInt KPositionErrBase = __LBS_TDEFAULT_ERROR_BASE;
144 const TInt KErrPositionBufferOverflow = KPositionErrBase;
147 Position calculation error
152 const TInt KErrPositionIncalculable = KPositionErrBase - 1;
160 const TInt KPositionNetworkErrorBase = -18301;
163 Returned by the network, when it cannot perform an operation due to a failure in the network
168 const TInt KErrPositionSystemFailure = KPositionNetworkErrorBase - 0; //-18301
171 Returned due to an protocol related error.
176 const TInt KErrPositionProtocolErr = KPositionNetworkErrorBase - 1; //-18302
181 Returned by the network when the network is unable
182 (a) To obtain the requested location information or
183 (b) The desired QoS could not be satisfied or
184 (c) The requested LCS assistance data could not be delivered or
185 (d) The requested deciphering keys for broadcast assistance data could not be returned.
187 const TInt KErrPositionMethodFailure = KPositionNetworkErrorBase - 2; //-18303
190 Returned by the network receiving a request about a facility which is not supported in the PLMN.
195 const TInt KErrPositionFacilityNoSupport = KPositionNetworkErrorBase - 3; //-18304
200 Returned by the network when it is requested to perform an operation on a supplementary
201 service that violated the subscription restrictions.
202 The nature of the restriction or the transgressed options may be sent as parameters.
204 const TInt KErrPositionNoService = KPositionNetworkErrorBase - 4; //-18305
209 Returned by the network when authorization failed for a informed LCSClientID.
211 const TInt KErrPositionUnauthorizedLCSClient = KPositionNetworkErrorBase - 5; //-18306
216 Returned by the network when an informed LCSClient is not available.
218 const TInt KErrPositionServiceNotSubscribed = KPositionNetworkErrorBase - 6; //-18307
223 Returned when a requests is cancelled due to receiving higher priority request.
225 const TInt KErrPositionHighPriorityReceive = KPositionNetworkErrorBase - 7; //-18308
229 Indicates an error due to no network coverage.
234 const TInt KErrPositionNetworkUnavailable = KPositionNetworkErrorBase - 8; //-18309
243 const TInt KPositionDataSourceErrorBase = -18350;
246 #endif //__LBSERRORS_H__