sensorservices/tiltcompensationssy/inc/tcevent.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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:  TTCEventData class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TCSEVENT_H
       
    21 #define TCSEVENT_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // DATA TYPES
       
    29 
       
    30 /**
       
    31 * Tilt SSY events.
       
    32 */
       
    33 enum TTCEventId
       
    34     {
       
    35     EEventIdNull,
       
    36     EEventIdHandleOpenChannel,
       
    37     EEventIdHandleCloseChannel,
       
    38     EEventIdHandleStartChannelData,
       
    39     EEventIdHandleStopChannelData,
       
    40     EEventIdHandleForceBufferFull,
       
    41     EEventIdHandleAccelerometer,
       
    42     EEventIdHandleMagnetometer,
       
    43     EEventIdHandlePropertyChanged,
       
    44     EEventIdHandleTimerExpriredSend,
       
    45     EEventIdLast
       
    46     };
       
    47     
       
    48 // CLASS DECLARATION
       
    49 
       
    50 /**
       
    51 *  Event base class.
       
    52 *
       
    53 *  @lib None
       
    54 *  @since S60 5.0
       
    55 */
       
    56 NONSHARABLE_CLASS( TTCEvent )
       
    57     {
       
    58     public:
       
    59     
       
    60     public:
       
    61     
       
    62         /**
       
    63         * Returns event ID.
       
    64         * 
       
    65         * @return TTCEventId
       
    66         */
       
    67         TTCEventId Id() const;
       
    68             
       
    69     protected:
       
    70     
       
    71         /**
       
    72         * Default C++ constructor.
       
    73         *
       
    74         * @param aId
       
    75         */
       
    76         TTCEvent( TTCEventId aId );
       
    77         
       
    78     private: // Data
       
    79     
       
    80         /** Event ID */
       
    81         TTCEventId iId;
       
    82     };
       
    83 
       
    84 #endif // TCSEVENT_H
       
    85 
       
    86 // End of File