wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/inc/wlmplatformdata.h
changeset 0 c40eb8fe8501
child 3 6524e815f76f
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Interface class to CenRep and PubSub
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef WLMPLATFORMDATA_H
       
    20 #define WLMPLATFORMDATA_H
       
    21 
       
    22 #include <e32property.h>
       
    23 #include "802dot11.h"
       
    24 #include "wlmsystemnotify.h"
       
    25 #include "wlmplatformsubscriber.h"
       
    26 
       
    27 /**
       
    28 * Interface class to PubSub and CenRep.
       
    29 */
       
    30 NONSHARABLE_CLASS( CWlmPlatformData ) :
       
    31     public CBase, 
       
    32     public MWlmPlatformResponder
       
    33     {
       
    34     public: // Methods
       
    35 
       
    36        // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * Static constructor.
       
    40         * @param aCallback Callback for notifications..
       
    41         * @return Pointer to create object.
       
    42         */
       
    43         static CWlmPlatformData* NewL( MWlmSystemNotify& aCallback );
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         virtual ~CWlmPlatformData();
       
    49 
       
    50        // Methods from base classses
       
    51 
       
    52         /**
       
    53         * Sets the status of WLAN icon on cover display.
       
    54         * @param aStatus The WLAN icon status.
       
    55         * @return A Symbian error code.
       
    56         */
       
    57         virtual TInt SetIconState(
       
    58             TWlmIconStatus aStatus );
       
    59 
       
    60         /**
       
    61         * Publishes the MAC address to other applications.
       
    62         * @param aMacAddr The MAC address.
       
    63         * @return A Symbian error code.
       
    64         */
       
    65         virtual TInt PublishMacAddress(
       
    66             TMacAddress& aMacAddr );
       
    67 
       
    68         /**
       
    69         * Returns MCC of the current operator.
       
    70         * @param aCountryCode MCC.
       
    71         */
       
    72         virtual void GetCurrentOperatorMccL(
       
    73             TUint& aCountryCode );
       
    74 
       
    75         /**
       
    76         * Forces the system to re-read all system statuses and
       
    77         * indicate all changed statuses via notification callbacks.
       
    78         */
       
    79         virtual void UpdateSystemStatuses();
       
    80 
       
    81         /**
       
    82         * From MWlmPlatformResponder The subscribed property has changed.
       
    83         * @since Series 60 3.0
       
    84         * @param aCategory Category of the changed property.
       
    85         * @param aKey Key of the changed property.
       
    86         */
       
    87         virtual void HandlePropertyChangedL(
       
    88             const TUid& aCategory,
       
    89             const TUint aKey );
       
    90 
       
    91     private:   // Methods
       
    92 
       
    93         /**
       
    94         * C++ default constructor.
       
    95         * @param aCallback Callback for notifications..
       
    96         */
       
    97         CWlmPlatformData( MWlmSystemNotify& aCallback );
       
    98 
       
    99         /**
       
   100         * Symbian 2nd phase constructor.
       
   101         */
       
   102         void ConstructL();
       
   103 
       
   104     private:  // Data
       
   105         
       
   106         /** Subscriber for watching KPSGlobalSystemState via P&S. */
       
   107         CWlmPlatformSubscriber* iPropertySystemState;
       
   108 
       
   109         /** Subscriber for watching KPropertyKeyBluetoothGetPHYCount via P&S. */
       
   110         CWlmPlatformSubscriber* iBtConnections;
       
   111 
       
   112         /** Subscriber for watching KCTSYEmergencyCallInfo via P&S. */
       
   113         CWlmPlatformSubscriber* iEmergencyCall;
       
   114 
       
   115         /** Handle to KPropertyWlanMacAddress property via P&S. */
       
   116         RProperty iPsMacAddress;
       
   117         
       
   118         /** Handle to KPropertyWlanIndicator property via P&S. */
       
   119         RProperty iPsIndicator;
       
   120 
       
   121         /** Callback for notifications. */
       
   122         MWlmSystemNotify& iCallback;
       
   123 
       
   124         /** Stores the current System Mode */
       
   125         TWlanSystemMode iSystemMode;
       
   126 
       
   127         /** Stores the number of BT connections. */
       
   128         TUint iBtConnectionCount;
       
   129 
       
   130         /** The currently shown icon */
       
   131         TWlmIconStatus iCurrentIcon;
       
   132 
       
   133         /** Whether system startup has been completed. */
       
   134         TBool iIsStartupComplete;
       
   135 
       
   136         /** Whether system is in offline. */
       
   137         TBool iIsInOffline;
       
   138 
       
   139         /** Whether Emergency Call is active. */
       
   140         TBool iIsEmergencyCall;
       
   141                 
       
   142     };
       
   143 
       
   144 #endif // WLMPLATFORMDATA_H