diff -r a2efdd544abf -r b47902b73a93 networkprotocolmodules/suplprotocolmodule/HostSettingsApi/inc/lbshostsettingsnotifier.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/networkprotocolmodules/suplprotocolmodule/HostSettingsApi/inc/lbshostsettingsnotifier.h Fri Jun 04 10:34:15 2010 +0100 @@ -0,0 +1,55 @@ +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "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: +// An Active Object that requests and handles change notification requests from the CenRep +// +// + +/** + @file + @internalAll + @deprecated +*/ + +#ifndef LBSHOSTSETTINGSNOTIFIER_H_ +#define LBSHOSTSETTINGSNOTIFIER_H_ + +#include +#include +#include "lbshostsettingsimpl.h" +#include + +class CLbsHostSettingsNotifier : public CActive + { +public: + static CLbsHostSettingsNotifier* NewL(TLbsHostStoreId aStoreId, CRepository& aRepository, MLbsHostSettingsStoreObserver* aObserver); + ~CLbsHostSettingsNotifier(); + void RequestNotificationL(); + void SuppressNotification(TUid aSettingsId); + +private: + CLbsHostSettingsNotifier(TLbsHostStoreId aStoreId, CRepository& aRepository, MLbsHostSettingsStoreObserver* aObserver); + virtual void RunL(); + virtual void DoCancel(); + virtual TInt RunError(TInt aError); + +private: + CRepository& iRepository; + TLbsHostStoreId iStoreId; + // We do not own iObserver so do not delete it. + // We have a pointer instead of a reference because it may be NULL + MLbsHostSettingsStoreObserver* iObserver; + TUid iSuppressSettingsId; + }; + +#endif // LBSHOSTSETTINGSNOTIFIER_H_