@@ -6,91 +6,116 @@ class DockControl -- Manage dock settings
66
77The DockControl class provides DL-7450 management services to applications.
88
9- Constructors
10- ------------
11-
129.. class :: DockControl()
1310
1411 Construct a DockControl object.
1512
16- .. admonition :: Coming soon
17- :class: tip
18-
19- In later releases, the DockControl interface will give the application developer
20- more control of the dock including:
21-
22- - set the attached screens to different resolutions.
23- - show different content on different attached monitors.
24- - set WiFi credentials such as SSID and password.
25-
26- Methods
27- -------
28-
29- .. method :: DockControl.set_timezone(tz)
30-
31- Set the timezone of the DL-7450 device. The parameter is a string which can be any of
32- the accepted abbreviations from the `Time Zone Database. <https://www.iana.org/time-zones >`_
33- For example::
34-
35- from dock import DockControl
36- control = DockControl()
37- control.set_timezone("PST8PDT")
38-
39- If an attempt is made to set a timezone that does not exist a `ValueError ` exception is raised.
40- For an invalid type a `TypeError ` is raised.
41-
42- .. admonition :: Coming soon
43- :class: tip
44-
45- In this preview a limited subset of the IANA timezones are supported.
46-
47- +----------------------+-----------------------------------------------------+
48- | Zone Code | Notes |
49- +======================+=====================================================+
50- | CET | Central European Time |
51- +----------------------+-----------------------------------------------------+
52- | CST6CDT | USA Central Standard Time with daylight saving |
53- +----------------------+-----------------------------------------------------+
54- | EET | Eastern European Time with daylight saving |
55- +----------------------+-----------------------------------------------------+
56- | EST | Eastern Standard Time |
57- +----------------------+-----------------------------------------------------+
58- | GB | UK/Eire with daylight saving |
59- +----------------------+-----------------------------------------------------+
60- | GMT | UK/Eire standard time |
61- +----------------------+-----------------------------------------------------+
62- | HST | Hawaii–Aleutian time |
63- +----------------------+-----------------------------------------------------+
64- | Hongkong | |
65- +----------------------+-----------------------------------------------------+
66- | Israel | |
67- +----------------------+-----------------------------------------------------+
68- | Japan | |
69- +----------------------+-----------------------------------------------------+
70- | MET | Same as CET |
71- +----------------------+-----------------------------------------------------+
72- | MST | A zone that observes MST without daylight saving |
73- | | such as Arizona |
74- +----------------------+-----------------------------------------------------+
75- | MST7MDT | Mountain Standard Time with daylight saving |
76- +----------------------+-----------------------------------------------------+
77- | NZ | |
78- +----------------------+-----------------------------------------------------+
79- | PRC | China |
80- +----------------------+-----------------------------------------------------+
81- | PST8PDT | Pacific Standard Time with daylight saving |
82- +----------------------+-----------------------------------------------------+
83- | ROC | Taipei |
84- +----------------------+-----------------------------------------------------+
85- | ROK | Republic of Korea |
86- +----------------------+-----------------------------------------------------+
87- | Singapore | |
88- +----------------------+-----------------------------------------------------+
89- | UCT | Universal Coordinated Time |
90- +----------------------+-----------------------------------------------------+
91- | UTC | Universal Coordinated Time |
92- +----------------------+-----------------------------------------------------+
93- | W-SU | Moscow |
94- +----------------------+-----------------------------------------------------+
95- | WET | West European Time |
96- +----------------------+-----------------------------------------------------+
13+ .. admonition :: Coming soon
14+ :class: tip
15+
16+ In later releases, the DockControl interface will give the application developer
17+ more control of the dock including:
18+
19+ - set the attached screens to different resolutions.
20+ - show different content on different attached monitors.
21+ - set WiFi credentials such as SSID and password.
22+
23+ .. method :: DockControl.suspend_host_connection(suspend: bool) -> None
24+
25+ Send a signal to suspend/resume the host connection when a host device, such as
26+ a laptop or a desktop, is connected.
27+
28+ This allows the python application to take control of the splashscreen, display
29+ pixels, and revoke connection to the dock.
30+
31+ .. caution ::
32+ Suspending the connection locks out the dock from access to both pixels and usb
33+ devices, effectively preventing its use as a dock.
34+
35+ The connection will be suspended until either a resume is sent, an
36+ unplug/plug cycle of the device happens, or power cycle of the dock.
37+
38+ .. caution ::
39+ The delay between requesting the suspend/resume signal and the actual
40+ suspension/resumption of the host connection is currently quite long
41+ - several seconds. This will be addressed in a future release.
42+
43+ .. code-block :: python
44+
45+ from dock import DockControl
46+
47+ control = DockControl()
48+ control.suspend_host_connection(True ) # Suspend host connection
49+ control.suspend_host_connection(False ) # Resume host connection
50+
51+ .. method :: DockControl.set_timezone(timezone: str) -> None
52+
53+ Set the timezone of the DL-7450 device. The parameter is a string which can be any of
54+ the accepted abbreviations from the `Time Zone Database. <https://www.iana.org/time-zones >`_
55+ For example:
56+
57+ .. code-block :: python
58+
59+ from dock import DockControl
60+
61+ control = DockControl()
62+ control.set_timezone(" PST8PDT" )
63+
64+ If an attempt is made to set a timezone that does not exist a `ValueError ` exception is raised.
65+ For an invalid type a `TypeError ` is raised.
66+
67+ .. admonition :: Coming soon
68+ :class: tip
69+
70+ In this preview a limited subset of the IANA timezones are supported.
71+
72+ +----------------------+-----------------------------------------------------+
73+ | Zone Code | Notes |
74+ +======================+=====================================================+
75+ | CET | Central European Time |
76+ +----------------------+-----------------------------------------------------+
77+ | CST6CDT | USA Central Standard Time with daylight saving |
78+ +----------------------+-----------------------------------------------------+
79+ | EET | Eastern European Time with daylight saving |
80+ +----------------------+-----------------------------------------------------+
81+ | EST | Eastern Standard Time |
82+ +----------------------+-----------------------------------------------------+
83+ | GB | UK/Eire with daylight saving |
84+ +----------------------+-----------------------------------------------------+
85+ | GMT | UK/Eire standard time |
86+ +----------------------+-----------------------------------------------------+
87+ | HST | Hawaii–Aleutian time |
88+ +----------------------+-----------------------------------------------------+
89+ | Hongkong | |
90+ +----------------------+-----------------------------------------------------+
91+ | Israel | |
92+ +----------------------+-----------------------------------------------------+
93+ | Japan | |
94+ +----------------------+-----------------------------------------------------+
95+ | MET | Same as CET |
96+ +----------------------+-----------------------------------------------------+
97+ | MST | A zone that observes MST without daylight saving |
98+ | | such as Arizona |
99+ +----------------------+-----------------------------------------------------+
100+ | MST7MDT | Mountain Standard Time with daylight saving |
101+ +----------------------+-----------------------------------------------------+
102+ | NZ | |
103+ +----------------------+-----------------------------------------------------+
104+ | PRC | China |
105+ +----------------------+-----------------------------------------------------+
106+ | PST8PDT | Pacific Standard Time with daylight saving |
107+ +----------------------+-----------------------------------------------------+
108+ | ROC | Taipei |
109+ +----------------------+-----------------------------------------------------+
110+ | ROK | Republic of Korea |
111+ +----------------------+-----------------------------------------------------+
112+ | Singapore | |
113+ +----------------------+-----------------------------------------------------+
114+ | UCT | Universal Coordinated Time |
115+ +----------------------+-----------------------------------------------------+
116+ | UTC | Universal Coordinated Time |
117+ +----------------------+-----------------------------------------------------+
118+ | W-SU | Moscow |
119+ +----------------------+-----------------------------------------------------+
120+ | WET | West European Time |
121+ +----------------------+-----------------------------------------------------+
0 commit comments