epoc32/include/lbserrors.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of "Eclipse Public License v1.0"
williamr@2
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
//
williamr@2
    15
williamr@2
    16
#ifndef __LBSERRORS_H__
williamr@2
    17
#define __LBSERRORS_H__
williamr@2
    18
williamr@2
    19
#include <e32def.h>
williamr@4
    20
#include <lbsvariant.h>
williamr@2
    21
williamr@2
    22
/**
williamr@2
    23
LBS Panic string
williamr@2
    24
williamr@2
    25
@publishedAll
williamr@2
    26
@released
williamr@2
    27
 */
williamr@2
    28
_LIT(KPosClientFault,"Lbs Client Fault");
williamr@2
    29
williamr@2
    30
/**
williamr@2
    31
Position Client API panic codes
williamr@2
    32
williamr@2
    33
@publishedAll
williamr@2
    34
@released
williamr@2
    35
 */
williamr@2
    36
enum TPositionClientPanic
williamr@2
    37
	{
williamr@2
    38
	/** HPGI datatype mismatch */
williamr@2
    39
	EPositionGenericInfoMismatchDataType		= 0,
williamr@2
    40
	/** CRequestor constructed with a null descriptor */
williamr@2
    41
	EPositionRequestorConstructorGivenNullData	= 1,
williamr@2
    42
	/** HPGI zero-byte buffer */
williamr@2
    43
	EPositionGenericInfoZeroBufferSize			= 2,
williamr@2
    44
	/** A unknown IPC request has been made on the server. */
williamr@2
    45
	EPositionBadRequest							= 3,
williamr@2
    46
	/** A bad descriptor has been given to the server by the client. */
williamr@2
    47
	EPositionBadDescriptor						= 4,
williamr@2
    48
	/** An attempt has been made to connect using an already open handle. */
williamr@2
    49
	EPositionServerHandleNotClosed				= 5,
williamr@2
    50
	/** An attempt has been made to communicate though a non connected handle. */
williamr@2
    51
	EPositionServerBadHandle					= 6,
williamr@2
    52
	/** A client has tried to use a RPositioner/RPositionServer handle that hasn't
williamr@2
    53
	    been properly initialised. */
williamr@2
    54
	EPositionNullPointerHolder					= 7,
williamr@2
    55
	/** A client has asked for/set the supported classes in TPositionModuleInfo
williamr@2
    56
	    with an invalid class type. */
williamr@2
    57
	EPositionInvalidClassType					= 8,
williamr@2
    58
	/** Too many items specified in a TPositionSelectionOrder. */
williamr@2
    59
	EPositionSelectionOrderOverflow				= 9,
williamr@2
    60
	/** The class' size doesn't match the expected value. */
williamr@2
    61
	EPositionClassSizeMismatch					= 10,
williamr@2
    62
	/** An unsupported object of size greater than KPositionMaxSizeQualityTrait has been
williamr@2
    63
	passed to a TPositionQualityBase as a field. */
williamr@2
    64
	EPositionQualityBadDataType					= 11,
williamr@2
    65
	/** A negative TTimeIntervalMicroSeconds was passed to a method. */
williamr@2
    66
	EPositionBadTime                            = 12,
williamr@2
    67
	/** A negative value for accuracy was passed to a method. */
williamr@2
    68
	EPositionBadAccuracy                        = 13,
williamr@2
    69
	/** A client has attempted to instantiate a HPositionGenricInfo with 0 Max Fields. */
williamr@2
    70
	EPositionGenericInfoZeroMaxFields			= 14,
williamr@2
    71
	/** A client has called an asynchronous request while it is still outstanding
williamr@2
    72
	on that RPositionServer / RPositioner. */
williamr@2
    73
	EPositionDuplicateRequest                   = 15,
williamr@2
    74
	/** A session or sub-session was closed with requests still outstanding. */
williamr@2
    75
	EPositionRequestsNotCancelled               = 16,
williamr@2
    76
	/** A NULL entry has been found in the requestor stack. */
williamr@2
    77
	EPositionNullRequestor	                    = 17
williamr@2
    78
	};
