diff -r 000000000000 -r c40eb8fe8501 wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/inc/wlmplatformdata.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/inc/wlmplatformdata.h Tue Feb 02 02:03:13 2010 +0200 @@ -0,0 +1,144 @@ +/* +* Copyright (c) 2002-2006 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: Interface class to CenRep and PubSub +* +*/ + + +#ifndef WLMPLATFORMDATA_H +#define WLMPLATFORMDATA_H + +#include +#include "802dot11.h" +#include "wlmsystemnotify.h" +#include "wlmplatformsubscriber.h" + +/** +* Interface class to PubSub and CenRep. +*/ +NONSHARABLE_CLASS( CWlmPlatformData ) : + public CBase, + public MWlmPlatformResponder + { + public: // Methods + + // Constructors and destructor + + /** + * Static constructor. + * @param aCallback Callback for notifications.. + * @return Pointer to create object. + */ + static CWlmPlatformData* NewL( MWlmSystemNotify& aCallback ); + + /** + * Destructor. + */ + virtual ~CWlmPlatformData(); + + // Methods from base classses + + /** + * Sets the status of WLAN icon on cover display. + * @param aStatus The WLAN icon status. + * @return A Symbian error code. + */ + virtual TInt SetIconState( + TWlmIconStatus aStatus ); + + /** + * Publishes the MAC address to other applications. + * @param aMacAddr The MAC address. + * @return A Symbian error code. + */ + virtual TInt PublishMacAddress( + TMacAddress& aMacAddr ); + + /** + * Returns MCC of the current operator. + * @param aCountryCode MCC. + */ + virtual void GetCurrentOperatorMccL( + TUint& aCountryCode ); + + /** + * Forces the system to re-read all system statuses and + * indicate all changed statuses via notification callbacks. + */ + virtual void UpdateSystemStatuses(); + + /** + * From MWlmPlatformResponder The subscribed property has changed. + * @since Series 60 3.0 + * @param aCategory Category of the changed property. + * @param aKey Key of the changed property. + */ + virtual void HandlePropertyChangedL( + const TUid& aCategory, + const TUint aKey ); + + private: // Methods + + /** + * C++ default constructor. + * @param aCallback Callback for notifications.. + */ + CWlmPlatformData( MWlmSystemNotify& aCallback ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + private: // Data + + /** Subscriber for watching KPSGlobalSystemState via P&S. */ + CWlmPlatformSubscriber* iPropertySystemState; + + /** Subscriber for watching KPropertyKeyBluetoothGetPHYCount via P&S. */ + CWlmPlatformSubscriber* iBtConnections; + + /** Subscriber for watching KCTSYEmergencyCallInfo via P&S. */ + CWlmPlatformSubscriber* iEmergencyCall; + + /** Handle to KPropertyWlanMacAddress property via P&S. */ + RProperty iPsMacAddress; + + /** Handle to KPropertyWlanIndicator property via P&S. */ + RProperty iPsIndicator; + + /** Callback for notifications. */ + MWlmSystemNotify& iCallback; + + /** Stores the current System Mode */ + TWlanSystemMode iSystemMode; + + /** Stores the number of BT connections. */ + TUint iBtConnectionCount; + + /** The currently shown icon */ + TWlmIconStatus iCurrentIcon; + + /** Whether system startup has been completed. */ + TBool iIsStartupComplete; + + /** Whether system is in offline. */ + TBool iIsInOffline; + + /** Whether Emergency Call is active. */ + TBool iIsEmergencyCall; + + }; + +#endif // WLMPLATFORMDATA_H