epoc32/include/mw/lbttriggerchangeevent.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     5
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  Data class for trigger change event.
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#ifndef LBTTRIGGERCHANGEEVENT_H
williamr@2
    20
#define LBTTRIGGERCHANGEEVENT_H
williamr@2
    21
williamr@2
    22
#include <e32std.h>
williamr@2
    23
#include <lbtcommon.h>
williamr@2
    24
williamr@2
    25
/**
williamr@2
    26
 * Specifies the type of trigger change event.
williamr@2
    27
 *
williamr@2
    28
 * If there is no adequate event type to describe the change,
williamr@2
    29
 * @p ELbtTriggerChangeEventMultiple will be used. This event type is also 
williamr@2
    30
 * used for mass operations, e.g. delete several triggers, in order to bundle
williamr@2
    31
 * the events. In this case, multiple trigger items might have been changed.
williamr@2
    32
 * 
williamr@2
    33
 * Note, no changing event is issued if only the distance from the trigger
williamr@2
    34
 * to the latest acquired location is changed.
williamr@2
    35
 *
williamr@2
    36
 * @since S60 5.1
williamr@2
    37
 */
williamr@2
    38
enum TLbtTriggerChangeEventType
williamr@2
    39
    {
williamr@2
    40
    /**
williamr@2
    41
     * An event related to changes to multiple triggers have occurred.
williamr@2
    42
     * This event is issued if more than one trigger has been added, modified 
williamr@2
    43
     * or deleted.
williamr@2
    44
     */
williamr@2
    45
    ELbtTriggerChangeEventMultiple = 1,
williamr@2
    46
    /**
williamr@2
    47
     * A new trigger has been created.
williamr@2
    48
     */
williamr@2
    49
    ELbtTriggerChangeEventCreated = 2,
williamr@2
    50
    /**
williamr@2
    51
     * A trigger has been deleted.
williamr@2
    52
     */
williamr@2
    53
    ELbtTriggerChangeEventDeleted = 3,
williamr@2
    54
    /**
williamr@2
    55
     * One or more trigger entry's attributes have been updated,
williamr@2
    56
     * or the trigger's validity status is changed.
williamr@2
    57
     */
williamr@2
    58
    ELbtTriggerChangeEventUpdated = 4,
williamr@2
    59
    };
williamr@2
    60
williamr@2
    61
/**
williamr@2
    62
 * Structure defines detailed information of a triggering change event.
williamr@2
    63
 *
williamr@2
    64
 * @since S60 5.1
williamr@2
    65
 */
williamr@2
    66
struct TLbtTriggerChangeEvent
williamr@2
    67
    {
williamr@2
    68
    /**
williamr@2
    69
     * Type of the event.
williamr@2
    70
     */
williamr@2
    71
    TLbtTriggerChangeEventType iEventType;
williamr@2
    72
    
williamr@2
    73
    /**
williamr@2
    74
     * ID of a trigger. The ID indicates that the event is associated with
williamr@2
    75
     * one trigger item. If the change is not associated with exactly one
williamr@2
    76
     * item, item ID will be set to @p KLbtNullTriggerId.
williamr@2
    77
     * For instance in the case of @p ELbtTriggerChangeEventMultiple event.
williamr@2
    78
     */
williamr@2
    79
    TLbtTriggerId iTriggerId;
williamr@2
    80
    
williamr@2
    81
    /**
williamr@2
    82
     * For future use
williamr@2
    83
     */
williamr@2
    84
    TUint8 iUnused[8];
williamr@2
    85
    };
williamr@2
    86
williamr@2
    87
williamr@2
    88
#endif // LBTTRIGGERCHANGEEVENT_H