wlanutilities/wlanindicatorplugin/inc/wlanindicatorpluginimplementation.h
branchRCL_3
changeset 12 981afc7d3841
parent 0 56b72877c1cb
equal deleted inserted replaced
11:8b0eae1b1d71 12:981afc7d3841
    20 #ifndef CWLANINDICATORPLUGINIMPLEMENTATION_H
    20 #ifndef CWLANINDICATORPLUGINIMPLEMENTATION_H
    21 #define CWLANINDICATORPLUGINIMPLEMENTATION_H
    21 #define CWLANINDICATORPLUGINIMPLEMENTATION_H
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <AknIndicatorPlugin.h> // CAknIndicatorPlugin
    24 #include <AknIndicatorPlugin.h> // CAknIndicatorPlugin
    25 #include <wlanmgmtcommon.h>
       
    26 #include <wlanmgmtclient.h>
       
    27 #include <rconnmon.h>
    25 #include <rconnmon.h>
    28 
       
    29 //  CONSTANTS
       
    30 const TInt KWlanMaxAccessPointNameLength = 50;
       
    31 
    26 
    32 //  FORWARD DECLARATIONS
    27 //  FORWARD DECLARATIONS
    33 class CCoeEnv;
    28 class CCoeEnv;
    34 
       
    35 //  CLASS DECLARATIONS
       
    36 struct TWliWlanInfo
       
    37     {
       
    38     // Network name (unknown: SSID, known: IAP name), TBuf8
       
    39     TWlanSsid iSsid;
       
    40 
       
    41     //Internet Access Point Id. 0 if the IAP has not been defined. 
       
    42     TUint32 iIapId;
       
    43 
       
    44     // The name of the WLAN IAP, TBuf16
       
    45     TBuf<KWlanMaxAccessPointNameLength> iNetworkName;
       
    46 };
       
    47 
       
    48 
    29 
    49 /**
    30 /**
    50 *  WLAN Indicator Plug-in implementation
    31 *  WLAN Indicator Plug-in implementation
    51 *
    32 *
    52 *  @since 5.0
    33 *  @since 5.0
    95         
    76         
    96 
    77 
    97     private: // new functions
    78     private: // new functions
    98 
    79 
    99         /**
    80         /**
   100         * Creates text for the cases
    81         * Creates text for the case "wlan networks available"
   101         * - "WLAN network found"
    82         * @return Descriptor for the "wlan available" case
   102         * - "WLAN networks found"
       
   103         * - "'myNetwork' found"
       
   104         * @return Descriptor for the current "wlan available" case
       
   105         */
    83         */
   106         HBufC* CreateWlanNetworksFoundTextL();
    84         HBufC* CreateWlanNetworksFoundTextL();
   107         
    85         
   108         /**
    86         /**
   109         * Creates text for the "connected" case (open or secure).
    87         * Creates text for the "connected" case (open or secure).
   110         * @return Descriptor containing the "'myNetwork' connected" text
    88         * @return Descriptor containing the "'myNetwork' connected" text
   111         */
    89         */
   112         HBufC* CreateWlanConnectedTextL();
    90         HBufC* CreateWlanConnectedTextL();
   113         
    91                      
   114         /**
       
   115          * Finds the required info for the "networks available" case:
       
   116          * - name of the known network (null if all unknown)
       
   117          * - number of available networks
       
   118          * @param aAvailableCount Number of available networks
       
   119          */
       
   120         HBufC* AvailableNetworksInfoL( TInt& aAvailableCount );
       
   121          
       
   122         /**
       
   123          * Finds the network name based on the IAP id
       
   124          * @param Struct for storing the IAP information
       
   125          */
       
   126         void GetWlanInfoFromIapL( TWliWlanInfo& aWlanInfo );
       
   127         
       
   128         /**
    92         /**
   129          * Finds the WLAN connection name.
    93          * Finds the WLAN connection name.
   130          * @return Descriptor containing the name of the connected WLAN nw.
    94          * @return Descriptor containing the name of the connected WLAN nw.
   131          */
    95          */
   132         HBufC* ConnectionNameL();
    96         HBufC* ConnectionNameL();
   162         /**
   126         /**
   163          * Owned. Used for getting connection info
   127          * Owned. Used for getting connection info
   164          */
   128          */
   165         RConnectionMonitor iConnMonitor;
   129         RConnectionMonitor iConnMonitor;
   166         
   130         
   167         /**
       
   168          * Owned. Used for getting WLAN available networks info
       
   169          */
       
   170         CWlanMgmtClient* iWlanMgmtClient;
       
   171         
       
   172 
       
   173     };
   131     };
   174 
   132 
   175 #endif      // CWLANINDICATORPLUGINIMPLEMENTATION_H
   133 #endif      // CWLANINDICATORPLUGINIMPLEMENTATION_H
   176 
   134 
   177 // End of File
   135 // End of File