00001 /* 00002 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). 00003 * All rights reserved. 00004 * This component and the accompanying materials are made available 00005 * under the terms of "Eclipse Public License v1.0" 00006 * which accompanies this distribution, and is available 00007 * at the URL "http://www.eclipse.org/legal/epl-v10.html". 00008 * 00009 * Initial Contributors: 00010 * Nokia Corporation - initial contribution. 00011 * 00012 * Contributors: 00013 * 00014 * Description: 00015 * 00016 */ 00017 00018 #ifndef __LBSMOVEMENTEVENT_H__ 00019 #define __LBSMOVEMENTEVENT_H__ 00020 00021 #include <e32base.h> 00022 #include <lbslocatorclasstypes.h> 00023 00046 class TLbsMovementEvent : public TLbsLocatorClassTypeBase 00047 { 00048 public: 00053 enum TLbsMovementEventType 00054 { 00055 EMovementEventUnknown = 0, 00056 EMovementEventStationary = 1, 00057 EMovementEventMoving = 2, 00058 EMovementEventWalking = 4, 00059 EMovementEventLastBit = 1 << 31 00060 }; 00061 00062 IMPORT_C TLbsMovementEvent(); 00063 00064 IMPORT_C TLbsMovementEventType MovementEvent() const; 00065 IMPORT_C TTime SystemTimeStamp() const; 00066 00067 IMPORT_C void SetMovementEvent(TLbsMovementEventType aEvent); 00068 IMPORT_C TInt SetSystemTimeStamp(TTime aTimeStamp); 00069 00070 private: 00071 TLbsMovementEventType iEvent; 00072 TTime iSystemTimeStamp; 00073 TInt iReserved[24]; 00074 }; 00075 00076 00077 #endif //__LBSMOVEMENTEVENT_H__