diff -r 000000000000 -r 522cd55cc3d7 eventsui/eventshandlerui/eventshandlerserver/inc/evteventinfo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eventsui/eventshandlerui/eventshandlerserver/inc/evteventinfo.h Tue Feb 02 00:16:03 2010 +0200 @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2008 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: event Info Struct +* +*/ + + +#ifndef C_EVTEVENTINFO_H +#define C_EVTEVENTINFO_H + +#include + +#include "evtdefs.h" + +/** +* Event Strucutre to Que. +* +* @since Series 60 9.2 +*/ +class TEvtEventInfo + { + public : + /** + * Copy constructor + */ + TEvtEventInfo(TEvtEventId aId, TEvtFireAccuracy aAcc, TBool aPlayTone, TBool aSnooze) + { + iEventId = aId; + iAccuracy = aAcc; + iPlayTone = aPlayTone; + iSnooze = aSnooze; + }; + + /** + * inline function used for comparision + */ + static inline TInt Match(const TEvtEventInfo& aFirst, const TEvtEventInfo& aSecond) + { + if (aFirst.iEventId == aSecond.iEventId) + return 1; + return 0; + }; + + public : + // Event's Information like Event Id, Accuracy, Playtone and Snooze + TEvtEventId iEventId; + TEvtFireAccuracy iAccuracy; + TBool iPlayTone; + TBool iSnooze; + }; + +#endif //C_EVTEVENTINFO_H + +// End of File