1
<?xml version="1.0" encoding="UTF-8"?>
3
<class>PkExample</class>
4
<widget class="QMainWindow" name="PkExample">
5
<property name="geometry">
13
<property name="windowTitle">
14
<string>PolicyKit-qt example</string>
16
<widget class="QWidget" name="centralwidget">
17
<layout class="QHBoxLayout" name="horizontalLayout">
19
<layout class="QGridLayout" name="gridLayout" columnstretch="3,1">
20
<item row="0" column="0">
21
<widget class="QLabel" name="kickL">
22
<property name="text">
23
<string>Making the helper <b>Kick</b> is not allowed. Action cannot be triggered.</string>
25
<property name="wordWrap">
30
<item row="0" column="1">
31
<widget class="QPushButton" name="kickPB">
32
<property name="text">
33
<string>Kick!</string>
37
<item row="1" column="0">
38
<widget class="QLabel" name="cryL">
39
<property name="text">
40
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
41
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
42
p, li { white-space: pre-wrap; }
43
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
44
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Making the helper <span style=" font-weight:600;">Cry</span> is always allowed. Action can be triggered without authentication.</p></body></html></string>
46
<property name="wordWrap">
51
<item row="1" column="1">
52
<widget class="QPushButton" name="cryPB">
53
<property name="text">
58
<item row="2" column="0">
59
<widget class="QLabel" name="bleedL">
60
<property name="text">
61
<string>Making the helper <b>Bleed</b> requires the user to authenticate. This is a one-shot authorization.</string>
63
<property name="wordWrap">
68
<item row="2" column="1">
69
<widget class="QPushButton" name="bleedPB">
70
<property name="text">
71
<string>Bleed!</string>
75
<item row="3" column="0">
76
<widget class="QLabel" name="playL">
77
<property name="text">
78
<string>Making the helper <b>Play</b> requires a system administrator to authenticate. This is a one-shot authorization.</string>
80
<property name="wordWrap">
85
<item row="3" column="1">
86
<widget class="QPushButton" name="playPB">
87
<property name="text">
88
<string>Play!</string>
92
<item row="4" column="0">
93
<widget class="QLabel" name="listenL">
94
<property name="text">
95
<string>Making the helper <b>Listen</b> requires the user to authenticate. The authorization will be kept for a brief period.</string>
97
<property name="wordWrap">
102
<item row="4" column="1">
103
<widget class="QPushButton" name="listenPB">
104
<property name="text">
105
<string>Listen!</string>
109
<item row="5" column="0">
110
<widget class="QLabel" name="deleteL">
111
<property name="text">
112
<string>Making the helper <b>Delete</b> requires a system administrator to authenticate. The authorization will be kept for a brief period.</string>
114
<property name="wordWrap">
119
<item row="5" column="1">
120
<widget class="QPushButton" name="deletePB">
121
<property name="text">
122
<string>Delete!</string>
126
<item row="6" column="0" rowspan="2">
127
<widget class="QLabel" name="deleteL_2">
128
<property name="text">
129
<string><b>Set</b> is special action. It sets the permissions for the <b>Shout</b> action by actually using the helper application to change the implicit authorization.</string>
131
<property name="wordWrap">
136
<item row="6" column="1">
137
<widget class="QComboBox" name="setCB">
139
<property name="text">
144
<property name="text">
149
<property name="text">
150
<string>auth_self</string>
154
<property name="text">
155
<string>auth_admin</string>
159
<property name="text">
160
<string>auth_self_keep</string>
164
<property name="text">
165
<string>auth_admin_keep</string>
170
<item row="7" column="1">
171
<widget class="QPushButton" name="setPB">
172
<property name="text">
173
<string>Set!</string>
177
<item row="8" column="0">
178
<widget class="QLabel" name="deleteL_3">
179
<property name="text">
180
<string>The implicit authorization for the <b>Shout</b> action is set by the <b>Set</b> action. You can watch how different options can change behaviour of this action.</string>
182
<property name="wordWrap">
187
<item row="8" column="1">
188
<widget class="QPushButton" name="shoutPB">
189
<property name="text">
190
<string>Shout!</string>
197
<widget class="QListWidget" name="actionList"/>
201
<widget class="QMenuBar" name="menubar">
202
<property name="geometry">
210
<widget class="QMenu" name="menuActions">
211
<property name="title">
212
<string>Actions</string>
215
<addaction name="menuActions"/>
217
<widget class="QToolBar" name="toolBar">
218
<property name="windowTitle">
219
<string>toolBar</string>
221
<property name="toolButtonStyle">
222
<enum>Qt::ToolButtonTextUnderIcon</enum>
224
<attribute name="toolBarArea">
225
<enum>TopToolBarArea</enum>
227
<attribute name="toolBarBreak">