diff -r 30342f40acbf -r e1bea15f9a39 widgets/widgetapp/inc/WidgetUiPSNotifier.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/widgets/widgetapp/inc/WidgetUiPSNotifier.h Thu Aug 19 10:58:56 2010 +0300 @@ -0,0 +1,51 @@ +/* +* 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 +#include +#include +#include +#include + +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