2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using Tizen.Internals.Errors;
20 namespace Tizen.Network.WiFiDirect
23 /// Enumeration for Wi-Fi Direct discovery state.
25 public enum WiFiDirectDiscoveryState
28 /// Only listen has started.
30 OnlyListenStarted = 0,
32 /// Discovery started.
36 /// A remote peer is found.
40 /// Discovery finished.
44 /// A remote peer is lost.
50 /// Enumeration for Wi-Fi Direct display device type.
52 public enum WiFiDirectDisplayType
55 /// Configure as WFD source.
59 /// Configure as WFD primary sink.
63 /// Configure as WFD secondary sink.
67 /// Configure as WFD dual role.
73 /// Enumeration for Wi-Fi Discovery channel.
75 public enum WiFiDirectDiscoveryChannel
78 /// Scan full channel.
82 /// The social channel.
100 /// Enumeration for Wi-Fi Direct connection state.
102 public enum WiFiDirectConnectionState
105 /// Connection is requested.
109 /// Wps is requested.
111 ConnectionWpsRequest,
113 /// Connection in progress.
115 ConnectionInProgress,
121 /// Disconnected by remote group client.
125 /// Disconnected by local device.
129 /// Disconnected by remote group owner.
133 /// Group is created.
137 /// Group is destroyed.
143 /// Enumeration for Wi-Fi Direct primary device type.
145 public enum WiFiDirectPrimaryDeviceType
168 /// Network Infrastructure.
170 NetworkInfrastructure = 6,
176 /// Multimedia device.
178 MultimediaDevice = 8,
198 /// Enumeration for Wi-Fi Direct secondary device type.
200 public enum WiFiDirectSecondaryDeviceType
211 /// Computer media center.
213 ComputerMediaCenter = 3,
219 /// Computer notebook.
221 ComputerNotebook = 5,
231 /// Computer netbook.
251 /// Input controller.
259 /// Input touch screen.
261 InputTouchScreen = 7,
263 /// Input biometric reader.
265 InputBiometricReader = 8,
267 /// Input barcode reader.
269 InputBarcodeReader = 9,
287 /// Printer all-in-one.
291 /// Digital still camera.
331 /// Display picture frame.
335 /// Display projector.
337 DisplayProjector = 3,
355 /// Multimedia set-top box.
359 /// Media Server / Media Adapter / Media Extender.
361 MultimediaMsMaMe = 5,
363 /// Multimedia portable video player.
371 /// The game xbox 360.
375 /// Game play station.
389 TelephoneWindowsMobile = 1,
391 /// Phone - single mode.
393 TelephonePhoneSingle = 2,
395 /// Phone - dual mode.
397 TelephonePhoneDual = 3,
399 /// Smart Phone - single mode.
401 TelephoneSmartphoneSingle = 4,
403 /// Smart Phone - dual mode.
405 TelephoneSmartphoneDual = 5,
427 /// Audio microphone.
433 /// Enumeration for Wi-Fi Direct link status.
435 public enum WiFiDirectState
476 /// Enumeration for Wi-Fi WPS type.
478 public enum WiFiDirectWpsType
485 /// Push button configuration.
489 /// Display pin code.
493 /// Provide the keypad to input the pin.
499 /// Enumeration for Service Discovery type.
501 public enum WiFiDirectServiceType
504 /// Service discovery Type all.
508 /// Service discovery Type bonjour.
512 /// Service discovery Type UPNP.
516 /// Service discovery Type ws discovery.
520 /// Service discovery Type wifi-display.
524 /// Service discovery Type bt address.
528 /// Service discovery Type contact info.
532 /// Service discovery Type vendor-specific.
538 /// Enumeration for Wi-Fi Direct service Discovery state.
540 public enum WiFiDirectServiceDiscoveryState
543 /// Service discovery started.
547 /// Service discovery found.
551 /// Service discovery finished.
557 /// Enumeration for Wi-Fi Direct device state.
559 public enum WiFiDirectDeviceState
572 /// Enumeration for Wi-Fi Direct error code.
574 public enum WiFiDirectError
579 None = ErrorCode.None,
581 /// Operation not permitted.
583 NotPermitted = ErrorCode.NotPermitted,
587 OutOfMemory = ErrorCode.OutOfMemory,
589 /// Permission denied.
591 PermissionDenied = ErrorCode.PermissionDenied,
593 /// Device or resource busy.
595 ResourceBusy = ErrorCode.ResourceBusy,
597 /// Invalid function parameter.
599 InvalidParameter = ErrorCode.InvalidParameter,
601 /// Connection timed out.
603 ConnectionTimeOut = ErrorCode.ConnectionTimeout,
607 NotSupported = ErrorCode.NotSupported,
611 NotInitialized = -0x01C60000 | 0x01,
615 CommunicationFailed = -0x01C60000 | 0x02,
617 /// WiFi is being used.
619 WiFiUsed = -0x01C60000 | 0x03,
621 /// Mobile AP is being used.
623 MobileApUsed = -0x01C60000 | 0x04,
625 /// Connection failed.
627 ConnectionFailed = -0x01C60000 | 0x05,
629 /// Authentication failed.
631 AuthFailed = -0x01C60000 | 0x06,
633 /// Operation failed.
635 OperationFailed = -0x01C60000 | 0x07,
639 TooManyClient = -0x01C60000 | 0x08,
641 /// Already initialized client.
643 AlreadyInitialized = -0x01C60000 | 0x09,
645 /// Connection cancelled by local device.
647 ConnectionCancelled = -0x01C60000 | 0x10