eventsui/eventsengine/inc/evtmgmtuilbtobserver.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:  It is observer class to handle lbt operations
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef EVTMGMTUILBTOBSERVER_H_
       
    20 #define EVTMGMTUILBTOBSERVER_H_
       
    21 
       
    22 #include <e32base.h>        // CBase
       
    23 
       
    24 #include <lbtcommon.h>
       
    25 
       
    26 class MEvtMgmtUiLbtObserver
       
    27     {
       
    28 public:
       
    29     /*
       
    30      *  Type of Trigger Change
       
    31      */
       
    32     enum TLbtTriggerChangeType
       
    33         {
       
    34         /*
       
    35          * If multiple triggers are modified
       
    36          */
       
    37         ETriggerMultipleModified,
       
    38         /*
       
    39          * If a trigger is modified
       
    40          */
       
    41         ETriggerModified,
       
    42         /*
       
    43          * If a trigger is deleted
       
    44          */
       
    45         ETriggerDeleted
       
    46         };
       
    47 public:
       
    48     /**
       
    49      * It will be used to notify observer that the trigger which is
       
    50      * owned by EventsUi has been modified outside, either by Manger Ui
       
    51      * or Event Handler
       
    52      * @param aTriggerId trigger id of newly created trigger
       
    53      * @param aType It will contain type of trigger change              
       
    54      */
       
    55     virtual void NotifyTriggerChangeL( const TLbtTriggerId &  aTriggerId,
       
    56     											TLbtTriggerChangeType aType )=0;
       
    57     
       
    58     /**
       
    59      * It will be used to notify observer that lbt operation
       
    60      * has be completed
       
    61      * @param aTriggerId trigger id of newly created trigger
       
    62      * @param aState It will contain the the operation type              
       
    63      */
       
    64     virtual void NotifyLbtChangeL(TLbtTriggerId &  aTriggerId,TInt aState )=0;
       
    65     
       
    66     /**
       
    67      * It will be used to notify observer that lbt operation
       
    68      * has be failed
       
    69      * @param aState It will contain the the operation type
       
    70      * @param aErrorCode It will contain the status of the operation
       
    71      *                KErrNone if successful otherwise error status code          
       
    72      */
       
    73     virtual void NotifyLbtError(TInt aErrorCode, TInt aState )=0;
       
    74     };
       
    75 
       
    76 
       
    77 
       
    78 #endif //EVTMGMTUILBTOBSERVER_H_