diff -r 000000000000 -r 667063e416a2 locationsystemui/locationsysui/locverifier/inc/lpdsuplsettingsadapter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locationsystemui/locationsysui/locverifier/inc/lpdsuplsettingsadapter.h Tue Feb 02 01:06:48 2010 +0200 @@ -0,0 +1,106 @@ +/* +* Copyright (c) 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: Adapter to the SUPL Settings API +* +*/ + + +#ifndef CLPDSUPLSETTINGSADAPTER_H_ +#define CLPDSUPLSETTINGSADAPTER_H_ + +// System Includes +#include +#include // class CServerParams +#include // class CSuplSettings +#include + +// User Includes + +// Forward Declarations +class MLpdSUPLSettingsAdapterObserver; + +// Class Declaration + +/** + * Adapter class for the SUPL settings API. Handles all the interfacing + * functionality to the SUPL Settings API. It also observes for the Session + * changes communicated through the MSuplSessionObserver + */ +class CLpdSUPLSettingsAdapter : public CBase, public MSuplSessionObserver + { + public: + /** + * Static Two phase contructor that instantiates the CLpdSUPLSettingsAdapter + * + * @param aObserver Observer to the SUPL session change + * @return CLpdSUPLSettingsAdapter* Reference to the object created + */ + static CLpdSUPLSettingsAdapter* NewL( + MLpdSUPLSettingsAdapterObserver& aObserver ); + + /** + * Destructor + */ + virtual ~CLpdSUPLSettingsAdapter(); + + private: + /** + * Private Constructor + */ + CLpdSUPLSettingsAdapter( MLpdSUPLSettingsAdapterObserver& aObserver ); + + /** + * Second phase of the two phase constructor + */ + void ConstructL(); + + + + + + public: + /** + * Inherited from MSuplSessionObserver + */ + void HandleSuplSessionChangeL( + TSuplSessionEventType aEvent, + TInt64 aSessionId + ); + + /** + * Gets time period of a trigger based on session id + */ + void GetTriggerPeriodL( TInt64 aSessionId, TUint& aTimePeriod ); + + + + private: + + /** + * Observer for the specific SUPL session. + * Does not own. + */ + MLpdSUPLSettingsAdapterObserver& iObserver; + + /** + * SUPL Settings UI + * Owns + */ + CSuplSettings* iSUPLSettings; + + }; + +#endif // CLPDSUPLSETTINGSADAPTER_H_ + +// End of File