2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Data class for trigger change event.
19 #ifndef LBTTRIGGERCHANGEEVENT_H
20 #define LBTTRIGGERCHANGEEVENT_H
23 #include <lbtcommon.h>
26 * Specifies the type of trigger change event.
28 * If there is no adequate event type to describe the change,
29 * @p ELbtTriggerChangeEventMultiple will be used. This event type is also
30 * used for mass operations, e.g. delete several triggers, in order to bundle
31 * the events. In this case, multiple trigger items might have been changed.
33 * Note, no changing event is issued if only the distance from the trigger
34 * to the latest acquired location is changed.
38 enum TLbtTriggerChangeEventType
41 * An event related to changes to multiple triggers have occurred.
42 * This event is issued if more than one trigger has been added, modified
45 ELbtTriggerChangeEventMultiple = 1,
47 * A new trigger has been created.
49 ELbtTriggerChangeEventCreated = 2,
51 * A trigger has been deleted.
53 ELbtTriggerChangeEventDeleted = 3,
55 * One or more trigger entry's attributes have been updated,
56 * or the trigger's validity status is changed.
58 ELbtTriggerChangeEventUpdated = 4,
62 * Structure defines detailed information of a triggering change event.
66 struct TLbtTriggerChangeEvent
71 TLbtTriggerChangeEventType iEventType;
74 * ID of a trigger. The ID indicates that the event is associated with
75 * one trigger item. If the change is not associated with exactly one
76 * item, item ID will be set to @p KLbtNullTriggerId.
77 * For instance in the case of @p ELbtTriggerChangeEventMultiple event.
79 TLbtTriggerId iTriggerId;
88 #endif // LBTTRIGGERCHANGEEVENT_H