Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Network.WiFiDirect / Tizen.Network.WiFiDirect / WiFiDirectEnumerations.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 using System;
18 using Tizen.Internals.Errors;
19
20 namespace Tizen.Network.WiFiDirect
21 {
22     /// <summary>
23     /// Enumeration for Wi-Fi Direct discovery state.
24     /// </summary>
25     public enum WiFiDirectDiscoveryState
26     {
27         /// <summary>
28         /// Only listen has started.
29         /// </summary>
30         OnlyListenStarted = 0,
31         /// <summary>
32         /// Discovery started.
33         /// </summary>
34         Started,
35         /// <summary>
36         /// A remote peer is found.
37         /// </summary>
38         Found,
39         /// <summary>
40         /// Discovery finished.
41         /// </summary>
42         Finished,
43         /// <summary>
44         /// A remote peer is lost.
45         /// </summary>
46         Lost
47     }
48
49     /// <summary>
50     /// Enumeration for Wi-Fi Direct display device type.
51     /// </summary>
52     public enum WiFiDirectDisplayType
53     {
54         /// <summary>
55         /// Configure as WFD source.
56         /// </summary>
57         Source = 0,
58         /// <summary>
59         /// Configure as WFD primary sink.
60         /// </summary>
61         Prisink,
62         /// <summary>
63         /// Configure as WFD secondary sink.
64         /// </summary>
65         Secsink,
66         /// <summary>
67         /// Configure as WFD dual role.
68         /// </summary>
69         Dual
70     }
71
72     /// <summary>
73     /// Enumeration for Wi-Fi Discovery channel.
74     /// </summary>
75     public enum WiFiDirectDiscoveryChannel
76     {
77         /// <summary>
78         /// Scan full channel.
79         /// </summary>
80         FullScan = 0,
81         /// <summary>
82         /// The social channel.
83         /// </summary>
84         SocialChannel = 1611,
85         /// <summary>
86         /// Scan channel 1.
87         /// </summary>
88         Channel1 = 1,
89         /// <summary>
90         /// Scan channel 6.
91         /// </summary>
92         Channel6 = 6,
93         /// <summary>
94         /// Scan channel 11.
95         /// </summary>
96         Channel11 = 11
97     }
98
99     /// <summary>
100     /// Enumeration for Wi-Fi Direct connection state.
101     /// </summary>
102     public enum WiFiDirectConnectionState
103     {
104         /// <summary>
105         /// Connection is requested.
106         /// </summary>
107         ConnectionRequest,
108         /// <summary>
109         /// Wps is requested.
110         /// </summary>
111         ConnectionWpsRequest,
112         /// <summary>
113         /// Connection in progress.
114         /// </summary>
115         ConnectionInProgress,
116         /// <summary>
117         /// Connected   .
118         /// </summary>
119         ConnectionRsp,
120         /// <summary>
121         /// Disconnected by remote group client.
122         /// </summary>
123         DisassociationInd,
124         /// <summary>
125         /// Disconnected by local device.
126         /// </summary>
127         DisconnectRsp,
128         /// <summary>
129         /// Disconnected by remote group owner.
130         /// </summary>
131         DisconnectInd,
132         /// <summary>
133         /// Group is created.
134         /// </summary>
135         GroupCreated,
136         /// <summary>
137         /// Group is destroyed.
138         /// </summary>
139         GroupDestroyed
140     }
141
142     /// <summary>
143     /// Enumeration for Wi-Fi Direct primary device type.
144     /// </summary>
145     public enum WiFiDirectPrimaryDeviceType
146     {
147         /// <summary>
148         /// Computer.
149         /// </summary>
150         Computer = 1,
151         /// <summary>
152         /// Input device.
153         /// </summary>
154         InputDevice = 2,
155         /// <summary>
156         /// Printer.
157         /// </summary>
158         Printer = 3,
159         /// <summary>
160         /// Camera.
161         /// </summary>
162         Camera = 4,
163         /// <summary>
164         /// Storage.
165         /// </summary>
166         Storage = 5,
167         /// <summary>
168         /// Network Infrastructure.
169         /// </summary>
170         NetworkInfrastructure = 6,
171         /// <summary>
172         /// Display.
173         /// </summary>
174         Display = 7,
175         /// <summary>
176         /// Multimedia device.
177         /// </summary>
178         MultimediaDevice = 8,
179         /// <summary>
180         /// Game device.
181         /// </summary>
182         GameDevice = 9,
183         /// <summary>
184         /// Telephone.
185         /// </summary>
186         Telephone = 10,
187         /// <summary>
188         /// Audio.
189         /// </summary>
190         Audio = 11,
191         /// <summary>
192         /// Others.
193         /// </summary>
194         Other = 255
195     }
196
197     /// <summary>
198     /// Enumeration for Wi-Fi Direct secondary device type.
199     /// </summary>
200     public enum WiFiDirectSecondaryDeviceType
201     {
202         /// <summary>
203         /// Computer PC.
204         /// </summary>
205         ComputerPc = 1,
206         /// <summary>
207         /// Computer server.
208         /// </summary>
209         ComputerServer = 2,
210         /// <summary>
211         /// Computer media center.
212         /// </summary>
213         ComputerMediaCenter = 3,
214         /// <summary>
215         /// Computer UMPC.
216         /// </summary>
217         ComputerUmpc = 4,
218         /// <summary>
219         /// Computer notebook.
220         /// </summary>
221         ComputerNotebook = 5,
222         /// <summary>
223         /// Computer desktop
224         /// </summary>
225         ComputerDesktop = 6,
226         /// <summary>
227         /// Computer MID.
228         /// </summary>
229         ComputerMid = 7,
230         /// <summary>
231         /// Computer netbook.
232         /// </summary>
233         ComputerNetbook = 8,
234         /// <summary>
235         /// Input keyboard.
236         /// </summary>
237         InputKeyboard = 1,
238         /// <summary>
239         /// Input mouse.
240         /// </summary>
241         InputMouse = 2,
242         /// <summary>
243         /// Input joystick.
244         /// </summary>
245         InputJoystick = 3,
246         /// <summary>
247         /// Input trackball.
248         /// </summary>
249         InputTrackball = 4,
250         /// <summary>
251         /// Input controller.
252         /// </summary>
253         InputController = 5,
254         /// <summary>
255         /// Inpute remote.
256         /// </summary>
257         InputRemote = 6,
258         /// <summary>
259         /// Input touch screen.
260         /// </summary>
261         InputTouchScreen = 7,
262         /// <summary>
263         /// Input biometric reader.
264         /// </summary>
265         InputBiometricReader = 8,
266         /// <summary>
267         /// Input barcode reader.
268         /// </summary>
269         InputBarcodeReader = 9,
270         /// <summary>
271         /// Printer.
272         /// </summary>
273         Printer = 1,
274         /// <summary>
275         /// Printer scanner.
276         /// </summary>
277         PrinterScanner = 2,
278         /// <summary>
279         /// Printer fax.
280         /// </summary>
281         PrinterFax = 3,
282         /// <summary>
283         /// Printer copier.
284         /// </summary>
285         PrinterCopier = 4,
286         /// <summary>
287         /// Printer all-in-one.
288         /// </summary>
289         PrinterAllInOne = 5,
290         /// <summary>
291         /// Digital still camera.
292         /// </summary>
293         CameraDigital = 1,
294         /// <summary>
295         /// Video camera.
296         /// </summary>
297         CameraVideo = 2,
298         /// <summary>
299         /// Webcam.
300         /// </summary>
301         CameraWebcam = 3,
302         /// <summary>
303         /// Security camera.
304         /// </summary>
305         CameraSecurity = 4,
306         /// <summary>
307         /// Storage NAS.
308         /// </summary>
309         StorageNas = 1,
310         /// <summary>
311         /// Network ap.
312         /// </summary>
313         NetworkAp = 1,
314         /// <summary>
315         /// Network router.
316         /// </summary>
317         NetworkRouter = 2,
318         /// <summary>
319         /// Network switch.
320         /// </summary>
321         NetworkSwitch = 3,
322         /// <summary>
323         /// Network gateway.
324         /// </summary>
325         NetworkGateway = 4,
326         /// <summary>
327         /// Display tv.
328         /// </summary>
329         DisplayTv = 1,
330         /// <summary>
331         /// Display picture frame.
332         /// </summary>
333         DisplayPicFrame = 2,
334         /// <summary>
335         /// Display projector.
336         /// </summary>
337         DisplayProjector = 3,
338         /// <summary>
339         /// Display monitor.
340         /// </summary>
341         DisplayMonitor = 4,
342         /// <summary>
343         /// Multimedia DAR.
344         /// </summary>
345         MultimediaDar = 1,
346         /// <summary>
347         /// Multimedia PVR.
348         /// </summary>
349         MultimediaPvr = 2,
350         /// <summary>
351         /// Multimedia MCX.
352         /// </summary>
353         MultimediaMcx = 3,
354         /// <summary>
355         /// Multimedia set-top box.
356         /// </summary>
357         MultimediaStb = 4,
358         /// <summary>
359         /// Media Server / Media Adapter / Media Extender.
360         /// </summary>
361         MultimediaMsMaMe = 5,
362         /// <summary>
363         /// Multimedia portable video player.
364         /// </summary>
365         MultimediaPvp = 6,
366         /// <summary>
367         /// Game xbox.
368         /// </summary>
369         GameXbox = 1,
370         /// <summary>
371         /// The game xbox 360.
372         /// </summary>
373         GameXbox360,
374         /// <summary>
375         /// Game play station.
376         /// </summary>
377         GamePlayStation = 2,
378         /// <summary>
379         /// Game console.
380         /// </summary>
381         GameConsole = 3,
382         /// <summary>
383         /// Game portable.
384         /// </summary>
385         GamePortable = 4,
386         /// <summary>
387         /// Windows mobile.
388         /// </summary>
389         TelephoneWindowsMobile = 1,
390         /// <summary>
391         /// Phone - single mode.
392         /// </summary>
393         TelephonePhoneSingle = 2,
394         /// <summary>
395         /// Phone - dual mode.
396         /// </summary>
397         TelephonePhoneDual = 3,
398         /// <summary>
399         /// Smart Phone - single mode.
400         /// </summary>
401         TelephoneSmartphoneSingle = 4,
402         /// <summary>
403         /// Smart Phone - dual mode.
404         /// </summary>
405         TelephoneSmartphoneDual = 5,
406         /// <summary>
407         /// Audio tuner.
408         /// </summary>
409         AudioTuner = 1,
410         /// <summary>
411         /// Audio speaker.
412         /// </summary>
413         AudioSpeaker = 2,
414         /// <summary>
415         /// Audio pmp.
416         /// </summary>
417         AudioPmp = 3,
418         /// <summary>
419         /// Audio headset.
420         /// </summary>
421         AudioHeadset = 4,
422         /// <summary>
423         /// Audio headphone.
424         /// </summary>
425         AudioHeadphone = 5,
426         /// <summary>
427         /// Audio microphone.
428         /// </summary>
429         AudioMic = 6
430     }
431
432     /// <summary>
433     /// Enumeration for Wi-Fi Direct link status.
434     /// </summary>
435     public enum WiFiDirectState
436     {
437         /// <summary>
438         /// Deactivated.
439         /// </summary>
440         Deactivated = 0,
441         /// <summary>
442         /// Deactivating.
443         /// </summary>
444         Deactivating,
445         /// <summary>
446         /// Activating.
447         /// </summary>
448         Activating,
449         /// <summary>
450         /// Activated.
451         /// </summary>
452         Activated,
453         /// <summary>
454         /// Discovering.
455         /// </summary>
456         Discovering,
457         /// <summary>
458         /// Connecting.
459         /// </summary>
460         Connecting,
461         /// <summary>
462         /// Disconnecting.
463         /// </summary>
464         Disconnecting,
465         /// <summary>
466         /// Connected.
467         /// </summary>
468         Connected,
469         /// <summary>
470         /// Group owner.
471         /// </summary>
472         GroupOwner
473     }
474
475     /// <summary>
476     /// Enumeration for Wi-Fi WPS type.
477     /// </summary>
478     public enum WiFiDirectWpsType
479     {
480         /// <summary>
481         /// No WPS type.
482         /// </summary>
483         None = 0x00,
484         /// <summary>
485         /// Push button configuration.
486         /// </summary>
487         Pbc = 0x01,
488         /// <summary>
489         /// Display pin code.
490         /// </summary>
491         PinDisplay = 0x02,
492         /// <summary>
493         /// Provide the keypad to input the pin.
494         /// </summary>
495         PinKeypad = 0x04
496     }
497
498     /// <summary>
499     /// Enumeration for Service Discovery type.
500     /// </summary>
501     public enum WiFiDirectServiceType
502     {
503         /// <summary>
504         /// Service discovery Type all.
505         /// </summary>
506         All,
507         /// <summary>
508         /// Service discovery Type bonjour.
509         /// </summary>
510         Bonjour,
511         /// <summary>
512         /// Service discovery Type UPNP.
513         /// </summary>
514         Upnp,
515         /// <summary>
516         /// Service discovery Type ws discovery.
517         /// </summary>
518         WsDiscovery,
519         /// <summary>
520         /// Service discovery Type wifi-display.
521         /// </summary>
522         WiFiDisplay,
523         /// <summary>
524         /// Service discovery Type bt address.
525         /// </summary>
526         BtAddress,
527         /// <summary>
528         /// Service discovery Type contact info.
529         /// </summary>
530         ContactInfo,
531         /// <summary>
532         /// Service discovery Type vendor-specific.
533         /// </summary>
534         Vendor
535     }
536
537     /// <summary>
538     /// Enumeration for Wi-Fi Direct service Discovery state.
539     /// </summary>
540     public enum WiFiDirectServiceDiscoveryState
541     {
542         /// <summary>
543         /// Service discovery started.
544         /// </summary>
545         Started,
546         /// <summary>
547         /// Service discovery found.
548         /// </summary>
549         Found,
550         /// <summary>
551         /// Service discovery finished.
552         /// </summary>
553         Finished
554     }
555
556     /// <summary>
557     /// Enumeration for Wi-Fi Direct device state.
558     /// </summary>
559     public enum WiFiDirectDeviceState
560     {
561         /// <summary>
562         /// Activated.
563         /// </summary>
564         Activated,
565         /// <summary>
566         /// Deactivated.
567         /// </summary>
568         Deactivated
569     }
570
571     /// <summary>
572     /// Enumeration for Wi-Fi Direct error code.
573     /// </summary>
574     public enum WiFiDirectError
575     {
576         /// <summary>
577         /// Successful.
578         /// </summary>
579         None = ErrorCode.None,
580         /// <summary>
581         /// Operation not permitted.
582         /// </summary>
583         NotPermitted = ErrorCode.NotPermitted,
584         /// <summary>
585         /// Out of memory.
586         /// </summary>
587         OutOfMemory = ErrorCode.OutOfMemory,
588         /// <summary>
589         /// Permission denied.
590         /// </summary>
591         PermissionDenied = ErrorCode.PermissionDenied,
592         /// <summary>
593         /// Device or resource busy.
594         /// </summary>
595         ResourceBusy = ErrorCode.ResourceBusy,
596         /// <summary>
597         /// Invalid function parameter.
598         /// </summary>
599         InvalidParameter = ErrorCode.InvalidParameter,
600         /// <summary>
601         /// Connection timed out.
602         /// </summary>
603         ConnectionTimeOut = ErrorCode.ConnectionTimeout,
604         /// <summary>
605         /// Not supported.
606         /// </summary>
607         NotSupported = ErrorCode.NotSupported,
608         /// <summary>
609         /// Not initialized.
610         /// </summary>
611         NotInitialized = -0x01C60000 | 0x01,
612         /// <summary>
613         /// I/O error.
614         /// </summary>
615         CommunicationFailed = -0x01C60000 | 0x02,
616         /// <summary>
617         /// WiFi is being used.
618         /// </summary>
619         WiFiUsed = -0x01C60000 | 0x03,
620         /// <summary>
621         /// Mobile AP is being used.
622         /// </summary>
623         MobileApUsed = -0x01C60000 | 0x04,
624         /// <summary>
625         /// Connection failed.
626         /// </summary>
627         ConnectionFailed = -0x01C60000 | 0x05,
628         /// <summary>
629         /// Authentication failed.
630         /// </summary>
631         AuthFailed = -0x01C60000 | 0x06,
632         /// <summary>
633         /// Operation failed.
634         /// </summary>
635         OperationFailed = -0x01C60000 | 0x07,
636         /// <summary>
637         /// Too many client.
638         /// </summary>
639         TooManyClient = -0x01C60000 | 0x08,
640         /// <summary>
641         /// Already initialized client.
642         /// </summary>
643         AlreadyInitialized = -0x01C60000 | 0x09,
644         /// <summary>
645         /// Connection cancelled by local device.
646         /// </summary>
647         ConnectionCancelled = -0x01C60000 | 0x10
648     }
649 }