epoc32/include/panerr.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/panerr.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,122 @@
     1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @publishedAll
    1.24 +*/
    1.25 +
    1.26 +#ifndef PANERR_H
    1.27 +#define PANERR_H
    1.28 +
    1.29 +/**
    1.30 +PAN agent error codes
    1.31 +@note -6551 to -6574 reserved for PAN profile implementation
    1.32 +@note Bluetooth PAN profile error codes
    1.33 +*/
    1.34 +/*@{*/
    1.35 +const TInt KErrPanAgentBase = -6551;
    1.36 +
    1.37 +/**
    1.38 +The role state machine did not select a valid pair of roles
    1.39 +*/
    1.40 +const TInt KErrLocalRoleNotSelected = KErrPanAgentBase;					// -6551
    1.41 +
    1.42 +/**
    1.43 +Indicates that the roles selected require a baseband role switch
    1.44 +*/
    1.45 +const TInt KErrWaitingForBasebandRoleSwitch = KErrPanAgentBase - 1; 	// -6552
    1.46 +
    1.47 +/**
    1.48 +A PAN profile role (U, GN, NAP) has changed from the requested value.
    1.49 +This may require renegotiation of roles, a disconnection of the device, or may just be part of 
    1.50 +normal operation (eg. selecting an actual role when EPanRoleUnknown was provided as an argument)
    1.51 +*/
    1.52 +const TInt KErrRoleChanged = KErrPanAgentBase - 2;						// -6553
    1.53 +
    1.54 +/**
    1.55 +Could not set the Class of Device (CoD) when starting the PAN agent
    1.56 +*/
    1.57 +const TInt KErrCouldNotSetCoDDuringStartup = KErrPanAgentBase - 3; 		// -6554
    1.58 +
    1.59 +/**
    1.60 +The local device has requested a disconnect
    1.61 +*/
    1.62 +const TInt KErrLocallyInitiatedDisconnect = KErrPanAgentBase - 4;		// -6555
    1.63 +
    1.64 +/**
    1.65 +The remote device sent an invalid destination service UUID
    1.66 +*/
    1.67 +const TInt KErrInvalidDestinationServiceUuid = KErrPanAgentBase - 5;	// -6556
    1.68 +
    1.69 +/**
    1.70 +The remote device sent an invalid source service UUID
    1.71 +*/
    1.72 +const TInt KErrInvalidSourceServiceUuid = KErrPanAgentBase - 6;			// -6557
    1.73 +
    1.74 +/**
    1.75 +Could not role switch to become piconet master
    1.76 +*/
    1.77 +const TInt KErrCouldNotBecomePiconetMaster = KErrPanAgentBase - 7;		// -6558
    1.78 +
    1.79 +/**
    1.80 +The remote device sent us a invalid role combination, or requested roles that we cannot fulfil
    1.81 +due to our current state
    1.82 +*/
    1.83 +const TInt KErrInvalidOrUnacceptableRoleCombination = KErrPanAgentBase - 8; // -6559
    1.84 +
    1.85 +/**
    1.86 +The remote device did not respond to our role request messages
    1.87 +*/
    1.88 +const TInt KErrRemoteDeviceFailedToRespondToRoleRequests = KErrPanAgentBase - 9;	// -6560
    1.89 +
    1.90 +/**
    1.91 +The remote device sent us the wrong sort of packet (eg. a response when we expected a request)
    1.92 +*/
    1.93 +const TInt KErrDodgyResponseFromRemoteDevice = KErrPanAgentBase - 10;	// -6561
    1.94 +
    1.95 +/**
    1.96 +No more devices are connected
    1.97 +*/
    1.98 +const TInt KErrAllDevicesDisconnected = KErrPanAgentBase - 11;			// -6562
    1.99 +
   1.100 +/**
   1.101 +An attempt has been made to start a connection with incoming support only (despite the 
   1.102 +settings for outgoing connections in commdb), but the connection does not have incoming
   1.103 +support enabled in commdb
   1.104 +*/
   1.105 +const TInt KErrListenForIncomingConnectionRequestedWithoutListeningSupport = KErrPanAgentBase - 12; // -6563
   1.106 +
   1.107 +/** 
   1.108 +The settings in commdb have NAP set as the fixed local role
   1.109 +*/
   1.110 +const TInt KErrNapNotSupportedAsLocalRole = KErrPanAgentBase - 13; 		// -6564
   1.111 +
   1.112 +/**
   1.113 +The packet driver has not returned us the control handle, and therefore cannot be bnep.drv.
   1.114 +NB : THIS ERROR CODE IS NOT USED
   1.115 +*/
   1.116 +const TInt KErrIncompatiblePacketDriver = KErrPanAgentBase - 14;		// -6565
   1.117 +
   1.118 +/**
   1.119 +The specified Fixed Remote Role isn't supported by remote according to SDP query result.
   1.120 +*/
   1.121 +const TInt KErrFixRemoteRoleIsNotSupportedByRemote = KErrPanAgentBase - 15;		// -6566
   1.122 +
   1.123 +/*@}*/
   1.124 +
   1.125 +#endif // PANERR_H