widgets/widgetapp/inc/WidgetUiPSNotifier.h
branchRCL_3
changeset 94 919f36ff910f
parent 92 e1bea15f9a39
equal deleted inserted replaced
93:79859ed3eea9 94:919f36ff910f
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "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:  Publish&Subscribe event listener 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef WIDGETUIPSNOTIFIER_H_
       
    19 #define WIDGETUIPSNOTIFIER_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <e32property.h>
       
    23 #include <flogger.h>
       
    24 #include <widgetregistryclient.h>
       
    25 #include <WidgetRegistryData.h>
       
    26 
       
    27 class CWidgetUiWindowManager;
       
    28 class CWidgetUiWindow;
       
    29 
       
    30 const TUid KMyPropertyCat = { 0x10282E5A };
       
    31 const TUid KPropertyWidgetUI = { 0x10282822 };
       
    32 enum  TPropertyKeyValues {EWidgetRegAltered = 110, ESapiPrompt = 115, ESapiPromptCleared=116};
       
    33 enum  TOperations {EIncrement = 1, EDecrement = -1};
       
    34 class CWidgetUiPSNotifier : public CActive
       
    35     {
       
    36     CWidgetUiPSNotifier(CWidgetUiWindowManager& aWindowManager, TPropertyKeyValues aKey);
       
    37 
       
    38     void ConstructL();
       
    39     void RunL();
       
    40     void DoCancel();
       
    41 public:
       
    42     static CWidgetUiPSNotifier* NewL(CWidgetUiWindowManager& aWindowManager , TPropertyKeyValues aKey);
       
    43     ~CWidgetUiPSNotifier();
       
    44     RProperty                           iProperty;    
       
    45     void UpdateWindowList();
       
    46     void UpdateSapiPromptState();
       
    47 private:
       
    48      CWidgetUiWindowManager& iWindowManager;
       
    49      TPropertyKeyValues iKey;
       
    50     };
       
    51 #endif