summaryrefslogtreecommitdiff
path: root/efl/elementary/need.pyx
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-02-23 18:49:05 +0000
committerKai Huuhko <kai.huuhko@gmail.com>2013-02-23 18:49:05 +0000
commit80f4db613376ee0e283cda3fea817da0265a8c8d (patch)
tree678a2934209d70f84215ce07ac9ce8cfe929ab5b /efl/elementary/need.pyx
parent0afa3be616759a4cf0b4621dc754f5d6acd6a483 (diff)
python-efl: Add 1.8 elm_need functions.
SVN revision: 84324
Diffstat (limited to 'efl/elementary/need.pyx')
-rw-r--r--efl/elementary/need.pyx120
1 files changed, 116 insertions, 4 deletions
diff --git a/efl/elementary/need.pyx b/efl/elementary/need.pyx
index 4e4dfe8..dec83c7 100644
--- a/efl/elementary/need.pyx
+++ b/efl/elementary/need.pyx
@@ -16,14 +16,126 @@
16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>. 16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
17 17
18def need_efreet(): 18def need_efreet():
19 """need_efreet() -> bool""" 19 """need_efreet() -> bool
20
21 Request that your elementary application needs Efreet
22
23 This initializes the Efreet library when called and if support exists
24 it returns True, otherwise returns False. This must be called
25 before any efreet calls.
26
27 :return: True if support exists and initialization succeeded.
28 :rtype: bool
29
30 """
20 return bool(elm_need_efreet()) 31 return bool(elm_need_efreet())
32
33def need_systray():
34 """need_systray() -> bool
35
36 Request that your elementary application needs Elm_Systray
37
38 This initializes the Elm_Systray when called and, if support exists,
39 returns True, otherwise returns False. This must be called
40 before any elm_systray calls.
41
42 :return: True if support exists and initialization succeeded.
43 :rtype: bool
44
45 """
46 return bool(elm_need_systray())
47
48def need_sys_notify():
49 """need_sys_notify() -> bool
50
51 Request that your elementary application needs Elm_Sys_Notify
52
53 This initializes the Elm_Sys_Notify when called and if support exists
54 it returns True, otherwise returns False. This must be called
55 before any elm_sys_notify calls.
56
57 :return: True if support exists and initialization succeeded.
58 :rtype: bool
59
60 """
61 return bool(elm_need_sys_notify())
62
21def need_e_dbus(): 63def need_e_dbus():
22 """need_e_dbus() -> bool""" 64 """need_e_dbus() -> bool
65
66 Request that your elementary application needs e_dbus
67
68 This initializes the E_dbus library when called and if support exists
69 it returns True, otherwise returns False. This must be called
70 before any e_dbus calls.
71
72 :return: True if support exists and initialization succeeded.
73 :rtype: bool
74
75 :deprecated: Use :py:func:`need_edbus` for EDBus (v2) support. Old API is
76 deprecated.
77
78 """
23 return bool(elm_need_e_dbus()) 79 return bool(elm_need_e_dbus())
80
81def need_edbus():
82 """need_edbus() -> bool
83
84 Request that your elementary application needs edbus
85
86 This initializes the edbus (aka v2) library when called and if
87 support exists it returns True, otherwise returns
88 False. This must be called before any edbus calls.
89
90 :return: True if support exists and initialization succeeded.
91 :rtype: bool
92
93 """
94 return bool(elm_need_edbus())
95
96def need_elocation():
97 """need_elocation() -> bool
98
99 Request that your elementary application needs elocation
100
101 This initializes the elocation library when called and if
102 support exists it returns True, otherwise returns
103 False. This must be called before any elocation usage.
104
105 :return: True if support exists and initialization succeeded.
106 :rtype: bool
107
108 """
109 return bool(elm_need_elocation())
110
24def need_ethumb(): 111def need_ethumb():
25 """need_ethumb() -> bool""" 112 """need_ethumb() -> bool
113
114 Request that your elementary application needs ethumb
115
116 This initializes the Ethumb library when called and if support exists
117 it returns True, otherwise returns False.
118 This must be called before any other function that deals with
119 elm_thumb objects or ethumb_client instances.
120
121 :return: True if support exists and initialization succeeded.
122 :rtype: bool
123
124 """
26 return bool(elm_need_ethumb()) 125 return bool(elm_need_ethumb())
126
27def need_web(): 127def need_web():
28 """need_web() -> bool""" 128 """need_web() -> bool
129
130 Request that your elementary application needs web support
131
132 This initializes the Ewebkit library when called and if support exists
133 it returns True, otherwise returns False.
134 This must be called before any other function that deals with
135 elm_web objects or ewk_view instances.
136
137 :return: True if support exists and initialization succeeded.
138 :rtype: bool
139
140 """
29 return bool(elm_need_web()) 141 return bool(elm_need_web())