KDECore
Go to the documentation of this file.
24 #include <QTextStream>
27 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
28 "<!DOCTYPE policyconfig PUBLIC\n"
29 "\"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN\"\n"
30 "\"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd\">\n"
35 " <allow_inactive>no</allow_inactive>\n"
36 " <allow_active>%1</allow_active>\n"
45 QTextStream out(stdout);
46 out.setCodec(
"UTF-8");
50 foreach(
const Action &action, actions) {
51 out <<
dent <<
"<action id=\"" << action.
name <<
"\" >\n";
54 out <<
dent <<
dent <<
"<description";
56 out <<
" xml:lang=\"" << lang <<
'"';
57 out << '>
' << action.messages.value(lang) << "</description>\n";
60 foreach(const QString& lang, action.messages.keys()) {
61 out << dent << dent << "<message";
63 out << " xml:lang=\"" << lang << '"';
64 out << '>' << action.descriptions.value(lang) << "</
message>\n
";
67 QString policy = action.policy;
68 if (!action.persistence.isEmpty())
69 policy += "_keep_
" + action.persistence;
71 out << QString(policy_tag).arg(policy);
73 out << dent << "</action>\n
";
76 out << "</policyconfig>\n
";
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 20:55:35 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.