messagingfw/deprecate/senduiservices/watcher/inc/senduiecomobserver.h
branchRCL_3
changeset 23 d51193d814ea
parent 22 d2c4c66342f3
child 24 002ade1da91c
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
     1 /*
       
     2 * Copyright (c) 2006 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:   Listens Ecom events. Requests service update, 
       
    15 *                - if SendUI Ecom service count changes
       
    16 *                - has changed since previous boot.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_SENDUIECOMOBSERVER_H
       
    23 #define C_SENDUIECOMOBSERVER_H
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <e32property.h>
       
    27 
       
    28 /**
       
    29  *  ?one_line_short_description
       
    30  *
       
    31  *  ?more_complete_description
       
    32  *
       
    33  *  @lib ?library
       
    34  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    35  */
       
    36 class CSendUiEcomObserver : public CActive
       
    37     {
       
    38 
       
    39 public:
       
    40 
       
    41     static CSendUiEcomObserver* NewL();
       
    42 
       
    43     virtual ~CSendUiEcomObserver();
       
    44 
       
    45 // from base class CActive
       
    46 
       
    47     /**
       
    48      * From CActive.
       
    49      *
       
    50      * @since S60 v3.2
       
    51      */
       
    52     void RunL();
       
    53 
       
    54     /**
       
    55      * From CActive.
       
    56      *
       
    57      * @since S60 v3.2
       
    58      */
       
    59     void DoCancel();
       
    60     
       
    61     void CheckForUpdateL();
       
    62 
       
    63 private:
       
    64 
       
    65     CSendUiEcomObserver();
       
    66 
       
    67     void ConstructL();
       
    68 
       
    69 private: // data
       
    70 
       
    71     /**
       
    72      * Property for making update requests
       
    73      */
       
    74     RProperty iPropertyUpdateRequest;
       
    75 
       
    76     /**
       
    77      * Property for tracking update operation flow
       
    78      */
       
    79     RProperty iPropertyUpdateOperation;
       
    80 
       
    81     REComSession& iEcomSession;
       
    82     };
       
    83 
       
    84 #endif // C_SENDUIECOMOBSERVER_H