presadap12/impsplugin/inc/impspluginpanics.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:31:13 +0100
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201010 Kit: 201035

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  imps adapter plugin panics
*
*/

#ifndef __IMPSPLUGINPANICS_H__
#define __IMPSPLUGINPANICS_H__

//  INCLUDES
#include    <e32std.h>
#include    <ImpsServices.h>



// CONSTANTS
/**
* IMPS Adaptation Library panic category.
*/
_LIT( KImpsPluginPanic, "ImpsPlugin1.2" );

/**
* IMPS Adaptation Library Auth interface
*/

_LIT( KImpsProtocolPresenceAuthorization, "CImpsProtocolPresenceAuthorization" );

/**
* IMPS Adaptation Library Publishing interface
*/

_LIT( KImpsProtocolPresencePublishing, "CImpsProtocolPresencePublishing" );

/**
* Presence Engine Transfer adapter Library panic category.
*/

_LIT( KImpsProtocolPresenceWatching, "CImpsProtocolPresenceWatching" );

/**
* Presence Engine Transfer adapter Library panic category.
*/

_LIT( KImpsProtocolPresentityGroups, "CImpsProtocolPresentityGroups" );

/**
* IMPS adapter plugin library panic reasons.
*
* Following panic reasons are used in
* imps adapter plugin library panics.
*
* @since 3.0
*/
enum TImpsAdapterPluginPanics
    {
    ESesionConsistencyLost                      = 1,
    EOpIdConsistencyLost                        = 2,
    ENoActiveOperations                         = 3,
    EUnknownUnumeration                         = 4,
    EReferenceCountUnderflow                    = 5,
    EIlegalSingletonDeletion                    = 6,
    EAccessHandlerObserversUnregistered         = 7,
    EUnknowPureData                             = 8,
    EListenerAlreadyActive                      = 9,
    ELogInDataNotValid                          = 10

    };


/**
 *  Check Consistency of the Session ids
 *  Panics for Debug version if inconsistent
 *
 *  @since 3.0
 *  @param aSessionId PEC engine session Id
 *  @param aCspId WV Engine session Id
 */
/* inline void CheckConsistency(
                                const CPEngSessionSlotId& aSessionId,
                                TImpsCspIdentifier& aCspId )
    {
    // panic if we get other session notification
    __ASSERT_DEBUG(
            ( aCspId.UserId().CompareF( aSessionId.UserId()) == KErrNone ),
            User::Panic( KPEngTransferAdapterPanic, ESesionConsistencyLost ) );
    __ASSERT_DEBUG(
            ( aCspId.Sap().CompareF( aSessionId.ServiceAddress() ) == KErrNone ),
            User::Panic( KPEngTransferAdapterPanic, ESesionConsistencyLost ) );

	(void) aSessionId; // Prevent compilation warning about unused variable
	(void) aCspId; // Prevent compilation warning about unused variable
    } */

#endif  //__PENGTRANSADAPTERPANICS_H__

//  End of File