williamr@2: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __LBSERRORS_H__ williamr@2: #define __LBSERRORS_H__ williamr@2: williamr@2: #include williamr@4: #include williamr@2: williamr@2: /** williamr@2: LBS Panic string williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: _LIT(KPosClientFault,"Lbs Client Fault"); williamr@2: williamr@2: /** williamr@2: Position Client API panic codes williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: enum TPositionClientPanic williamr@2: { williamr@2: /** HPGI datatype mismatch */ williamr@2: EPositionGenericInfoMismatchDataType = 0, williamr@2: /** CRequestor constructed with a null descriptor */ williamr@2: EPositionRequestorConstructorGivenNullData = 1, williamr@2: /** HPGI zero-byte buffer */ williamr@2: EPositionGenericInfoZeroBufferSize = 2, williamr@2: /** A unknown IPC request has been made on the server. */ williamr@2: EPositionBadRequest = 3, williamr@2: /** A bad descriptor has been given to the server by the client. */ williamr@2: EPositionBadDescriptor = 4, williamr@2: /** An attempt has been made to connect using an already open handle. */ williamr@2: EPositionServerHandleNotClosed = 5, williamr@2: /** An attempt has been made to communicate though a non connected handle. */ williamr@2: EPositionServerBadHandle = 6, williamr@2: /** A client has tried to use a RPositioner/RPositionServer handle that hasn't williamr@2: been properly initialised. */ williamr@2: EPositionNullPointerHolder = 7, williamr@2: /** A client has asked for/set the supported classes in TPositionModuleInfo williamr@2: with an invalid class type. */ williamr@2: EPositionInvalidClassType = 8, williamr@2: /** Too many items specified in a TPositionSelectionOrder. */ williamr@2: EPositionSelectionOrderOverflow = 9, williamr@2: /** The class' size doesn't match the expected value. */ williamr@2: EPositionClassSizeMismatch = 10, williamr@2: /** An unsupported object of size greater than KPositionMaxSizeQualityTrait has been williamr@2: passed to a TPositionQualityBase as a field. */ williamr@2: EPositionQualityBadDataType = 11, williamr@2: /** A negative TTimeIntervalMicroSeconds was passed to a method. */ williamr@2: EPositionBadTime = 12, williamr@2: /** A negative value for accuracy was passed to a method. */ williamr@2: EPositionBadAccuracy = 13, williamr@2: /** A client has attempted to instantiate a HPositionGenricInfo with 0 Max Fields. */ williamr@2: EPositionGenericInfoZeroMaxFields = 14, williamr@2: /** A client has called an asynchronous request while it is still outstanding williamr@2: on that RPositionServer / RPositioner. */ williamr@2: EPositionDuplicateRequest = 15, williamr@2: /** A session or sub-session was closed with requests still outstanding. */ williamr@2: EPositionRequestsNotCancelled = 16, williamr@2: /** A NULL entry has been found in the requestor stack. */ williamr@2: EPositionNullRequestor = 17 williamr@2: }; williamr@2: williamr@2: williamr@2: /** williamr@2: Completion codes to give extended information about location fix. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KPositionQualityLoss = 1; williamr@2: williamr@2: /** williamr@2: Completion code for partial update. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KPositionPartialUpdate = 2; williamr@2: williamr@2: /** williamr@2: Completion code indicating that the request has returned early at the explicit request of the application. williamr@2: @see RPositionerSubSessionBase::CompleteRequest() williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KPositionEarlyComplete = 3; williamr@2: williamr@2: /** williamr@2: Status code indicating that a location data source has determined it will be unable to williamr@2: provide an update of the required quality. This is only reported by the data source williamr@2: module when it has reasoned that there is no point in continuing with the calculation. williamr@2: It is not reported when there are transient conditions that might prevent the module williamr@2: from obtaining the desired location information. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KPositionCalculationFutile = 4; williamr@2: williamr@2: williamr@2: /** williamr@2: Code indicating that the assistance data response asks for a reset of the assistance data, as williamr@2: shown by the data mask. williamr@2: williamr@4: @publishedAll williamr@4: @released williamr@2: */ williamr@2: const TInt KPositionAssistanceDataReset = 5; williamr@2: williamr@2: /** williamr@2: Lbs specific error codes. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: williamr@2: If __S60_ is defined in lbsvariant.h the constant is -30371 otherwise it is -17350 williamr@2: */ williamr@2: const TInt KPositionErrBase = __LBS_TDEFAULT_ERROR_BASE; williamr@2: williamr@2: /** williamr@2: BufferOverflow error williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KErrPositionBufferOverflow = KPositionErrBase; williamr@2: williamr@2: /** williamr@2: Position calculation error williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KErrPositionIncalculable = KPositionErrBase - 1; williamr@2: williamr@2: /** williamr@2: Network error williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KPositionNetworkErrorBase = -18301; williamr@2: williamr@2: /** williamr@2: Returned by the network, when it cannot perform an operation due to a failure in the network williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KErrPositionSystemFailure = KPositionNetworkErrorBase - 0; //-18301 williamr@2: williamr@2: /** williamr@2: Returned due to an protocol related error. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KErrPositionProtocolErr = KPositionNetworkErrorBase - 1; //-18302 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: Returned by the network when the network is unable williamr@2: (a) To obtain the requested location information or williamr@2: (b) The desired QoS could not be satisfied or williamr@2: (c) The requested LCS assistance data could not be delivered or williamr@2: (d) The requested deciphering keys for broadcast assistance data could not be returned. williamr@2: */ williamr@2: const TInt KErrPositionMethodFailure = KPositionNetworkErrorBase - 2; //-18303 williamr@2: williamr@2: /** williamr@2: Returned by the network receiving a request about a facility which is not supported in the PLMN. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KErrPositionFacilityNoSupport = KPositionNetworkErrorBase - 3; //-18304 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: Returned by the network when it is requested to perform an operation on a supplementary williamr@2: service that violated the subscription restrictions. williamr@2: The nature of the restriction or the transgressed options may be sent as parameters. williamr@2: */ williamr@2: const TInt KErrPositionNoService = KPositionNetworkErrorBase - 4; //-18305 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: Returned by the network when authorization failed for a informed LCSClientID. williamr@2: */ williamr@2: const TInt KErrPositionUnauthorizedLCSClient = KPositionNetworkErrorBase - 5; //-18306 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: Returned by the network when an informed LCSClient is not available. williamr@2: */ williamr@2: const TInt KErrPositionServiceNotSubscribed = KPositionNetworkErrorBase - 6; //-18307 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: Returned when a requests is cancelled due to receiving higher priority request. williamr@2: */ williamr@2: const TInt KErrPositionHighPriorityReceive = KPositionNetworkErrorBase - 7; //-18308 williamr@2: williamr@2: williamr@2: /** williamr@2: Indicates an error due to no network coverage. williamr@2: williamr@2: @publishedAll williamr@4: @released williamr@2: */ williamr@2: const TInt KErrPositionNetworkUnavailable = KPositionNetworkErrorBase - 8; //-18309 williamr@2: williamr@2: williamr@2: /** williamr@2: Data source errors williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KPositionDataSourceErrorBase = -18350; williamr@2: williamr@2: williamr@2: #endif //__LBSERRORS_H__