simpledatamodeladapter/src/presencepluginutility.cpp
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     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:  IETF SIMPLE Protocol implementation for XIMP Framework
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <ximpidentity.h>
       
    20 #include "presencepluginutility.h"
       
    21 #include "presencelogger.h"
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // TPresencePluginUtility::ResetAndDestroyIdentities
       
    25 // (other items were commented in a header).
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 void TPresencePluginUtility::ResetAndDestroyIdentities( TAny* anArray )
       
    29 	{
       
    30 	DP_SDA("TPresencePluginUtility::ResetAndDestroyIdentities"); 	 
       
    31 	
       
    32     RPointerArray<MXIMPIdentity>* array = 
       
    33         reinterpret_cast<RPointerArray<MXIMPIdentity>*>( anArray );
       
    34         
       
    35     if ( array )
       
    36         {
       
    37         DP_SDA("  ->  reset and destroy array items"); 	 
       
    38         array->ResetAndDestroy();
       
    39         DP_SDA("  ->  close array"); 	 
       
    40         array->Close();
       
    41         }
       
    42 	DP_SDA("TPresencePluginUtility::ResetAndDestroyIdentities out"); 	 
       
    43 	}
       
    44     
       
    45 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    46 
       
    47 //  End of File