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.
201 public enum WiFiDirectSecondaryDeviceType
212 /// Computer media center.
214 ComputerMediaCenter = 3,
220 /// Computer notebook.
222 ComputerNotebook = 5,
232 /// Computer netbook.
252 /// Input controller.
260 /// Input touch screen.
262 InputTouchScreen = 7,
264 /// Input biometric reader.
266 InputBiometricReader = 8,
268 /// Input barcode reader.
270 InputBarcodeReader = 9,
288 /// Printer all-in-one.
292 /// Digital still camera.
332 /// Display picture frame.
336 /// Display projector.
338 DisplayProjector = 3,
356 /// Multimedia set-top box.
360 /// Media Server / Media Adapter / Media Extender.
362 MultimediaMsMaMe = 5,
364 /// Multimedia portable video player.
372 /// The game xbox 360.
376 /// Game play station.
390 TelephoneWindowsMobile = 1,
392 /// Phone - single mode.
394 TelephonePhoneSingle = 2,
396 /// Phone - dual mode.
398 TelephonePhoneDual = 3,
400 /// Smart Phone - single mode.
402 TelephoneSmartphoneSingle = 4,
404 /// Smart Phone - dual mode.
406 TelephoneSmartphoneDual = 5,
428 /// Audio microphone.
434 /// Enumeration for Wi-Fi Direct link status.
437 public enum WiFiDirectState
478 /// Enumeration for Wi-Fi WPS type.
480 public enum WiFiDirectWpsType
487 /// Push button configuration.
491 /// Display pin code.
495 /// Provide the keypad to input the pin.
501 /// Enumeration for Service Discovery type.
503 public enum WiFiDirectServiceType
506 /// Service discovery Type all.
510 /// Service discovery Type bonjour.
514 /// Service discovery Type UPNP.
518 /// Service discovery Type ws discovery.
522 /// Service discovery Type wifi-display.
526 /// Service discovery Type bt address.
530 /// Service discovery Type contact info.
534 /// Service discovery Type vendor-specific.
540 /// Enumeration for Wi-Fi Direct service Discovery state.
542 public enum WiFiDirectServiceDiscoveryState
545 /// Service discovery started.
549 /// Service discovery found.
553 /// Service discovery finished.
559 /// Enumeration for Wi-Fi Direct device state.
561 public enum WiFiDirectDeviceState
574 /// Enumeration for Wi-Fi Direct error code.
576 public enum WiFiDirectError
581 None = ErrorCode.None,
583 /// Operation not permitted.
585 NotPermitted = ErrorCode.NotPermitted,
589 OutOfMemory = ErrorCode.OutOfMemory,
591 /// Permission denied.
593 PermissionDenied = ErrorCode.PermissionDenied,
595 /// Device or resource busy.
597 ResourceBusy = ErrorCode.ResourceBusy,
599 /// Invalid function parameter.
601 InvalidParameter = ErrorCode.InvalidParameter,
603 /// Connection timed out.
605 ConnectionTimeOut = ErrorCode.ConnectionTimeout,
609 NotSupported = ErrorCode.NotSupported,
613 NotInitialized = -0x01C60000 | 0x01,
617 CommunicationFailed = -0x01C60000 | 0x02,
619 /// WiFi is being used.
621 WiFiUsed = -0x01C60000 | 0x03,
623 /// Mobile AP is being used.
625 MobileApUsed = -0x01C60000 | 0x04,
627 /// Connection failed.
629 ConnectionFailed = -0x01C60000 | 0x05,
631 /// Authentication failed.
633 AuthFailed = -0x01C60000 | 0x06,
635 /// Operation failed.
637 OperationFailed = -0x01C60000 | 0x07,
641 TooManyClient = -0x01C60000 | 0x08,
643 /// Already initialized client.
645 AlreadyInitialized = -0x01C60000 | 0x09,
647 /// Connection cancelled by local device.
649 ConnectionCancelled = -0x01C60000 | 0x10