calendarui/controller/inc/calenhashfunctions.inl
changeset 0 f979ecb2b13e
child 18 c198609911f9
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2007 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:   Calendar controller
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CALENHASHFUNCTIONS_INL_
       
    20 #define CALENHASHFUNCTIONS_INL_
       
    21 
       
    22 #include <calennotificationhandler.h>   // TCalenNotification
       
    23 
       
    24 // ----------------------------------------------------------------------------
       
    25 // Global function HashCalenNotificationFunction
       
    26 // The hash function used to hash the objects of type T. 
       
    27 // ----------------------------------------------------------------------------
       
    28 //
       
    29 inline  TUint32 HashCalenNotificationFunction(const TCalenNotification& aNotification)
       
    30     {
       
    31     return aNotification;
       
    32     }
       
    33 
       
    34 // ----------------------------------------------------------------------------
       
    35 // Global function HashCalenNotificationIdentityRelation
       
    36 // The identity relation used to determine if two objects of type T should be considered identical. 
       
    37 // ----------------------------------------------------------------------------
       
    38 //
       
    39 inline  TBool HashCalenNotificationIdentityRelation(const TCalenNotification& aNotification1,
       
    40                                                             const TCalenNotification& aNotification2)
       
    41     {
       
    42     return (aNotification1 == aNotification2);
       
    43     }
       
    44 
       
    45 #endif /*CALENFUNCTIONS_INL_*/
       
    46