williamr@2: // Copyright (c) 2004-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: /** williamr@2: @file williamr@2: @publishedAll williamr@4: @released williamr@2: */ williamr@2: williamr@2: #ifndef PANERR_H williamr@2: #define PANERR_H williamr@2: williamr@4: #include williamr@4: williamr@2: /** williamr@2: PAN agent error codes williamr@2: @note -6551 to -6574 reserved for PAN profile implementation williamr@2: @note Bluetooth PAN profile error codes williamr@2: */ williamr@2: /*@{*/ williamr@2: const TInt KErrPanAgentBase = -6551; williamr@2: williamr@2: /** williamr@2: The role state machine did not select a valid pair of roles williamr@2: */ williamr@2: const TInt KErrLocalRoleNotSelected = KErrPanAgentBase; // -6551 williamr@2: williamr@2: /** williamr@2: Indicates that the roles selected require a baseband role switch williamr@2: */ williamr@2: const TInt KErrWaitingForBasebandRoleSwitch = KErrPanAgentBase - 1; // -6552 williamr@2: williamr@2: /** williamr@2: A PAN profile role (U, GN, NAP) has changed from the requested value. williamr@2: This may require renegotiation of roles, a disconnection of the device, or may just be part of williamr@2: normal operation (eg. selecting an actual role when EPanRoleUnknown was provided as an argument) williamr@2: */ williamr@2: const TInt KErrRoleChanged = KErrPanAgentBase - 2; // -6553 williamr@2: williamr@2: /** williamr@2: Could not set the Class of Device (CoD) when starting the PAN agent williamr@2: */ williamr@2: const TInt KErrCouldNotSetCoDDuringStartup = KErrPanAgentBase - 3; // -6554 williamr@2: williamr@2: /** williamr@2: The local device has requested a disconnect williamr@2: */ williamr@2: const TInt KErrLocallyInitiatedDisconnect = KErrPanAgentBase - 4; // -6555 williamr@2: williamr@2: /** williamr@2: The remote device sent an invalid destination service UUID williamr@2: */ williamr@2: const TInt KErrInvalidDestinationServiceUuid = KErrPanAgentBase - 5; // -6556 williamr@2: williamr@2: /** williamr@2: The remote device sent an invalid source service UUID williamr@2: */ williamr@2: const TInt KErrInvalidSourceServiceUuid = KErrPanAgentBase - 6; // -6557 williamr@2: williamr@2: /** williamr@2: Could not role switch to become piconet master williamr@2: */ williamr@2: const TInt KErrCouldNotBecomePiconetMaster = KErrPanAgentBase - 7; // -6558 williamr@2: williamr@2: /** williamr@2: The remote device sent us a invalid role combination, or requested roles that we cannot fulfil williamr@2: due to our current state williamr@2: */ williamr@2: const TInt KErrInvalidOrUnacceptableRoleCombination = KErrPanAgentBase - 8; // -6559 williamr@2: williamr@2: /** williamr@2: The remote device did not respond to our role request messages williamr@2: */ williamr@2: const TInt KErrRemoteDeviceFailedToRespondToRoleRequests = KErrPanAgentBase - 9; // -6560 williamr@2: williamr@2: /** williamr@2: The remote device sent us the wrong sort of packet (eg. a response when we expected a request) williamr@2: */ williamr@2: const TInt KErrDodgyResponseFromRemoteDevice = KErrPanAgentBase - 10; // -6561 williamr@2: williamr@2: /** williamr@2: No more devices are connected williamr@2: */ williamr@2: const TInt KErrAllDevicesDisconnected = KErrPanAgentBase - 11; // -6562 williamr@2: williamr@2: /** williamr@2: An attempt has been made to start a connection with incoming support only (despite the williamr@2: settings for outgoing connections in commdb), but the connection does not have incoming williamr@2: support enabled in commdb williamr@2: */ williamr@2: const TInt KErrListenForIncomingConnectionRequestedWithoutListeningSupport = KErrPanAgentBase - 12; // -6563 williamr@2: williamr@2: /** williamr@2: The settings in commdb have NAP set as the fixed local role williamr@2: */ williamr@2: const TInt KErrNapNotSupportedAsLocalRole = KErrPanAgentBase - 13; // -6564 williamr@2: williamr@2: /** williamr@2: The packet driver has not returned us the control handle, and therefore cannot be bnep.drv. williamr@2: NB : THIS ERROR CODE IS NOT USED williamr@2: */ williamr@2: const TInt KErrIncompatiblePacketDriver = KErrPanAgentBase - 14; // -6565 williamr@2: williamr@2: /** williamr@2: The specified Fixed Remote Role isn't supported by remote according to SDP query result. williamr@2: */ williamr@2: const TInt KErrFixRemoteRoleIsNotSupportedByRemote = KErrPanAgentBase - 15; // -6566 williamr@2: williamr@2: /*@}*/ williamr@2: williamr@2: #endif // PANERR_H