williamr@2
    79
williamr@2
    80
williamr@2
    81
/**
williamr@2
    82
Completion codes to give extended information about location fix.
williamr@2
    83
williamr@2
    84
@publishedAll
williamr@2
    85
@released
williamr@2
    86
 */
williamr@2
    87
const TInt KPositionQualityLoss = 1;
williamr@2
    88
williamr@2
    89
/**
williamr@2
    90
Completion code for partial update.
williamr@2
    91
williamr@2
    92
@publishedAll
williamr@2
    93
@released
williamr@2
    94
 */
williamr@2
    95
const TInt KPositionPartialUpdate = 2;
williamr@2
    96
williamr@2
    97
/**
williamr@2
    98
Completion code indicating that the request has returned early at the explicit request of the application.
williamr@2
    99
@see RPositionerSubSessionBase::CompleteRequest()
williamr@2
   100
williamr@2
   101
@publishedAll
williamr@2
   102
@released
williamr@2
   103
 */
williamr@2
   104
const TInt KPositionEarlyComplete = 3;
williamr@2
   105
williamr@2
   106
/**
williamr@2
   107
Status code indicating that a location data source has determined it will be unable to
williamr@2
   108
provide an update of the required quality. This is only reported by the data source 
williamr@2
   109
module when it has reasoned that there is no point in continuing with the calculation.
williamr@2
   110
It is not reported when there are transient conditions that might prevent the module
williamr@2
   111
from obtaining the desired location information.
williamr@2
   112
williamr@2
   113
@publishedAll
williamr@2
   114
@released
williamr@2
   115
 */
williamr@2
   116
const TInt KPositionCalculationFutile = 4;
williamr@2
   117
williamr@2
   118
williamr@2
   119
/**
williamr@2
   120
Code indicating that the assistance data response asks for a reset of the assistance data, as 
williamr@2
   121
shown by the data mask.
williamr@2
   122
williamr@4
   123
@publishedAll
williamr@4
   124
@released
williamr@2
   125
 */
williamr@2
   126
const TInt KPositionAssistanceDataReset = 5;
williamr@2
   127
williamr@2
   128
/**
williamr@2
   129
Lbs specific error codes.
williamr@2
   130
williamr@2
   131
@publishedAll
williamr@2
   132
@released
williamr@2
   133
williamr@2
   134
If __S60_ is defined in lbsvariant.h the constant is -30371 otherwise it is -17350
williamr@2
   135
 */
williamr@2
   136
const TInt KPositionErrBase = __LBS_TDEFAULT_ERROR_BASE;
williamr@2
   137
williamr@2
   138
/**
williamr@2
   139
BufferOverflow error
williamr@2
   140
williamr@2
   141
@publishedAll
williamr@2
   142
@released
williamr@2
   143
 */
williamr@2
   144
const TInt KErrPositionBufferOverflow = KPositionErrBase;
williamr@2
   145
williamr@2
   146
/**
williamr@2
   147
Position  calculation error
williamr@2
   148
williamr@2
   149
@publishedAll
williamr@2
   150
@released
williamr@2
   151
 */
williamr@2
   152
const TInt KErrPositionIncalculable = KPositionErrBase - 1;
williamr@2
   153
williamr@2
   154
/**
williamr@2
   155
Network error
williamr@2
   156
williamr@2
   157
@publishedAll
williamr@2
   158
@released
williamr@2
   159
 */
williamr@2
   160
const TInt KPositionNetworkErrorBase = -18301;
williamr@2
   161
williamr@2
   162
/**
williamr@2
   163
Returned by the network, when it cannot perform an operation due to a failure in the network
williamr@2
   164
williamr@2
   165
@publishedAll
williamr@2
   166
@released
williamr@2
   167
 */
