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