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