author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
// Copyright (c) 2004-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 |
/** |
williamr@2 | 17 |
@file |
williamr@2 | 18 |
@publishedAll |
williamr@4 | 19 |
@released |
williamr@2 | 20 |
*/ |
williamr@2 | 21 |
|
williamr@2 | 22 |
#ifndef PANERR_H |
williamr@2 | 23 |
#define PANERR_H |
williamr@2 | 24 |
|
williamr@4 | 25 |
#include <e32base.h> |
williamr@4 | 26 |
|
williamr@2 | 27 |
/** |
williamr@2 | 28 |
PAN agent error codes |
williamr@2 | 29 |
@note -6551 to -6574 reserved for PAN profile implementation |
williamr@2 | 30 |
@note Bluetooth PAN profile error codes |
williamr@2 | 31 |
*/ |
williamr@2 | 32 |
/*@{*/ |
williamr@2 | 33 |
const TInt KErrPanAgentBase = -6551; |
williamr@2 | 34 |
|
williamr@2 | 35 |
/** |
williamr@2 | 36 |
The role state machine did not select a valid pair of roles |
williamr@2 | 37 |
*/ |
williamr@2 | 38 |
const TInt KErrLocalRoleNotSelected = KErrPanAgentBase; // -6551 |
williamr@2 | 39 |
|
williamr@2 | 40 |
/** |
williamr@2 | 41 |
Indicates that the roles selected require a baseband role switch |
williamr@2 | 42 |
*/ |
williamr@2 | 43 |
const TInt KErrWaitingForBasebandRoleSwitch = KErrPanAgentBase - 1; // -6552 |
williamr@2 | 44 |
|
williamr@2 | 45 |
/** |
williamr@2 | 46 |
A PAN profile role (U, GN, NAP) has changed from the requested value. |
williamr@2 | 47 |
This may require renegotiation of roles, a disconnection of the device, or may just be part of |
williamr@2 | 48 |
normal operation (eg. selecting an actual role when EPanRoleUnknown was provided as an argument) |
williamr@2 | 49 |
*/ |
williamr@2 | 50 |
const TInt KErrRoleChanged = KErrPanAgentBase - 2; // -6553 |
williamr@2 | 51 |
|
williamr@2 | 52 |
/** |
williamr@2 | 53 |
Could not set the Class of Device (CoD) when starting the PAN agent |
williamr@2 | 54 |
*/ |
williamr@2 | 55 |
const TInt KErrCouldNotSetCoDDuringStartup = KErrPanAgentBase - 3; // -6554 |
williamr@2 | 56 |
|
williamr@2 | 57 |
/** |
williamr@2 | 58 |
The local device has requested a disconnect |
williamr@2 | 59 |
*/ |
williamr@2 | 60 |
const TInt KErrLocallyInitiatedDisconnect = KErrPanAgentBase - 4; // -6555 |
williamr@2 | 61 |
|
williamr@2 | 62 |
/** |
williamr@2 | 63 |
The remote device sent an invalid destination service UUID |
williamr@2 | 64 |
*/ |
williamr@2 | 65 |
const TInt KErrInvalidDestinationServiceUuid = KErrPanAgentBase - 5; // -6556 |
williamr@2 | 66 |
|
williamr@2 | 67 |
/** |
williamr@2 | 68 |
The remote device sent an invalid source service UUID |
williamr@2 | 69 |
*/ |
williamr@2 | 70 |
const TInt KErrInvalidSourceServiceUuid = KErrPanAgentBase - 6; // -6557 |
williamr@2 | 71 |
|
williamr@2 | 72 |
/** |
williamr@2 | 73 |
Could not role switch to become piconet master |
williamr@2 | 74 |
*/ |
williamr@2 | 75 |
const TInt KErrCouldNotBecomePiconetMaster = KErrPanAgentBase - 7; // -6558 |
williamr@2 | 76 |
|
williamr@2 | 77 |
/** |
williamr@2 | 78 |
The remote device sent us a invalid role combination, or requested roles that we cannot fulfil |
williamr@2 | 79 |
due to our current state |
williamr@2 | 80 |
*/ |
williamr@2 | 81 |
const TInt KErrInvalidOrUnacceptableRoleCombination = KErrPanAgentBase - 8; // -6559 |
williamr@2 | 82 |
|
williamr@2 | 83 |
/** |
williamr@2 | 84 |
The remote device did not respond to our role request messages |
williamr@2 | 85 |
*/ |
williamr@2 | 86 |
const TInt KErrRemoteDeviceFailedToRespondToRoleRequests = KErrPanAgentBase - 9; // -6560 |
williamr@2 | 87 |
|
williamr@2 | 88 |
/** |
williamr@2 | 89 |
The remote device sent us the wrong sort of packet (eg. a response when we expected a request) |
williamr@2 | 90 |
*/ |
williamr@2 | 91 |
const TInt KErrDodgyResponseFromRemoteDevice = KErrPanAgentBase - 10; // -6561 |
williamr@2 | 92 |
|
williamr@2 | 93 |
/** |
williamr@2 | 94 |
No more devices are connected |
williamr@2 | 95 |
*/ |
williamr@2 | 96 |
const TInt KErrAllDevicesDisconnected = KErrPanAgentBase - 11; // -6562 |
williamr@2 | 97 |
|
williamr@2 | 98 |
/** |
williamr@2 | 99 |
An attempt has been made to start a connection with incoming support only (despite the |
williamr@2 | 100 |
settings for outgoing connections in commdb), but the connection does not have incoming |
williamr@2 | 101 |
support enabled in commdb |
williamr@2 | 102 |
*/ |
williamr@2 | 103 |
const TInt KErrListenForIncomingConnectionRequestedWithoutListeningSupport = KErrPanAgentBase - 12; // -6563 |
williamr@2 | 104 |
|
williamr@2 | 105 |
/** |
williamr@2 | 106 |
The settings in commdb have NAP set as the fixed local role |
williamr@2 | 107 |
*/ |
williamr@2 | 108 |
const TInt KErrNapNotSupportedAsLocalRole = KErrPanAgentBase - 13; // -6564 |
williamr@2 | 109 |
|
williamr@2 | 110 |
/** |
williamr@2 | 111 |
The packet driver has not returned us the control handle, and therefore cannot be bnep.drv. |
williamr@2 | 112 |
NB : THIS ERROR CODE IS NOT USED |
williamr@2 | 113 |
*/ |
williamr@2 | 114 |
const TInt KErrIncompatiblePacketDriver = KErrPanAgentBase - 14; // -6565 |
williamr@2 | 115 |
|
williamr@2 | 116 |
/** |
williamr@2 | 117 |
The specified Fixed Remote Role isn't supported by remote according to SDP query result. |
williamr@2 | 118 |
*/ |
williamr@2 | 119 |
const TInt KErrFixRemoteRoleIsNotSupportedByRemote = KErrPanAgentBase - 15; // -6566 |
williamr@2 | 120 |
|
williamr@2 | 121 |
/*@}*/ |
williamr@2 | 122 |
|
williamr@2 | 123 |
#endif // PANERR_H |