commonappservices/alarmserver/Server/Source/ASSrvIteratorByWakeup.cpp
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2008-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 #include "ASSrvIteratorByWakeup.h"
       
    17 
       
    18 RASSrvIteratorByWakeup::RASSrvIteratorByWakeup(CASSrvAlarmQueue& aQueue)
       
    19 	:RASSrvIteratorBase(aQueue)
       
    20 	{
       
    21 	}
       
    22 
       
    23 /**
       
    24  * @see RASSrvIteratorBase
       
    25  */
       
    26 TBool RASSrvIteratorByWakeup::Matches(const TASSrvAlarm& aAlarm) const
       
    27 	{
       
    28 	// Check with other iterator - returns ETrue if there is no attached
       
    29 	// iterator to check with.
       
    30 	TBool matches = RASSrvIteratorBase::Matches(aAlarm);
       
    31 
       
    32 	// Now check this iterator
       
    33 	if (matches)
       
    34 		{
       
    35 		matches = aAlarm.IsWakeup();
       
    36 		}
       
    37 	
       
    38 	return matches;
       
    39 	}