widgets/widgetapp/inc/WidgetUiPSNotifier.h
author Simon Howkins <simonh@symbian.org>
Mon, 15 Nov 2010 14:53:34 +0000
branchRCL_3
changeset 105 871af676edac
parent 92 e1bea15f9a39
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Publish&Subscribe event listener 
*
*/

#ifndef WIDGETUIPSNOTIFIER_H_
#define WIDGETUIPSNOTIFIER_H_

#include <e32base.h>
#include <e32property.h>
#include <flogger.h>
#include <widgetregistryclient.h>
#include <WidgetRegistryData.h>

class CWidgetUiWindowManager;
class CWidgetUiWindow;

const TUid KMyPropertyCat = { 0x10282E5A };
const TUid KPropertyWidgetUI = { 0x10282822 };
enum  TPropertyKeyValues {EWidgetRegAltered = 110, ESapiPrompt = 115, ESapiPromptCleared=116};
enum  TOperations {EIncrement = 1, EDecrement = -1};
class CWidgetUiPSNotifier : public CActive
    {
    CWidgetUiPSNotifier(CWidgetUiWindowManager& aWindowManager, TPropertyKeyValues aKey);

    void ConstructL();
    void RunL();
    void DoCancel();
public:
    static CWidgetUiPSNotifier* NewL(CWidgetUiWindowManager& aWindowManager , TPropertyKeyValues aKey);
    ~CWidgetUiPSNotifier();
    RProperty                           iProperty;    
    void UpdateWindowList();
    void UpdateSapiPromptState();
private:
     CWidgetUiWindowManager& iWindowManager;
     TPropertyKeyValues iKey;
    };
#endif