WiFi Framework C++ Edition
Public Member Functions | Protected Member Functions | List of all members
CwclWiFiDirectDeviceWatcher Class Reference

The component allows you application to enumerate (discover) nearby WiFi Direct Devices,. More...

#include <wclWiFi.h>

Inheritance diagram for CwclWiFiDirectDeviceWatcher:
CwclCustomWiFiDirectComponent

Public Member Functions

 CwclWiFiDirectDeviceWatcher ()
 Creates a new WiFi Device Watcher component.
 
int Discover ()
 Starts discovering for nearby WiFi Direct devices.
 
int Terminate ()
 Terminates discovering for nearby WiFi Direct devices.
 
int IsPaired (const tstring &Id, bool &Paired)
 Gets The WiFi Direct device's pairing status.
 
int Unpair (const tstring &Id)
 Unpair a WiFi Direct device.
 
int EnumPairedDevices (const WCL_WFD_DEVICES *const Devices)
 Enumerates paired WiFi Direct devices.
 
int GetName (const tstring &Id, tstring &Name)
 Gets the WiFi Direct device's name.
 
bool GetDiscovering () const
 Gets discovering state of the component.
 
 __declspec (property(get=GetDiscovering)) bool Discovering
 Gets discovering state of the component.
 
__event void OnDeviceFound (void *Sender, const tstring &Id, const tstring &Name)
 The event fires when a nearby WiFi Direct device has been found.
 
__event void OnDiscoveringCompleted (void *Sender, const int Error)
 The event fires when discovering for nearby WiFi Direct devices has been completed.
 
__event void OnDiscoveringStarted (void *Sender)
 The event fires when discovering for nearby WiFi Direct devices has been started.
 
- Public Member Functions inherited from CwclCustomWiFiDirectComponent
 CwclCustomWiFiDirectComponent ()
 Creates a new WiFi Direct Advertiser component.
 
virtual ~CwclCustomWiFiDirectComponent ()
 Frees the WiFi Direct Advertiser component.
 

Protected Member Functions

virtual void HardwareRemoved () override
 The method called when WiFi hardware has been switched off or removed.
 
virtual void MessageReceived (const CwclMessage *const Message) override
 The method called when a new notification message received.
 
virtual void DoDeviceFound (const tstring &Id, const tstring &Name)
 Fires the OnDeviceFound event.
 
virtual void DoDiscoveringCompleted (const int Error)
 Fires the OnDiscoveringCompleted event.
 
virtual void DoDiscoveringStarted ()
 Fires the OnDiscoveringStarted event.
 
- Protected Member Functions inherited from CwclCustomWiFiDirectComponent
virtual void HardwareRemoved ()
 The method called when WiFi hardware has been switched off or removed.
 
int InitWlan ()
 Initializes native WLAN subsystem.
 
void UninitWlan ()
 Uninitializes native WLAN subsystem.
 
virtual void MessageReceived (const CwclMessage *const Message)
 The method called when a new notification message received.
 
bool GetHardwareAvailable () const
 Gets the Hardware Available flag.
 
 __declspec (property(get=GetHardwareAvailable)) bool HardwareAvailable
 Gets the Hardware Available flag.
 
CwclMessageReceiverGetReceiver () const
 Gets the message receiver object.
 
 __declspec (property(get=GetReceiver)) CwclMessageReceiver *Receiver
 Gets the message receiver object.
 

Detailed Description

The component allows you application to enumerate (discover) nearby WiFi Direct Devices,.

See also
CwclCustomWiFiDirectComponent