eventsui/eventshandlerui/eventshandlerserver/inc/evteventinfo.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2008 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:  event Info Struct
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_EVTEVENTINFO_H
       
    20 #define C_EVTEVENTINFO_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "evtdefs.h"
       
    25 
       
    26 /**
       
    27 *  Event Strucutre to Que.
       
    28 *
       
    29 *  @since Series 60 9.2
       
    30 */
       
    31 class TEvtEventInfo
       
    32     { 
       
    33     public :        
       
    34 		/**
       
    35         * Copy constructor
       
    36         */
       
    37         TEvtEventInfo(TEvtEventId aId, TEvtFireAccuracy aAcc, TBool aPlayTone, TBool aSnooze)
       
    38 	        {
       
    39 	        iEventId = aId;
       
    40 	        iAccuracy = aAcc;
       
    41 	        iPlayTone = aPlayTone;
       
    42 	        iSnooze = aSnooze;
       
    43 	        };
       
    44 			
       
    45 		/**
       
    46         * inline function used for comparision
       
    47         */
       
    48         static inline TInt Match(const TEvtEventInfo& aFirst, const TEvtEventInfo& aSecond)
       
    49             {
       
    50             if (aFirst.iEventId == aSecond.iEventId)
       
    51                 return 1;
       
    52             return 0;
       
    53             };
       
    54 			
       
    55     public :
       
    56 		// Event's Information like Event Id, Accuracy, Playtone and Snooze
       
    57     	TEvtEventId iEventId;
       
    58     	TEvtFireAccuracy iAccuracy;
       
    59     	TBool iPlayTone;
       
    60     	TBool iSnooze;
       
    61  };
       
    62 
       
    63 #endif //C_EVTEVENTINFO_H
       
    64 
       
    65 // End of File