⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wlansampleexappui.h

📁 基于symbian平台的Wlan创建
💻 H
字号:
/* ====================================================================
 * File: WLanSampleExAppUi.h
 * Created: 01/19/07
 * Author: 
 * Copyright (c): , All rights reserved
 * ==================================================================== */

#ifndef __WLANSAMPLEEX_APPUI_H__
#define __WLANSAMPLEEX_APPUI_H__

#include <aknappui.h>
#include <ES_SOCK.H>

LOCAL_D const TUint32 KUidNone = 0;
// Forward reference
class CWLanSampleExAppView;

  /*! 
  @class CWLanSampleExAppUi
  
  @discussion An instance of class CWLanSampleExAppUi is the UserInterface part of the AVKON
  application framework for the WLanSampleEx example application
  */
class CWLanSampleExAppUi : public CAknAppUi
    {
public:
  /*!
  @function ConstructL
  
  @discussion Perform the second phase construction of a CWLanSampleExAppUi object
  this needs to be public due to the way the framework constructs the AppUi 
  */
    void ConstructL();

  /*!
  @function CWLanSampleExAppUi
  
  @discussion Perform the first phase of two phase construction.
  This needs to be public due to the way the framework constructs the AppUi 
  */
    CWLanSampleExAppUi();


  /*!
  @function ~CWLanSampleExAppUi
  
  @discussion Destroy the object and release all memory objects
  */
    ~CWLanSampleExAppUi();


public: // from CAknAppUi
  /*!
  @function HandleCommandL
  
  @discussion Handle user menu selections
  @param aCommand the enumerated code for the option selected
  */
    void HandleCommandL(TInt aCommand);
    
  /*!
  @function CreateAccessPoint
  
  @creates a new WLAN access point
  */  
    void CreateAccessPointL();
  
  /*!
  @function ScanNetworks
  
  @cans the currently active access points and gets their security mode, network mode, BSSID 

  */  
    
    void ScanNetworksL();
  /*!
  @function NetworkName
  
  @Scans the currently active access points and gets their name ane signal strength.

  */  
    void NetworkNameL();
    
  /*!
  @function GetMacAddress
  
  @Gets the MAC address of the WLAN device 

  */  
    void GetMacAddressL();
  
  /*!
  @function GetIpAddress
  
  @Gets the IP address of the WLAN iConnection. Works only if there is a wlan iConnection established 

  */   
    
    void GetIpAddressL();
  
  /*!
  @function EstablishConnection
  
  @Establishes iConnection with the last wlan access point.


  */   
    void EstablishConnectionL();
    
  /*!
  @function GetCurrentSignalStrength
  
  @Gets the signal strength of the wlan with which we have established the iConnection.
  */  
 	void GetCurrentSignalStrengthL();

private:
/*! @var iAppView The application view */
    CWLanSampleExAppView* iAppView;
    RSocketServ iServer;
	RConnection iConnection;
	TBool iConnState;
	TBuf<50> ibuff;
    
};


#endif // __WLANSAMPLEEX_APPUI_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -