2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FNetWifiIWifiDirectDeviceListener.h
20 * @brief This is the header file for the %IWifiDirectDeviceListener interface.
22 * This header file contains the declarations of the %IWifiDirectDeviceListener interface.
25 #ifndef _FNET_WIFI_INTERNAL_IWIFI_DIRECT_LISTENER_H_
26 #define _FNET_WIFI_INTERNAL_IWIFI_DIRECT_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
29 #include <FNetWifiWifiTypes.h>
30 #include <FOspConfig.h>
32 namespace Tizen { namespace Net { namespace Wifi
34 class _WifiDirectEventArg;
37 * @interface _IWifiDirectDeviceListener
38 * @brief This interface implements listeners for the _WifiDirectDeviceImpl events.
41 * This interface represents a listener to get the Wi-Fi Direct device status or information.
44 class _OSP_EXPORT_ _IWifiDirectListener
45 : public Tizen::Base::Runtime::IEventListener
49 * This polymorphic destructor should be overridden if required. This way,
50 * the destructors of the derived classes are called when the destructor of this interface is called.
54 virtual ~_IWifiDirectListener(void) {}
57 * @see IWifiDirectDeviceListener::OnWifiDirectDeviceActivated()
59 virtual void OnWifiDirectDeviceActivated(const _WifiDirectEventArg& arg, result r) = 0;
62 * @see IWifiDirectDeviceListener::OnWifiDirectDeviceDeactivated()
64 virtual void OnWifiDirectDeviceDeactivated(const _WifiDirectEventArg& arg, result r) = 0;
67 * @see IWifiDirectDeviceListener::OnWifiDirectGroupCreatedN()
69 virtual void OnWifiDirectGroupCreated(const _WifiDirectEventArg& arg, WifiDirectGroupMemberType wifiDirectMemberType, result r) = 0;
72 * @see IWifiDirectDeviceListener::OnWifiDirectRemoteDeviceFound()
74 virtual void OnWifiDirectRemoteDeviceFound(const _WifiDirectEventArg& arg) = 0;
77 * @see IWifiDirectDeviceListener::OnWifiDirectScanCompletedN()
79 virtual void OnWifiDirectScanCompleted(const _WifiDirectEventArg& arg, result r) = 0;
82 * @see IWifiDirectDeviceListener::OnWifiDirectAssociationCompleted()
84 virtual void OnWifiDirectAssociationCompleted(const _WifiDirectEventArg& arg, result r) = 0;
87 * @see IWifiDirectGroupOwnerListener::OnWifiDirectClientAssociated()
89 virtual void OnWifiDirectClientAssociated(const _WifiDirectEventArg& arg) = 0;
92 * @see IWifiDirectGroupOwnerListener::OnWifiDirectClientDisassociated()
94 virtual void OnWifiDirectClientDisassociated(const _WifiDirectEventArg& arg, WifiDirectAssociationTerminationReason reason) = 0;
97 * @see IWifiDirectGroupOwnerListener::OnWifiDirectGroupDestroyed()
99 virtual void OnWifiDirectGroupDestroyed(const _WifiDirectEventArg& arg, result r) = 0;
102 * @see IWifiDirectGroupClientListener::OnWifiDirectAssociationTerminated()
104 virtual void OnWifiDirectAssociationTerminated(const _WifiDirectEventArg& arg, result r) = 0;
107 * @see IWifiDirectGroupClientListener::OnWifiDirectGroupOwnerInfoReceived()
109 virtual void OnWifiDirectGroupOwnerInfoReceived(const _WifiDirectEventArg& arg, result r) = 0;
112 * @see IWifiDirectGroupClientListener::OnWifiDirectAllGroupMemberInfoReceivedN()
114 virtual void OnWifiDirectAllGroupMemberInfoReceivedN(const _WifiDirectEventArg& arg, result r) = 0;
117 * @see IWifiDirectGroupOwnerListener::OnWifiDirectConnected()
119 virtual void OnWifiDirectConnected(const _WifiDirectEventArg& arg, result r) = 0;
122 * @see IWifiDirectGroupClientListener::OnWifiDirectDisconnected()
124 virtual void OnWifiDirectDisconnected(const _WifiDirectEventArg& arg, result r) = 0;
127 * @see IWifiDirectGroupClientListener::OnWifiDirectGroupLeft()
129 virtual void OnWifiDirectGroupLeft(const _WifiDirectEventArg& arg, result r) = 0;
132 * @see IWifiDirectGroupClientListener::OnWifiDirectAutonomousGroupCreated()
134 virtual void OnWifiDirectAutonomousGroupCreated(const _WifiDirectEventArg& arg, result r) = 0;
138 } } } //Tizen::Net::Wifi
140 #endif // _FNET_WIFI_INTERNAL_IWIFI_DIRECT_LISTENER_H_