presadap12/impsplugin/inc/impspluginpanics.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  imps adapter plugin panics
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __IMPSPLUGINPANICS_H__
       
    19 #define __IMPSPLUGINPANICS_H__
       
    20 
       
    21 //  INCLUDES
       
    22 #include    <e32std.h>
       
    23 #include    <ImpsServices.h>
       
    24 
       
    25 
       
    26 
       
    27 // CONSTANTS
       
    28 /**
       
    29 * IMPS Adaptation Library panic category.
       
    30 */
       
    31 _LIT( KImpsPluginPanic, "ImpsPlugin1.2" );
       
    32 
       
    33 /**
       
    34 * IMPS Adaptation Library Auth interface
       
    35 */
       
    36 
       
    37 _LIT( KImpsProtocolPresenceAuthorization, "CImpsProtocolPresenceAuthorization" );
       
    38 
       
    39 /**
       
    40 * IMPS Adaptation Library Publishing interface
       
    41 */
       
    42 
       
    43 _LIT( KImpsProtocolPresencePublishing, "CImpsProtocolPresencePublishing" );
       
    44 
       
    45 /**
       
    46 * Presence Engine Transfer adapter Library panic category.
       
    47 */
       
    48 
       
    49 _LIT( KImpsProtocolPresenceWatching, "CImpsProtocolPresenceWatching" );
       
    50 
       
    51 /**
       
    52 * Presence Engine Transfer adapter Library panic category.
       
    53 */
       
    54 
       
    55 _LIT( KImpsProtocolPresentityGroups, "CImpsProtocolPresentityGroups" );
       
    56 
       
    57 /**
       
    58 * IMPS adapter plugin library panic reasons.
       
    59 *
       
    60 * Following panic reasons are used in
       
    61 * imps adapter plugin library panics.
       
    62 *
       
    63 * @since 3.0
       
    64 */
       
    65 enum TImpsAdapterPluginPanics
       
    66     {
       
    67     ESesionConsistencyLost                      = 1,
       
    68     EOpIdConsistencyLost                        = 2,
       
    69     ENoActiveOperations                         = 3,
       
    70     EUnknownUnumeration                         = 4,
       
    71     EReferenceCountUnderflow                    = 5,
       
    72     EIlegalSingletonDeletion                    = 6,
       
    73     EAccessHandlerObserversUnregistered         = 7,
       
    74     EUnknowPureData                             = 8,
       
    75     EListenerAlreadyActive                      = 9,
       
    76     ELogInDataNotValid                          = 10
       
    77 
       
    78     };
       
    79 
       
    80 
       
    81 /**
       
    82  *  Check Consistency of the Session ids
       
    83  *  Panics for Debug version if inconsistent
       
    84  *
       
    85  *  @since 3.0
       
    86  *  @param aSessionId PEC engine session Id
       
    87  *  @param aCspId WV Engine session Id
       
    88  */
       
    89 /* inline void CheckConsistency(
       
    90                                 const CPEngSessionSlotId& aSessionId,
       
    91                                 TImpsCspIdentifier& aCspId )
       
    92     {
       
    93     // panic if we get other session notification
       
    94     __ASSERT_DEBUG(
       
    95             ( aCspId.UserId().CompareF( aSessionId.UserId()) == KErrNone ),
       
    96             User::Panic( KPEngTransferAdapterPanic, ESesionConsistencyLost ) );
       
    97     __ASSERT_DEBUG(
       
    98             ( aCspId.Sap().CompareF( aSessionId.ServiceAddress() ) == KErrNone ),
       
    99             User::Panic( KPEngTransferAdapterPanic, ESesionConsistencyLost ) );
       
   100 
       
   101 	(void) aSessionId; // Prevent compilation warning about unused variable
       
   102 	(void) aCspId; // Prevent compilation warning about unused variable
       
   103     } */
       
   104 
       
   105 #endif  //__PENGTRANSADAPTERPANICS_H__
       
   106 
       
   107 //  End of File
       
   108