williamr@2
   168
const TInt KErrPositionSystemFailure				= KPositionNetworkErrorBase - 0; //-18301
williamr@2
   169
williamr@2
   170
/**
williamr@2
   171
Returned due to an protocol related error.
williamr@2
   172
williamr@2
   173
@publishedAll
williamr@2
   174
@released
williamr@2
   175
 */
williamr@2
   176
const TInt KErrPositionProtocolErr					= KPositionNetworkErrorBase - 1; //-18302
williamr@2
   177
williamr@2
   178
/**
williamr@2
   179
@publishedAll
williamr@2
   180
@released
williamr@2
   181
Returned by the network when the network is unable
williamr@2
   182
(a) To obtain the requested location information or
williamr@2
   183
(b) The desired QoS could not be satisfied or
williamr@2
   184
(c) The requested LCS assistance data could not be delivered or
williamr@2
   185
(d) The requested deciphering keys for broadcast assistance data could not be returned.
williamr@2
   186
 */
williamr@2
   187
const TInt KErrPositionMethodFailure				= KPositionNetworkErrorBase - 2; //-18303
williamr@2
   188
williamr@2
   189
/**
williamr@2
   190
Returned by the network receiving a request about a facility which is not supported in the PLMN.
williamr@2
   191
williamr@2
   192
@publishedAll
williamr@2
   193
@released
williamr@2
   194
*/
williamr@2
   195
const TInt KErrPositionFacilityNoSupport			= KPositionNetworkErrorBase - 3; //-18304
williamr@2
   196
williamr@2
   197
/**
williamr@2
   198
@publishedAll
williamr@2
   199
@released
williamr@2
   200
Returned by the network when it is requested to perform an operation on a supplementary
williamr@2
   201
service that violated the subscription restrictions.
williamr@2
   202
The nature of the restriction or the transgressed options may be sent as parameters.
williamr@2
   203
 */
williamr@2
   204
const TInt KErrPositionNoService						= KPositionNetworkErrorBase - 4; //-18305
williamr@2
   205
williamr@2
   206
/**
williamr@2
   207
@publishedAll
williamr@2
   208
@released
williamr@2
   209
Returned by the network when authorization failed for a informed LCSClientID. 
williamr@2
   210
 */
williamr@2
   211
const TInt KErrPositionUnauthorizedLCSClient		= KPositionNetworkErrorBase - 5; //-18306
williamr@2
   212
williamr@2
   213
/**
williamr@2
   214
@publishedAll
williamr@2
   215
@released
williamr@2
   216
Returned by the network when an informed LCSClient is not available.
williamr@2
   217
 */
williamr@2
   218
const TInt KErrPositionServiceNotSubscribed		= KPositionNetworkErrorBase - 6; //-18307
williamr@2
   219
williamr@2
   220
/**
williamr@2
   221
@publishedAll
williamr@2
   222
@released
williamr@2
   223
Returned when a requests is cancelled due to receiving higher priority request.
williamr@2
   224
 */
williamr@2
   225
const TInt KErrPositionHighPriorityReceive		= KPositionNetworkErrorBase - 7; //-18308
williamr@2
   226
williamr@2
   227
williamr@2
   228
/**
williamr@2
   229
Indicates an error due to no network coverage.
williamr@2
   230
williamr@2
   231
@publishedAll
williamr@4
   232
@released
williamr@2
   233
 */
williamr@2
   234
const TInt KErrPositionNetworkUnavailable					= KPositionNetworkErrorBase - 8; //-18309
williamr@2
   235
williamr@2
   236
williamr@2
   237
/**
williamr@2
   238
Data source errors
williamr@2
   239
williamr@2
   240
@publishedAll
williamr@2
   241
@released
williamr@2
   242
 */
williamr@2
   243
const TInt KPositionDataSourceErrorBase = -18350;
williamr@2
   244
williamr@2
   245
williamr@2
   246
#endif //__LBSERRORS_H__