Cherry-picking upstream version 0.10.0.

Set minimum version for liblxqt and libqtxdg
ubuntu/cosmic debian/0.10.0-1
Alf Gaida 9 years ago
parent 2000e8e887
commit 3778e468b0

1
.gitignore vendored

@ -0,0 +1 @@
build

@ -1,9 +1,8 @@
GNU LESSER GENERAL PUBLIC LICENSE GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999 Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc. Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed. of this license document, but changing it is not allowed.
@ -23,8 +22,7 @@ specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations strategy to use in any particular case, based on the explanations below.
below.
When we speak of free software, we are referring to freedom of use, When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that not price. Our General Public Licenses are designed to make sure that
@ -89,9 +87,9 @@ libraries. However, the Lesser license provides advantages in certain
special circumstances. special circumstances.
For example, on rare occasions, there may be a special need to For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it encourage the widest possible use of a certain library, so that it becomes
becomes a de-facto standard. To achieve this, non-free programs must a de-facto standard. To achieve this, non-free programs must be
be allowed to use the library. A more frequent case is that a free allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License. software only, so we use the Lesser General Public License.
@ -138,8 +136,8 @@ included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for "Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control interface definition files, plus the scripts used to control compilation
compilation and installation of the library. and installation of the library.
Activities other than copying, distribution and modification are not Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of covered by this License; they are outside its scope. The act of
@ -305,10 +303,10 @@ of these things:
the user installs one, as long as the modified version is the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with. interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at least c) Accompany the work with a written offer, valid for at
three years, to give the same user the materials specified in least three years, to give the same user the materials
Subsection 6a, above, for a charge no more than the cost of specified in Subsection 6a, above, for a charge no more
performing this distribution. than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above from a designated place, offer equivalent access to copy the above
@ -386,10 +384,9 @@ all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library. refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under If any portion of this section is held invalid or unenforceable under any
any particular circumstance, the balance of the section is intended to particular circumstance, the balance of the section is intended to apply,
apply, and the section as a whole is intended to apply in other and the section as a whole is intended to apply in other circumstances.
circumstances.
It is not the purpose of this section to induce you to infringe any It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any patents or other property right claims or to contest validity of any
@ -407,11 +404,11 @@ be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in 12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License original copyright holder who places the Library under this License may add
may add an explicit geographical distribution limitation excluding those an explicit geographical distribution limitation excluding those countries,
countries, so that distribution is permitted only in or among so that distribution is permitted only in or among countries not thus
countries not thus excluded. In such case, this License incorporates excluded. In such case, this License incorporates the limitation as if
the limitation as if written in the body of this License. written in the body of this License.
13. The Free Software Foundation may publish revised and/or new 13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time. versions of the Lesser General Public License from time to time.

@ -0,0 +1,11 @@
# lxqt-notificationd
The LXQt Notification daemon
## Spec
lxqt-notificationd follows the Desktop Notifications Specification version 1.2.
It can be found here:
* https://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.html

@ -30,17 +30,17 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="74"/> <location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source> <source>Some notifications set their own on-screen duration.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="86"/> <location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source> <source>Default duration:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="93"/> <location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

@ -30,17 +30,17 @@
<translation>Dauer</translation> <translation>Dauer</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="74"/> <location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source> <source>Some notifications set their own on-screen duration.</source>
<translation>Einige Benachrichtigungen setzen ihre eigene Anzeigedauer.</translation> <translation>Einige Benachrichtigungen setzen ihre eigene Anzeigedauer.</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="86"/> <location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source> <source>Default duration:</source>
<translation>Standarddauer:</translation> <translation>Standarddauer:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="93"/> <location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation> s</translation> <translation> s</translation>
</message> </message>

@ -30,17 +30,17 @@
<translation>Διάρκεια</translation> <translation>Διάρκεια</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="74"/> <location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source> <source>Some notifications set their own on-screen duration.</source>
<translation>Μερικές ειδοποιήσεις καθορίζουν τη δική τους διάρκεια εμφάνισης.</translation> <translation>Μερικές ειδοποιήσεις καθορίζουν τη δική τους διάρκεια εμφάνισης.</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="86"/> <location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source> <source>Default duration:</source>
<translation>Διάρκεια εξ ορισμού:</translation> <translation>Διάρκεια εξ ορισμού:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="93"/> <location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation> δευτ</translation> <translation> δευτ</translation>
</message> </message>

@ -1,105 +1,148 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.0" language="hr_HR"> <TS version="2.1" language="hr_HR">
<context> <context>
<name>AdvancedSettings</name> <name>AdvancedSettings</name>
<message> <message>
<source>Menu Configuration</source> <source>Menu Configuration</source>
<translation type="unfinished">Konfiguracija izbornika</translation> <translation type="obsolete">Konfiguracija izbornika</translation>
</message> </message>
<message> <message>
<source>Notification Duration</source> <source>Notification Duration</source>
<translation type="unfinished">Trajanje obavijesti</translation> <translation type="obsolete">Trajanje obavijesti</translation>
</message> </message>
<message> <message>
<source>For some the notification&apos;s expiration time is dependent on the notification server&apos;s settings.</source> <source>For some the notification&apos;s expiration time is dependent on the notification server&apos;s settings.</source>
<translation type="unfinished">Za neke obavijesti&apos;s vrijeme istjecanja ovisi o postavkama poslužitelja&apos;s obavijesti</translation> <translation type="obsolete">Za neke obavijesti&apos;s vrijeme istjecanja ovisi o postavkama poslužitelja&apos;s obavijesti</translation>
</message> </message>
<message> <message>
<source>&quot;Server Decides&quot; Time:</source> <location filename="../advancedsettings.ui" line="25"/>
<source>Width:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="49"/>
<source>Spacing:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="68"/>
<source>Duration</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation type="unfinished">sek</translation> <translation type="unfinished">sek</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="17"/>
<source>Sizes</source> <source>Sizes</source>
<translation type="unfinished">Veličine</translation> <translation type="unfinished">Veličine</translation>
</message> </message>
<message> <message>
<source>Notification Spacing:</source> <source>Notification Spacing:</source>
<translation type="unfinished">Razmak obavijesti</translation> <translation type="obsolete">Razmak obavijesti</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="32"/>
<location filename="../advancedsettings.ui" line="56"/>
<source> px</source> <source> px</source>
<translation type="unfinished"> px</translation> <translation type="unfinished"> px</translation>
</message> </message>
<message> <message>
<source>Notification Width:</source> <source>Notification Width:</source>
<translation type="unfinished">Širina obavijesti</translation> <translation type="obsolete">Širina obavijesti</translation>
</message> </message>
</context> </context>
<context> <context>
<name>BasicSettings</name> <name>BasicSettings</name>
<message> <message>
<location filename="../basicsettings.ui" line="23"/>
<source>Basic Settings</source> <source>Basic Settings</source>
<translation type="unfinished">Osnovne postavke</translation> <translation type="unfinished">Osnovne postavke</translation>
</message> </message>
<message>
<location filename="../basicsettings.ui" line="30"/>
<source>Position on screen</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Display Notifications</source> <source>Display Notifications</source>
<translation type="unfinished">Prikaži obavijesti</translation> <translation type="obsolete">Prikaži obavijesti</translation>
</message> </message>
<message> <message>
<source>Top/Left</source> <source>Top/Left</source>
<translation type="unfinished">Gore/lijevo</translation> <translation type="obsolete">Gore/lijevo</translation>
</message> </message>
<message> <message>
<source>Top/Right</source> <source>Top/Right</source>
<translation type="unfinished">Gore/desno</translation> <translation type="obsolete">Gore/desno</translation>
</message> </message>
<message> <message>
<source>Bottom/Left</source> <source>Bottom/Left</source>
<translation type="unfinished">Dolje/lijevo</translation> <translation type="obsolete">Dolje/lijevo</translation>
</message> </message>
<message> <message>
<source>Bottom/Right</source> <source>Bottom/Right</source>
<translation type="unfinished">Dolje/desno</translation> <translation type="obsolete">Dolje/desno</translation>
</message> </message>
<message> <message>
<source>Test Notification</source> <source>Test Notification</source>
<translation type="unfinished">Isprobaj obavijesti</translation> <translation type="obsolete">Isprobaj obavijesti</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="57"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running. <source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running.
A fallback will be used.</source> A fallback will be used.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="60"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running. <source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running.
These settings won&apos;t have an effect on it!</source> These settings won&apos;t have any effect on it!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Notification Summary</source> <location filename="../basicsettings.cpp" line="117"/>
<translation type="unfinished">Sažetak obavijesti</translation> <source>Notification demo </source>
<translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Notification Body</source> <location filename="../basicsettings.cpp" line="118"/>
<source>This is a test notification.
All notifications will now appear here on LXQt.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Notification Summary</source>
<translation type="obsolete">Sažetak obavijesti</translation>
</message>
</context> </context>
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../mainwindow.cpp" line="40"/>
<source>Desktop Notifications</source> <source>Desktop Notifications</source>
<translation type="unfinished">Obavijesti radne površine</translation> <translation type="unfinished">Obavijesti radne površine</translation>
</message> </message>
<message> <message>
<location filename="../mainwindow.cpp" line="43"/>
<source>Basic Settings</source> <source>Basic Settings</source>
<translation type="unfinished">Osnovne postavke</translation> <translation type="unfinished">Osnovne postavke</translation>
</message> </message>
<message> <message>
<location filename="../mainwindow.cpp" line="47"/>
<source>Advanced Settings</source> <source>Advanced Settings</source>
<translation type="unfinished">Napredne postavke</translation> <translation type="unfinished">Napredne postavke</translation>
</message> </message>

@ -30,17 +30,17 @@
<translation>Tartam</translation> <translation>Tartam</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="74"/> <location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source> <source>Some notifications set their own on-screen duration.</source>
<translation>Egyes értesítések megjelenési ideje</translation> <translation>Egyes értesítések megjelenési ideje</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="86"/> <location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source> <source>Default duration:</source>
<translation>Alapértelmezett tartam:</translation> <translation>Alapértelmezett tartam:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="93"/> <location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation> mp</translation> <translation> mp</translation>
</message> </message>
@ -58,49 +58,54 @@
<translation>Hely</translation> <translation>Hely</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="36"/>
<source>Top/Left</source> <source>Top/Left</source>
<translation>Balra fenn</translation> <translation type="vanished">Balra fenn</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="43"/>
<source>Top/Right</source> <source>Top/Right</source>
<translation>Jobbra fenn</translation> <translation type="vanished">Jobbra fenn</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="50"/>
<source>Bottom/Left</source> <source>Bottom/Left</source>
<translation>Balra lenn</translation> <translation type="vanished">Balra lenn</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="57"/>
<source>Bottom/Right</source> <source>Bottom/Right</source>
<translation>Jobbra lenn</translation> <translation type="vanished">Jobbra lenn</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="53"/> <location filename="../basicsettings.cpp" line="57"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running. <source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running.
A fallback will be used.</source> A fallback will be used.</source>
<translation>&lt;b&gt;Figyelem:&lt;/b&gt; Értesítő démon nem fut. <translation>&lt;b&gt;Figyelem:&lt;/b&gt; Értesítő démon nem fut.
A vésztartalék használatos.</translation> A vésztartalék használatos.</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="59"/> <location filename="../basicsettings.cpp" line="60"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running. <source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running.
These settings won&apos;t have any effect on it!</source> These settings won&apos;t have any effect on it!</source>
<translation>&lt;b&gt;Figyelem:&lt;/b&gt; A (%1) démont már valaki futtatja. <translation>&lt;b&gt;Figyelem:&lt;/b&gt; A (%1) démont már valaki futtatja.
Ezek a beállítások arra már hatástalanok!</translation> Ezek a beállítások arra már hatástalanok!</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="98"/> <location filename="../basicsettings.cpp" line="117"/>
<source>Notification demo </source> <source>Notification demo </source>
<translation>Értesítési bemutató</translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="99"/> <location filename="../basicsettings.cpp" line="118"/>
<source>This is a test notification. <source>This is a test notification.
All notifications will now appear here on LXQt.</source> All notifications will now appear here on LXQt.</source>
<translation>Az értesítés tesztje <translation type="unfinished"></translation>
</message>
<message>
<source>Notification demo</source>
<translation type="vanished">Értesítési bemutató</translation>
</message>
<message>
<source>This is a test notification.
All notifications will now appear here on LXQt.</source>
<translation type="vanished">Az értesítés tesztje
Minden értesítést megjelenít az LXQt.</translation> Minden értesítést megjelenít az LXQt.</translation>
</message> </message>
</context> </context>

@ -5,104 +5,160 @@
<name>AdvancedSettings</name> <name>AdvancedSettings</name>
<message> <message>
<source>Menu Configuration</source> <source>Menu Configuration</source>
<translation>Configurazione del menu</translation> <translation type="vanished">Configurazione del menu</translation>
</message> </message>
<message> <message>
<source>Notification Duration</source> <source>Notification Duration</source>
<translation>Durata delle notifiche</translation> <translation type="vanished">Durata delle notifiche</translation>
</message> </message>
<message> <message>
<source>For some the notification&apos;s expiration time is dependent on the notification server&apos;s settings.</source> <source>For some the notification&apos;s expiration time is dependent on the notification server&apos;s settings.</source>
<translation>Per alcune notifiche il tempo dipende dalle impostazioni del server delle notifiche.</translation> <translation type="vanished">Per alcune notifiche il tempo dipende dalle impostazioni del server delle notifiche.</translation>
</message> </message>
<message> <message>
<source>&quot;Server Decides&quot; Time:</source> <source>&quot;Server Decides&quot; Time:</source>
<translation>Tempo di decisioni del server:</translation> <translation type="vanished">Tempo di decisioni del server:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="25"/>
<source>Width:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="49"/>
<source>Spacing:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="68"/>
<source>Duration</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation> sec</translation> <translation> sec</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="17"/>
<source>Sizes</source> <source>Sizes</source>
<translation>Dimensione</translation> <translation>Dimensione</translation>
</message> </message>
<message> <message>
<source>Notification Spacing:</source> <source>Notification Spacing:</source>
<translatorcomment>a cosa si riferisce??</translatorcomment> <translatorcomment>a cosa si riferisce??</translatorcomment>
<translation type="unfinished">Spazing:</translation> <translation type="obsolete">Spazing:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="32"/>
<location filename="../advancedsettings.ui" line="56"/>
<source> px</source> <source> px</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Notification Width:</source> <source>Notification Width:</source>
<translation>Larghezza:</translation> <translation type="vanished">Larghezza:</translation>
</message> </message>
</context> </context>
<context> <context>
<name>BasicSettings</name> <name>BasicSettings</name>
<message> <message>
<location filename="../basicsettings.ui" line="23"/>
<source>Basic Settings</source> <source>Basic Settings</source>
<translation>Impostazioni base</translation> <translation>Impostazioni base</translation>
</message> </message>
<message>
<location filename="../basicsettings.ui" line="30"/>
<source>Position on screen</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Display Notifications</source> <source>Display Notifications</source>
<translation>Mostra notifiche</translation> <translation type="vanished">Mostra notifiche</translation>
</message> </message>
<message> <message>
<source>Top/Left</source> <source>Top/Left</source>
<translation>Alto a sinistra</translation> <translation type="vanished">Alto a sinistra</translation>
</message> </message>
<message> <message>
<source>Top/Right</source> <source>Top/Right</source>
<translation>Alto a destra</translation> <translation type="vanished">Alto a destra</translation>
</message> </message>
<message> <message>
<source>Bottom/Left</source> <source>Bottom/Left</source>
<translation>Fondo a sinistra</translation> <translation type="vanished">Fondo a sinistra</translation>
</message> </message>
<message> <message>
<source>Bottom/Right</source> <source>Bottom/Right</source>
<translation>Fondo a destra</translation> <translation type="vanished">Fondo a destra</translation>
</message> </message>
<message> <message>
<source>Test Notification</source> <source>Test Notification</source>
<translation>Notifica di prova</translation> <translation type="vanished">Notifica di prova</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="57"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running. <source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running.
A fallback will be used.</source> A fallback will be used.</source>
<translation>&lt;b&gt;Attenzione:&lt;/b&gt; Nessun demone di notifiche è in esecuzione. <translation>&lt;b&gt;Attenzione:&lt;/b&gt; Nessun demone di notifiche è in esecuzione.
Sarà usato un sistema di riserva.</translation> Sarà usato un sistema di riserva.</translation>
</message> </message>
<message>
<location filename="../basicsettings.cpp" line="60"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running.
These settings won&apos;t have any effect on it!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../basicsettings.cpp" line="117"/>
<source>Notification demo </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../basicsettings.cpp" line="118"/>
<source>This is a test notification.
All notifications will now appear here on LXQt.</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running. <source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running.
These settings won&apos;t have an effect on it!</source> These settings won&apos;t have an effect on it!</source>
<translation>&lt;b&gt;Attenzione:&lt;/b&gt; Un altro demone di notifiche (%1) è in esecuzione. <translation type="vanished">&lt;b&gt;Attenzione:&lt;/b&gt; Un altro demone di notifiche (%1) è in esecuzione.
Queste impostazioni non avranno effetto su quello!</translation> Queste impostazioni non avranno effetto su quello!</translation>
</message> </message>
<message> <message>
<source>Notification Summary</source> <source>Notification Summary</source>
<translation>Sommario della notifica</translation> <translation type="vanished">Sommario della notifica</translation>
</message> </message>
<message> <message>
<source>Notification Body</source> <source>Notification Body</source>
<translation>Corpo della notifica</translation> <translation type="vanished">Corpo della notifica</translation>
</message> </message>
</context> </context>
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../mainwindow.cpp" line="40"/>
<source>Desktop Notifications</source> <source>Desktop Notifications</source>
<translation type="unfinished">Notificazioni Desktop</translation> <translation type="unfinished">Notificazioni Desktop</translation>
</message> </message>
<message> <message>
<location filename="../mainwindow.cpp" line="43"/>
<source>Basic Settings</source> <source>Basic Settings</source>
<translation>Impostazioni base</translation> <translation>Impostazioni base</translation>
</message> </message>
<message> <message>
<location filename="../mainwindow.cpp" line="47"/>
<source>Advanced Settings</source> <source>Advanced Settings</source>
<translation>Impostazioni avanzate</translation> <translation>Impostazioni avanzate</translation>
</message> </message>

@ -1,107 +1,163 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.0" language="pt"> <TS version="2.1" language="pt">
<context> <context>
<name>AdvancedSettings</name> <name>AdvancedSettings</name>
<message> <message>
<source>Menu Configuration</source> <source>Menu Configuration</source>
<translation>Configuração do menu</translation> <translation type="vanished">Configuração do menu</translation>
</message> </message>
<message> <message>
<source>Notification Duration</source> <source>Notification Duration</source>
<translation>Duração da notificação</translation> <translation type="vanished">Duração da notificação</translation>
</message> </message>
<message> <message>
<source>For some the notification&apos;s expiration time is dependent on the notification server&apos;s settings.</source> <source>For some the notification&apos;s expiration time is dependent on the notification server&apos;s settings.</source>
<translation>Para algumas notificações, o tempo limite depende das definições das notificações do servidor.</translation> <translation type="vanished">Para algumas notificações, o tempo limite depende das definições das notificações do servidor.</translation>
</message> </message>
<message> <message>
<source>&quot;Server Decides&quot; Time:</source> <source>&quot;Server Decides&quot; Time:</source>
<translation>Tempo para &quot;Decisão do servidor&quot;:</translation> <translation type="vanished">Tempo para &quot;Decisão do servidor&quot;:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="25"/>
<source>Width:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="49"/>
<source>Spacing:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="68"/>
<source>Duration</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation> seg</translation> <translation> seg</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="17"/>
<source>Sizes</source> <source>Sizes</source>
<translation>Tamanhos</translation> <translation>Tamanhos</translation>
</message> </message>
<message> <message>
<source>Notification Spacing:</source> <source>Notification Spacing:</source>
<translation>Espaçamento da notificação:</translation> <translation type="vanished">Espaçamento da notificação:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="32"/>
<location filename="../advancedsettings.ui" line="56"/>
<source> px</source> <source> px</source>
<translation> px</translation> <translation> px</translation>
</message> </message>
<message> <message>
<source>Notification Width:</source> <source>Notification Width:</source>
<translation>Largura da notificaçao:</translation> <translation type="vanished">Largura da notificaçao:</translation>
</message> </message>
</context> </context>
<context> <context>
<name>BasicSettings</name> <name>BasicSettings</name>
<message> <message>
<location filename="../basicsettings.ui" line="23"/>
<source>Basic Settings</source> <source>Basic Settings</source>
<translation>Definições básicas</translation> <translation>Definições básicas</translation>
</message> </message>
<message>
<location filename="../basicsettings.ui" line="30"/>
<source>Position on screen</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Display Notifications</source> <source>Display Notifications</source>
<translation>Mostrar notificações</translation> <translation type="vanished">Mostrar notificações</translation>
</message> </message>
<message> <message>
<source>Top/Left</source> <source>Top/Left</source>
<translation>Cima/Esquerda</translation> <translation type="vanished">Cima/Esquerda</translation>
</message> </message>
<message> <message>
<source>Top/Right</source> <source>Top/Right</source>
<translation>Cima/Direita</translation> <translation type="vanished">Cima/Direita</translation>
</message> </message>
<message> <message>
<source>Bottom/Left</source> <source>Bottom/Left</source>
<translation>Baixo/Esquerda</translation> <translation type="vanished">Baixo/Esquerda</translation>
</message> </message>
<message> <message>
<source>Bottom/Right</source> <source>Bottom/Right</source>
<translation>Baixo/Direita</translation> <translation type="vanished">Baixo/Direita</translation>
</message> </message>
<message> <message>
<source>Test Notification</source> <source>Test Notification</source>
<translation>Testar notificação</translation> <translation type="vanished">Testar notificação</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="57"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running. <source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running.
A fallback will be used.</source> A fallback will be used.</source>
<translation>&lt;b&gt;Aviso:&lt;/b&gt; o serviço de notificaçoes não está em execução. <translation>&lt;b&gt;Aviso:&lt;/b&gt; o serviço de notificaçoes não está em execução.
Será utilizada uma solução alternativa.</translation> Será utilizada uma solução alternativa.</translation>
</message> </message>
<message>
<location filename="../basicsettings.cpp" line="60"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running.
These settings won&apos;t have any effect on it!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../basicsettings.cpp" line="117"/>
<source>Notification demo </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../basicsettings.cpp" line="118"/>
<source>This is a test notification.
All notifications will now appear here on LXQt.</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running. <source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running.
These settings won&apos;t have an effect on it!</source> These settings won&apos;t have an effect on it!</source>
<translation>&lt;b&gt;Aviso:&lt;/b&gt; já está a ser executado um serviço de notificações (%1). <translation type="vanished">&lt;b&gt;Aviso:&lt;/b&gt; já está a ser executado um serviço de notificações (%1).
Estas definições não produzirão qualquer efeito!</translation> Estas definições não produzirão qualquer efeito!</translation>
</message> </message>
<message> <message>
<source>Notification Summary</source> <source>Notification Summary</source>
<translation>Resumo da notificação</translation> <translation type="vanished">Resumo da notificação</translation>
</message> </message>
<message> <message>
<source>Notification Body</source> <source>Notification Body</source>
<translation>Corpo da notificação</translation> <translation type="vanished">Corpo da notificação</translation>
</message> </message>
</context> </context>
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="../mainwindow.cpp" line="40"/>
<source>Desktop Notifications</source> <source>Desktop Notifications</source>
<translation>Notificações do ambiente de trabalho</translation> <translation>Notificações do ambiente de trabalho</translation>
</message> </message>
<message> <message>
<location filename="../mainwindow.cpp" line="43"/>
<source>Basic Settings</source> <source>Basic Settings</source>
<translation>Definições básicas</translation> <translation>Definições básicas</translation>
</message> </message>
<message> <message>
<location filename="../mainwindow.cpp" line="47"/>
<source>Advanced Settings</source> <source>Advanced Settings</source>
<translation>Definições avançadas</translation> <translation>Definições avançadas</translation>
</message> </message>

@ -30,17 +30,17 @@
<translation>Длительность</translation> <translation>Длительность</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="74"/> <location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source> <source>Some notifications set their own on-screen duration.</source>
<translation>Некоторые уведомления сами устанавливают свою длительность на экране.</translation> <translation>Некоторые уведомления сами устанавливают свою длительность на экране.</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="86"/> <location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source> <source>Default duration:</source>
<translation>Длительность по умолчанию:</translation> <translation>Длительность по умолчанию:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="93"/> <location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation> сек</translation> <translation> сек</translation>
</message> </message>
@ -58,49 +58,54 @@
<translation>Расположение на экране</translation> <translation>Расположение на экране</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="36"/>
<source>Top/Left</source> <source>Top/Left</source>
<translation>Вверху слева</translation> <translation type="vanished">Вверху слева</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="43"/>
<source>Top/Right</source> <source>Top/Right</source>
<translation>Вверху справа</translation> <translation type="vanished">Вверху справа</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="50"/>
<source>Bottom/Left</source> <source>Bottom/Left</source>
<translation>Внизу слева</translation> <translation type="vanished">Внизу слева</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="57"/>
<source>Bottom/Right</source> <source>Bottom/Right</source>
<translation>Внизу справа</translation> <translation type="vanished">Внизу справа</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="53"/> <location filename="../basicsettings.cpp" line="57"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running. <source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running.
A fallback will be used.</source> A fallback will be used.</source>
<translation>&lt;b&gt;Внимание:&lt;/b&gt; Демон уведомлений не запущен. <translation>&lt;b&gt;Внимание:&lt;/b&gt; Демон уведомлений не запущен.
Будет использован резервный вариант.</translation> Будет использован резервный вариант.</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="59"/> <location filename="../basicsettings.cpp" line="60"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running. <source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running.
These settings won&apos;t have any effect on it!</source> These settings won&apos;t have any effect on it!</source>
<translation>&lt;b&gt;Внимание:&lt;/b&gt; Демон уведомлений третьей сторон (%1) запущен. <translation>&lt;b&gt;Внимание:&lt;/b&gt; Демон уведомлений третьей сторон (%1) запущен.
Эти настройки не будут иметь никакого эффекта для него!</translation> Эти настройки не будут иметь никакого эффекта для него!</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="98"/> <location filename="../basicsettings.cpp" line="117"/>
<source>Notification demo </source> <source>Notification demo </source>
<translation>Демонстрация уведомления</translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="99"/> <location filename="../basicsettings.cpp" line="118"/>
<source>This is a test notification. <source>This is a test notification.
All notifications will now appear here on LXQt.</source> All notifications will now appear here on LXQt.</source>
<translation>Это тестовое уведомление. <translation type="unfinished"></translation>
</message>
<message>
<source>Notification demo</source>
<translation type="vanished">Демонстрация уведомления</translation>
</message>
<message>
<source>This is a test notification.
All notifications will now appear here on LXQt.</source>
<translation type="vanished">Это тестовое уведомление.
Все уведомления на LXQt будут появляться здесь.</translation> Все уведомления на LXQt будут появляться здесь.</translation>
</message> </message>
</context> </context>

@ -30,17 +30,17 @@
<translation>Длительность</translation> <translation>Длительность</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="74"/> <location filename="../advancedsettings.ui" line="80"/>
<source>Some notifications set their own on-screen duration.</source> <source>Some notifications set their own on-screen duration.</source>
<translation>Некоторые уведомления сами устанавливают свою длительность на экране.</translation> <translation>Некоторые уведомления сами устанавливают свою длительность на экране.</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="86"/> <location filename="../advancedsettings.ui" line="92"/>
<source>Default duration:</source> <source>Default duration:</source>
<translation>Длительность по умолчанию:</translation> <translation>Длительность по умолчанию:</translation>
</message> </message>
<message> <message>
<location filename="../advancedsettings.ui" line="93"/> <location filename="../advancedsettings.ui" line="99"/>
<source> sec</source> <source> sec</source>
<translation> сек</translation> <translation> сек</translation>
</message> </message>
@ -58,49 +58,54 @@
<translation>Расположение на экране</translation> <translation>Расположение на экране</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="36"/>
<source>Top/Left</source> <source>Top/Left</source>
<translation>Вверху слева</translation> <translation type="vanished">Вверху слева</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="43"/>
<source>Top/Right</source> <source>Top/Right</source>
<translation>Вверху справа</translation> <translation type="vanished">Вверху справа</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="50"/>
<source>Bottom/Left</source> <source>Bottom/Left</source>
<translation>Внизу слева</translation> <translation type="vanished">Внизу слева</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.ui" line="57"/>
<source>Bottom/Right</source> <source>Bottom/Right</source>
<translation>Внизу справа</translation> <translation type="vanished">Внизу справа</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="53"/> <location filename="../basicsettings.cpp" line="57"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running. <source>&lt;b&gt;Warning:&lt;/b&gt; No notifications daemon is running.
A fallback will be used.</source> A fallback will be used.</source>
<translation>&lt;b&gt;Внимание:&lt;/b&gt; Демон уведомлений не запущен. <translation>&lt;b&gt;Внимание:&lt;/b&gt; Демон уведомлений не запущен.
Будет использован резервный вариант.</translation> Будет использован резервный вариант.</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="59"/> <location filename="../basicsettings.cpp" line="60"/>
<source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running. <source>&lt;b&gt;Warning:&lt;/b&gt; A third-party notifications daemon (%1) is running.
These settings won&apos;t have any effect on it!</source> These settings won&apos;t have any effect on it!</source>
<translation>&lt;b&gt;Внимание:&lt;/b&gt; Демон уведомлений третьей сторон (%1) запущен. <translation>&lt;b&gt;Внимание:&lt;/b&gt; Демон уведомлений третьей сторон (%1) запущен.
Эти настройки не будут иметь никакого эффекта для него!</translation> Эти настройки не будут иметь никакого эффекта для него!</translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="98"/> <location filename="../basicsettings.cpp" line="117"/>
<source>Notification demo </source> <source>Notification demo </source>
<translation>Демонстрация уведомления</translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../basicsettings.cpp" line="99"/> <location filename="../basicsettings.cpp" line="118"/>
<source>This is a test notification. <source>This is a test notification.
All notifications will now appear here on LXQt.</source> All notifications will now appear here on LXQt.</source>
<translation>Это тестовое уведомление. <translation type="unfinished"></translation>
</message>
<message>
<source>Notification demo</source>
<translation type="vanished">Демонстрация уведомления</translation>
</message>
<message>
<source>This is a test notification.
All notifications will now appear here on LXQt.</source>
<translation type="vanished">Это тестовое уведомление.
Все уведомления на LXQt будут появляться здесь.</translation> Все уведомления на LXQt будут появляться здесь.</translation>
</message> </message>
</context> </context>

7
debian/changelog vendored

@ -1,3 +1,10 @@
lxqt-notificationd (0.10.0-1) unstable; urgency=medium
* Cherry-picking upstream version 0.10.0.
* Set minimum versions for libqtxdg and liblxqt
-- Alf Gaida <agaida@siduction.org> Tue, 03 Nov 2015 01:57:30 +0100
lxqt-notificationd (0.9.0+20151028-2) experimental; urgency=medium lxqt-notificationd (0.9.0+20151028-2) experimental; urgency=medium
* set minimum versions for libqtxdg and liblxqt * set minimum versions for libqtxdg and liblxqt

2
debian/control vendored

@ -8,7 +8,7 @@ Priority: optional
Build-Depends: cmake (>= 3.0.2), Build-Depends: cmake (>= 3.0.2),
debhelper (>= 9), debhelper (>= 9),
libkf5windowsystem-dev, libkf5windowsystem-dev,
liblxqt0-dev (>= 0.9.0+20151026), liblxqt0-dev (>= 0.10.0),
libqt5x11extras5-dev, libqt5x11extras5-dev,
libqt5xdg-dev (>= 1.3.0), libqt5xdg-dev (>= 1.3.0),
libx11-dev, libx11-dev,

@ -1,538 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Desktop Notifications Specification</title><link rel="stylesheet" href="docbook.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /></head><body><div class="article" title="Desktop Notifications Specification"><div class="titlepage"><div><div><h2 class="title"><a id="index"></a>Desktop Notifications Specification</h2></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Mike</span> <span class="surname">Hearn</span></h3><div class="affiliation"><div class="address"><p><br />
      <code class="email">&lt;<a class="email" href="mailto:mike@navi.cx">mike@navi.cx</a>&gt;</code><br />
     </p></div></div></div><div class="author"><h3 class="author"><span class="firstname">Christian</span> <span class="surname">Hammond</span></h3><div class="affiliation"><div class="address"><p><br />
      <code class="email">&lt;<a class="email" href="mailto:chipx86@chipx86.com">chipx86@chipx86.com</a>&gt;</code><br />
     </p></div></div></div><div class="author"><h3 class="author"><span class="firstname">William Jon</span> <span class="surname">McCann</span></h3><div class="affiliation"><div class="address"><p><br />
      <code class="email">&lt;<a class="email" href="mailto:jmccann@redhat.com">jmccann@redhat.com</a>&gt;</code><br />
     </p></div></div></div></div></div><div><p class="releaseinfo">Version 1.2</p></div></div><hr /></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#introduction">Introduction</a></span></dt><dt><span class="sect1"><a href="#basic-design">Basic Design</a></span></dt><dt><span class="sect1"><a href="#backwards-compat">Backwards Compatibility</a></span></dt><dt><span class="sect1"><a href="#markup">Markup</a></span></dt><dd><dl><dt><span class="sect2"><a href="#hyperlinks">Hyperlinks</a></span></dt><dt><span class="sect2"><a href="#images">Images</a></span></dt></dl></dd><dt><span class="sect1"><a href="#icons-and-images">Icons and Images</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2776582">Priorities</a></span></dt><dt><span class="sect2"><a href="#icons-and-images-formats">Formats</a></span></dt></dl></dd><dt><span class="sect1"><a href="#categories">Categories</a></span></dt><dt><span class="sect1"><a href="#urgency-levels">Urgency Levels</a></span></dt><dt><span class="sect1"><a href="#hints">Hints</a></span></dt><dt><span class="sect1"><a href="#protocol">D-BUS Protocol</a></span></dt><dd><dl><dt><span class="sect2"><a href="#commands">Message commands</a></span></dt><dt><span class="sect2"><a href="#signals">Signals</a></span></dt></dl></dd></dl></div><div class="sect1" title="Introduction"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="introduction"></a>Introduction</h2></div></div></div><p>
This is a draft standard for a desktop notifications service,
through which applications can generate passive popups to notify
the user in an asynchronous manner of events.
</p><p>
This specification explicitly does not include other types of
notification presentation such as modal message boxes, window manager
decorations or window list annotations.
</p><p>
Example use cases include:
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Messages from chat programs</p></li><li class="listitem"><p>Scheduled alarm</p></li><li class="listitem"><p>Completed file transfer</p></li><li class="listitem"><p>New mail notification</p></li><li class="listitem"><p>Low disk space/battery warnings</p></li></ul></div></div><div class="sect1" title="Basic Design"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="basic-design"></a>Basic Design</h2></div></div></div><p>
In order to ensure that multiple notifications can easily be
displayed at once, and to provide a convenient implementation, all
notifications are controlled by a single session-scoped service which
exposes a D-BUS interface.
</p><p>
On startup, a conforming implementation should take the
<code class="literal">org.freedesktop.Notifications</code> service on
the session bus. This service will be referred to as the "notification
server" or just "the server" in this document. It can optionally be
activated automatically by the bus process, however this is not required
and notification server clients must not assume that it is available.
</p><p>
The server should implement the
<code class="literal">org.freedesktop.Notifications</code> interface on
an object with the path <code class="literal">"/org/freedesktop/Notifications"</code>.
This is the only interface required by this version of the specification.
</p><p>
A notification has the following components:
</p><div class="table"><a id="id2780838"></a><p class="title"><b>Table 1. Notification Components</b></p><div class="table-contents"><table summary="Notification Components" border="1"><colgroup><col /><col /></colgroup><thead><tr><th>Component</th><th>Description</th></tr></thead><tbody valign="top"><tr><td valign="top">Application Name</td><td valign="top">
This is the optional name of the application sending the notification.
This should be the application's formal name, rather than some sort
of ID. An example would be "FredApp E-Mail Client," rather than
"fredapp-email-client."
</td></tr><tr><td valign="top">Replaces ID</td><td valign="top">
An optional ID of an existing notification that this
notification is intended to replace.
</td></tr><tr><td valign="top">Notification Icon</td><td valign="top">
The notification icon. See <a class="xref" href="#icons-and-images-formats" title="Formats">Icons and Images Formats</a>.
</td></tr><tr><td valign="top">Summary</td><td valign="top">
This is a single line overview of the notification. For instance,
"You have mail" or "A friend has come online". It should generally
not be longer than 40 characters, though this is not a requirement,
and server implementations should word wrap if necessary. The summary
must be encoded using UTF-8.
</td></tr><tr><td valign="top">Body</td><td valign="top">
<p>
This is a multi-line body of text. Each line is a paragraph, server
implementations are free to word wrap them as they see fit.
</p>
<p>
The body may contain simple markup as specified in
<a class="xref" href="#markup" title="Markup">Markup</a>. It must be encoded using UTF-8.
</p>
<p>
If the body is omitted, just the summary is displayed.
</p>
</td></tr><tr><td valign="top">Actions</td><td valign="top">
<p>
The actions send a request message back to the notification client
when invoked. This functionality may not be implemented by the
notification server, conforming clients should check if it is available
before using it (see the GetCapabilities message in
<a class="xref" href="#protocol" title="D-BUS Protocol">Protocol</a>). An implementation is free to ignore any
requested by the client. As an example one possible rendering of
actions would be as buttons in the notification popup.
</p>
<p>
Actions are sent over as a list of pairs. Each even element in the
list (starting at index 0) represents the identifier for the action.
Each odd element in the list is the localized string that will be
displayed to the user.
</p>
<p>
The default action (usually invoked my clicking the notification)
should have a key named <code class="literal">"default"</code>. The name can
be anything, though implementations are free not to display it.
</p>
</td></tr><tr><td valign="top">Hints</td><td valign="top">
<p>
Hints are a way to provide extra data to a notification server that
the server may be able to make use of.
</p>
<p>See <a class="xref" href="#hints" title="Hints">Hints</a> for a list of available hints.</p>
</td></tr><tr><td valign="top">Expiration Timeout</td><td valign="top">
<p>
The timeout time in milliseconds since the display of the notification
at which the notification should automatically close.
</p>
<p>
If -1, the notification's expiration time is dependent on the
notification server's settings, and may vary for the type of
notification.
</p>
<p>
If 0, the notification never expires.
</p>
</td></tr></tbody></table></div></div><br class="table-break" /><p>
Each notification displayed is allocated a unique ID by the server.
This is unique within the session. While the notification server is
running, the ID will not be recycled unless the capacity of a uint32 is
exceeded.
</p><p>
This can be used to hide the notification before the expiration timeout
is reached. It can also be used to atomically replace the notification
with another. This allows you to (for instance) modify the contents of
a notification while it's on-screen.
</p></div><div class="sect1" title="Backwards Compatibility"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="backwards-compat"></a>Backwards Compatibility</h2></div></div></div><p>
Clients should try and avoid making assumptions about the presentation and
abilities of the notification server. The message content is the most
important thing.
</p><p>
Clients can check with the server what capabilities are supported
using the <code class="literal">GetCapabilities</code> message. See
<a class="xref" href="#protocol" title="D-BUS Protocol">Protocol</a>.
</p><p>
If a client requires a response from a passive popup, it should be
coded such that a non-focus-stealing message box can be used in the
case that the notification server does not support this feature.
</p></div><div class="sect1" title="Markup"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="markup"></a>Markup</h2></div></div></div><p>
Body text may contain markup. The markup is XML-based, and consists
of a small subset of HTML along with a few additional tags.
</p><p>
The following tags should be supported by the notification server.
Though it is optional, it is recommended. Notification servers that do
not support these tags should filter them out.
</p><div class="informaltable"><table border="1"><colgroup><col /><col /></colgroup><tbody valign="top"><tr><td valign="top">
<code class="sgmltag-starttag">&lt;b&gt;</code> ...
<code class="sgmltag-endtag">&lt;/b&gt;</code>
</td><td valign="top">Bold</td></tr><tr><td valign="top">
<code class="sgmltag-starttag">&lt;i&gt;</code> ...
<code class="sgmltag-endtag">&lt;/i&gt;</code>
</td><td valign="top">Italic</td></tr><tr><td valign="top">
<code class="sgmltag-starttag">&lt;u&gt;</code> ...
<code class="sgmltag-endtag">&lt;/u&gt;</code>
</td><td valign="top">Underline</td></tr><tr><td valign="top">
<code class="sgmltag-starttag">&lt;a href="..."&gt;</code> ...
<code class="sgmltag-endtag">&lt;/a&gt;</code>
</td><td valign="top">Hyperlink</td></tr><tr><td valign="top">
<code class="sgmltag-emptytag">&lt;img src="..." alt="..."/&gt;</code>
</td><td valign="top">Image</td></tr></tbody></table></div><p>
A full-blown HTML implementation is not required of this spec, and
notifications should never take advantage of tags that are not listed
above. As notifications are not a substitute for web browsers or complex
dialogs, advanced layout is not necessary, and may in fact limit the
number of systems that notification services can run on, due to memory
usage and screen space. Such examples are PDAs, certain cell phones, and
slow PCs or laptops with little memory.
</p><p>
For the same reason, a full XML or XHTML implementation using XSLT or
CSS stylesheets is not part of this specification. Information that
must be presented in a more complex form should use an application-specific
dialog, a web browser, or some other display mechanism.
</p><p>
The tags specified above mark up the content in a way that allows them
to be stripped out on some implementations without impacting the actual
content.
</p><div class="sect2" title="Hyperlinks"><div class="titlepage"><div><div><h3 class="title"><a id="hyperlinks"></a>Hyperlinks</h3></div></div></div><p>
Hyperlinks allow for linking one or more words to a URI. There is no
requirement to allow for images to be linked, and it is highly suggested
that implementations do not allow this, as there is no clean-looking,
standard visual indicator for a hyperlinked image.
</p><p>
Hyperlinked text should appear in the standard blue underline format.
</p><p>
Hyperlinks cannot function as a replacement for actions. They are
used to link to local directories or remote sites using standard URI
schemes.
</p><p>
Implementations are not required to support hyperlinks.
</p></div><div class="sect2" title="Images"><div class="titlepage"><div><div><h3 class="title"><a id="images"></a>Images</h3></div></div></div><p>
Images may be placed in the notification, but this should be done with
caution. The image should never exceed 200x100, but this should be thought
of as a maximum size. Images should always have alternative text
provided through the <code class="literal">alt="..."</code> attribute.
</p><p>
Image data cannot be embedded in the message itself. Images referenced
must always be local files.
</p><p>
Implementations are not required to support images.
</p></div></div><div class="sect1" title="Icons and Images"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="icons-and-images"></a>Icons and Images</h2></div></div></div><p>
A notification can optionally have an associated icon and/or image.
</p><p>
The icon is defined by the "app_icon" parameter.
The image can be defined by the "image-path", the "image-data" hint or the
deprecated "icon_data" hint.
</p><div class="sect2" title="Priorities"><div class="titlepage"><div><div><h3 class="title"><a id="id2776582"></a>Priorities</h3></div></div></div><p>
An implementation which only displays one image or icon must choose which one
to display using the following order:
</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>"image-data"</p></li><li class="listitem"><p>"image-path"</p></li><li class="listitem"><p>app_icon parameter</p></li><li class="listitem"><p>for compatibility reason, "icon_data"</p></li></ol></div><p>
</p><p>
An implementation which can display both the image and icon must show the
icon from the "app_icon" parameter and choose which image to display using
the following order:
</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>"image-data"</p></li><li class="listitem"><p>"image-path"</p></li><li class="listitem"><p>for compatibility reason, "icon_data"</p></li></ol></div><p>
</p></div><div class="sect2" title="Formats"><div class="titlepage"><div><div><h3 class="title"><a id="icons-and-images-formats"></a>Formats</h3></div></div></div><p>
The "image-data" and "icon_data" hints should be a raw image data structure
of signature (iiibiiay) which describes the width, height, rowstride, has
alpha, bits per sample, channels and image data respectively.
</p><p>
The "app_icon" parameter and "image-path" hint should be either an URI
(file:// is the only URI schema supported right now) or a name in a
freedesktop.org-compliant icon theme (not a GTK+ stock ID).
</p></div></div><div class="sect1" title="Categories"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="categories"></a>Categories</h2></div></div></div><p>
Notifications can optionally have a type indicator. Although neither
client or nor server must support this, some may choose to. Those servers
implementing categories may use them to intelligently display
the notification in a certain way, or group notifications of similar
types.
</p><p>
Categories are in
<code class="literal"><em class="replaceable"><code>class.specific</code></em></code> form.
<code class="literal">class</code> specifies the generic type of notification, and
<code class="literal">specific</code> specifies the more specific type of
notification.
</p><p>
If a specific type of notification does not exist for your notification,
but the generic kind does, a notification of type
<code class="literal"><em class="replaceable"><code>class</code></em></code> is acceptable.
</p><p>
Third parties, when defining their own categories, should discuss
the possibility of standardizing on the hint with other parties, preferably
in a place such as the
<a class="ulink" href="http://freedesktop.org/mailman/listinfo/xdg" target="_top">xdg</a>
mailing list at
<a class="ulink" href="http://freedesktop.org/" target="_top">freedesktop.org</a>. If it
warrants a standard, it will be added to the table above. If no
consensus is reached, the category should be in the form of
"<code class="literal">x-<em class="replaceable"><code>vendor</code></em>.<em class="replaceable"><code>class</code></em>.<em class="replaceable"><code>name</code></em></code>."
</p><p>
The following table lists standard notifications as defined by this spec.
More will be added in time.
</p><div class="table"><a id="id2776772"></a><p class="title"><b>Table 2. Categories</b></p><div class="table-contents"><table summary="Categories" border="1"><colgroup><col /><col /></colgroup><thead><tr><th>Type</th><th>Description</th></tr></thead><tbody valign="top"><tr><td valign="top"><code class="literal">"device"</code></td><td valign="top">
A generic device-related notification that doesn't fit into
any other category.
</td></tr><tr><td valign="top"><code class="literal">"device.added"</code></td><td valign="top">A device, such as a USB device, was added to the system.</td></tr><tr><td valign="top"><code class="literal">"device.error"</code></td><td valign="top">A device had some kind of error.</td></tr><tr><td valign="top"><code class="literal">"device.removed"</code></td><td valign="top">
A device, such as a USB device, was removed from the system.
</td></tr><tr><td valign="top"><code class="literal">"email"</code></td><td valign="top">
A generic e-mail-related notification that doesn't fit into any
other category.
</td></tr><tr><td valign="top"><code class="literal">"email.arrived"</code></td><td valign="top">A new e-mail notification.</td></tr><tr><td valign="top"><code class="literal">"email.bounced"</code></td><td valign="top">A notification stating that an e-mail has bounced.</td></tr><tr><td valign="top"><code class="literal">"im"</code></td><td valign="top">
A generic instant message-related notification that doesn't fit
into any other category.
</td></tr><tr><td valign="top"><code class="literal">"im.error"</code></td><td valign="top">An instant message error notification.</td></tr><tr><td valign="top"><code class="literal">"im.received"</code></td><td valign="top">A received instant message notification.</td></tr><tr><td valign="top"><code class="literal">"network"</code></td><td valign="top">
A generic network notification that doesn't fit into any other
category.
</td></tr><tr><td valign="top"><code class="literal">"network.connected"</code></td><td valign="top">
A network connection notification, such as successful sign-on to a
network service. This should not be confused with
<code class="literal">device.added</code> for new network devices.
</td></tr><tr><td valign="top"><code class="literal">"network.disconnected"</code></td><td valign="top">
A network disconnected notification. This should not be confused with
<code class="literal">device.removed</code> for disconnected network devices.
</td></tr><tr><td valign="top"><code class="literal">"network.error"</code></td><td valign="top">
A network-related or connection-related error.
</td></tr><tr><td valign="top"><code class="literal">"presence"</code></td><td valign="top">
A generic presence change notification that doesn't fit into
any other category, such as going away or idle.
</td></tr><tr><td valign="top"><code class="literal">"presence.offline"</code></td><td valign="top">An offline presence change notification.</td></tr><tr><td valign="top"><code class="literal">"presence.online"</code></td><td valign="top">An online presence change notification.</td></tr><tr><td valign="top"><code class="literal">"transfer"</code></td><td valign="top">
A generic file transfer or download notification that doesn't fit
into any other category.
</td></tr><tr><td valign="top"><code class="literal">"transfer.complete"</code></td><td valign="top">A file transfer or download complete notification.</td></tr><tr><td valign="top"><code class="literal">"transfer.error"</code></td><td valign="top">A file transfer or download error.</td></tr></tbody></table></div></div><br class="table-break" /></div><div class="sect1" title="Urgency Levels"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="urgency-levels"></a>Urgency Levels</h2></div></div></div><p>
Notifications have an urgency level associated with them. This defines
the importance of the notification. For example, "Joe Bob signed on"
would be a low urgency. "You have new mail" or "A USB device was unplugged"
would be a normal urgency. "Your computer is on fire" would be a critical
urgency.
</p><p>Urgency levels are defined as follows:</p><div class="table"><a id="id2824982"></a><p class="title"><b>Table 3. Urgency Levels</b></p><div class="table-contents"><table summary="Urgency Levels" border="1"><colgroup><col /><col /></colgroup><thead><tr><th>Type</th><th>Description</th></tr></thead><tbody valign="top"><tr><td valign="top">0</td><td valign="top">Low</td></tr><tr><td valign="top">1</td><td valign="top">Normal</td></tr><tr><td valign="top">2</td><td valign="top">Critical</td></tr></tbody></table></div></div><br class="table-break" /><p>
Developers must use their own judgement when deciding the urgency of a
notification. Typically, if the majority of programs are using the same
level for a specific type of urgency, other applications should follow
them.
</p><p>
For low and normal urgencies, server implementations may display the
notifications how they choose. They should, however, have a sane
expiration timeout dependent on the urgency level.
</p><p>
Critical notifications should not automatically expire, as they are
things that the user will most likely want to know about. They should
only be closed when the user dismisses them, for example, by clicking on
the notification.
</p></div><div class="sect1" title="Hints"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="hints"></a>Hints</h2></div></div></div><p>
Hints are a way to provide extra data to a notification server that
the server may be able to make use of.
</p><p>
Neither clients nor notification servers are required to support any
hints. Both sides should assume that hints are not passed, and should
ignore any hints they do not understand.
</p><p>
Third parties, when defining their own hints, should discuss the
possibility of standardizing on the hint with other parties, preferably
in a place such as the
<a class="ulink" href="http://freedesktop.org/mailman/listinfo/xdg" target="_top">xdg</a>
mailing list at
<a class="ulink" href="http://freedesktop.org/" target="_top">freedesktop.org</a>. If it
warrants a standard, it will be added to the table above. If no
consensus is reached, the hint name should be in the form of
<code class="literal">"x-<em class="replaceable"><code>vendor</code></em>-<em class="replaceable"><code>name</code></em>."</code>
</p><p>
The value type for the hint dictionary in D-BUS is of the
<code class="literal">DBUS_TYPE_VARIANT</code> container type. This allows different
data types (string, integer, boolean, etc.) to be used for hints. When
adding a dictionary of hints, this type must be used, rather than putting
the actual hint value in as the dictionary value.
</p><p>
The following table lists the standard hints as defined by this
specification. Future hints may be proposed and added to this list
over time. Once again, implementations are not required to support these.
</p><div class="table"><a id="id2825136"></a><p class="title"><b>Table 4. Standard Hints</b></p><div class="table-contents"><table summary="Standard Hints" border="1"><colgroup><col /><col /></colgroup><thead><tr><th>Name</th><th>Value Type</th><th>Description</th><th>Spec Version</th></tr></thead><tbody valign="top"><tr><td valign="top"><code class="literal">"action-icons"</code></td><td valign="top">boolean</td><td valign="top">
When set, a server that has the "action-icons" capability will
attempt to interpret any action identifier as a named icon.
The localized display name will be used to annotate the icon
for accessibility purposes. The icon name should be compliant
with the Freedesktop.org Icon Naming Specification.
</td><td valign="top">&gt;= 1.2</td></tr><tr><td valign="top"><code class="literal">"category"</code></td><td valign="top">string</td><td valign="top">
The type of notification this is.
</td><td valign="top"> </td></tr><tr><td valign="top"><code class="literal">"desktop-entry"</code></td><td valign="top">string</td><td valign="top">
This specifies the name of the desktop filename representing the
calling program. This should be the same as the prefix used for the
application's .desktop file. An example would be "rhythmbox" from
"rhythmbox.desktop". This can be used by the daemon to retrieve the
correct icon for the application, for logging purposes, etc.
</td><td valign="top"> </td></tr><tr><td valign="top"><code class="literal">"image-data"</code></td><td valign="top">(iiibiiay)</td><td valign="top">
This is a raw data image format which describes the width, height,
rowstride, has alpha, bits per sample, channels and image data
respectively.
</td><td valign="top">&gt;= 1.2</td></tr><tr><td valign="top"><code class="literal">"image_data"</code></td><td valign="top">(iiibiiay)</td><td valign="top">
<span class="emphasis"><em>Deprecated</em></span>. Use image-data instead.
</td><td valign="top">= 1.1</td></tr><tr><td valign="top"><code class="literal">"image-path"</code></td><td valign="top">string</td><td valign="top">
Alternative way to define the notification image. See <a class="xref" href="#icons-and-images" title="Icons and Images">Icons and Images</a>.
</td><td valign="top">&gt;= 1.2</td></tr><tr><td valign="top"><code class="literal">"image_path"</code></td><td valign="top">string</td><td valign="top">
<span class="emphasis"><em>Deprecated</em></span>. Use image-path instead.
</td><td valign="top">= 1.1</td></tr><tr><td valign="top"><code class="literal">"icon_data"</code></td><td valign="top">(iiibiiay)</td><td valign="top">
<span class="emphasis"><em>Deprecated</em></span>. Use image-data instead.
</td><td valign="top">&lt; 1.1</td></tr><tr><td valign="top"><code class="literal">"resident"</code></td><td valign="top">boolean</td><td valign="top">
When set the server will not automatically remove the
notification when an action has been invoked. The notification
will remain resident in the server until it is explicitly
removed by the user or by the sender. This hint is likely only
useful when the server has the "persistence" capability.
</td><td valign="top">&gt;= 1.2</td></tr><tr><td valign="top"><code class="literal">"sound-file"</code></td><td valign="top">string</td><td valign="top">
The path to a sound file to play when the notification pops up.
</td><td valign="top"> </td></tr><tr><td valign="top"><code class="literal">"sound-name"</code></td><td valign="top">string</td><td valign="top">
A themeable named sound from the freedesktop.org
<a class="ulink" href="http://0pointer.de/public/sound-naming-spec.html" target="_top">sound naming specification</a>
to play when the notification pops up. Similar to icon-name, only for
sounds. An example would be "message-new-instant".
</td><td valign="top"> </td></tr><tr><td valign="top"><code class="literal">"suppress-sound"</code></td><td valign="top">boolean</td><td valign="top">
Causes the server to suppress playing any sounds, if it has that
ability. This is usually set when the client itself is going to
play its own sound.
</td><td valign="top"> </td></tr><tr><td valign="top"><code class="literal">"transient"</code></td><td valign="top">boolean</td><td valign="top">
When set the server will treat the notification as transient
and by-pass the server's persistence capability, if it should
exist.
</td><td valign="top">&gt;= 1.2</td></tr><tr><td valign="top"><code class="literal">"x"</code></td><td valign="top">int</td><td valign="top">
Specifies the X location on the screen that the notification should
point to. The <code class="literal">"y"</code> hint must also be specified.
</td><td valign="top"> </td></tr><tr><td valign="top"><code class="literal">"y"</code></td><td valign="top">int</td><td valign="top">
Specifies the Y location on the screen that the notification should
point to. The <code class="literal">"x"</code> hint must also be specified.
</td><td valign="top"> </td></tr><tr><td valign="top"><code class="literal">"urgency"</code></td><td valign="top">byte</td><td valign="top">
The urgency level.
</td><td valign="top"> </td></tr></tbody></table></div></div><br class="table-break" /></div><div class="sect1" title="D-BUS Protocol"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="protocol"></a>D-BUS Protocol</h2></div></div></div><p>
The following messages <span class="emphasis"><em>must</em></span> be supported by all
implementations.
</p><div class="sect2" title="Message commands"><div class="titlepage"><div><div><h3 class="title"><a id="commands"></a>Message commands</h3></div></div></div><div class="sect3" title="org.freedesktop.Notifications.GetCapabilities"><div class="titlepage"><div><div><h4 class="title"><a id="command-get-capabilities"></a><code class="literal">org.freedesktop.Notifications.GetCapabilities</code></h4></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">STRING_ARRAY
<b class="fsfunc">org.freedesktop.Notifications.GetCapabilities</b>
(</code></td><td><code>)</code>;</td><td> </td></tr></table><div class="funcprototype-spacer"> </div></div><p>
This message takes no parameters.
</p><p>
It returns an array of strings. Each string describes an optional
capability implemented by the server. The following values are
defined by this spec:
</p><div class="table"><a id="id2825605"></a><p class="title"><b>Table 5. Server Capabilities</b></p><div class="table-contents"><table summary="Server Capabilities" border="1"><colgroup><col /><col /></colgroup><tbody valign="top"><tr><td valign="top"><code class="literal">"action-icons"</code></td><td valign="top">
Supports using icons instead of text for displaying actions.
Using icons for actions must be enabled on a per-notification
basis using the "action-icons" hint.
</td></tr><tr><td valign="top"><code class="literal">"actions"</code></td><td valign="top">
The server will provide the specified actions to the user. Even if
this cap is missing, actions may still be specified by the client,
however the server is free to ignore them.
</td></tr><tr><td valign="top"><code class="literal">"body"</code></td><td valign="top">
Supports body text. Some implementations may only show the
summary (for instance, onscreen displays, marquee/scrollers)
</td></tr><tr><td valign="top"><code class="literal">"body-hyperlinks"</code></td><td valign="top">
The server supports hyperlinks in the notifications.
</td></tr><tr><td valign="top"><code class="literal">"body-images"</code></td><td valign="top">
The server supports images in the notifications.
</td></tr><tr><td valign="top"><code class="literal">"body-markup"</code></td><td valign="top">
Supports markup in the body text. If marked up text is sent
to a server that does not give this cap, the markup will show
through as regular text so must be stripped clientside.
</td></tr><tr><td valign="top"><code class="literal">"icon-multi"</code></td><td valign="top">
The server will render an animation of all the frames in a given
image array. The client may still specify multiple frames even if
this cap and/or <code class="literal">"icon-static"</code> is missing, however
the server is free to ignore them and use only the primary frame.
</td></tr><tr><td valign="top"><code class="literal">"icon-static"</code></td><td valign="top">
Supports display of exactly 1 frame of any given image array.
This value is mutually exclusive with
<code class="literal">"icon-multi"</code>, it is a protocol error for the
server to specify both.
</td></tr><tr><td valign="top"><code class="literal">"persistence"</code></td><td valign="top">
The server supports persistence of notifications.
Notifications will be retained until they are acknowledged or
removed by the user or recalled by the sender. The presence
of this capability allows clients to depend on the server to
ensure a notification is seen and eliminate the need for
the client to display a reminding function (such as a status
icon) of its own.
</td></tr><tr><td valign="top"><code class="literal">"sound"</code></td><td valign="top">
The server supports sounds on notifications. If returned, the
server must support the <code class="literal">"sound-file"</code> and
<code class="literal">"suppress-sound"</code> hints.
</td></tr></tbody></table></div></div><br class="table-break" /><p>
New vendor-specific caps may be specified as long as they start with
<code class="literal">"x-<em class="replaceable"><code>vendor</code></em>"</code>. For instance,
<code class="literal">"x-gnome-foo-cap"</code>. Capability names must not
contain spaces. They are limited to alpha-numeric characters and dashes
(<code class="literal">"-"</code>).
</p></div><div class="sect3" title="org.freedesktop.Notifications.Notify"><div class="titlepage"><div><div><h4 class="title"><a id="command-notify"></a><code class="literal">org.freedesktop.Notifications.Notify</code></h4></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">UINT32
<b class="fsfunc">org.freedesktop.Notifications.Notify</b>
(</code></td><td><var class="pdparam">app_name</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">replaces_id</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">app_icon</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">summary</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">body</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">actions</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">hints</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">expire_timeout</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>STRING <var class="pdparam">app_name</var></code>;<br /><code>UINT32 <var class="pdparam">replaces_id</var></code>;<br /><code>STRING <var class="pdparam">app_icon</var></code>;<br /><code>STRING <var class="pdparam">summary</var></code>;<br /><code>STRING <var class="pdparam">body</var></code>;<br /><code>ARRAY <var class="pdparam">actions</var></code>;<br /><code>DICT <var class="pdparam">hints</var></code>;<br /><code>INT32 <var class="pdparam">expire_timeout</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
Sends a notification to the notification server.
</p><div class="table"><a id="id2825920"></a><p class="title"><b>Table 6. Notify Parameters</b></p><div class="table-contents"><table summary="Notify Parameters" border="1"><colgroup><col /><col /><col /></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody valign="top"><tr><td valign="top"><em class="parameter"><code>app_name</code></em></td><td valign="top">STRING</td><td valign="top">
The optional name of the application sending the notification.
Can be blank.
</td></tr><tr><td valign="top"><em class="parameter"><code>replaces_id</code></em></td><td valign="top">UINT32</td><td valign="top">
The optional notification ID that this notification replaces. The
server must atomically (ie with no flicker or other visual cues)
replace the given notification with this one. This allows clients to
effectively modify the notification while it's active. A value of
value of 0 means that this notification won't replace any
existing notifications.
</td></tr><tr><td valign="top"><em class="parameter"><code>app_icon</code></em></td><td valign="top">STRING</td><td valign="top">
The optional program icon of the calling application. See <a class="xref" href="#icons-and-images" title="Icons and Images">Icons and Images</a>.
Can be an empty string, indicating no icon.
</td></tr><tr><td valign="top"><em class="parameter"><code>summary</code></em></td><td valign="top">STRING</td><td valign="top">The summary text briefly describing the notification.</td></tr><tr><td valign="top"><em class="parameter"><code>body</code></em></td><td valign="top">STRING</td><td valign="top">The optional detailed body text. Can be empty.</td></tr><tr><td valign="top"><em class="parameter"><code>actions</code></em></td><td valign="top">ARRAY</td><td valign="top">
Actions are sent over as a list of pairs. Each even element in
the list (starting at index 0) represents the identifier for the
action. Each odd element in the list is the localized string
that will be displayed to the user.
</td></tr><tr><td valign="top"><em class="parameter"><code>hints</code></em></td><td valign="top">DICT</td><td valign="top">
Optional hints that can be passed to the server from the client
program. Although clients and servers should never assume each other
supports any specific hints, they can be used to pass along
information, such as the process PID or window ID, that the server
may be able to make use of. See <a class="xref" href="#hints" title="Hints">Hints</a>. Can be
empty.
</td></tr><tr><td valign="top"><em class="parameter"><code>expire_timeout</code></em></td><td valign="top">INT32</td><td valign="top">
<p>
The timeout time in milliseconds since the display of the notification at
which the notification should automatically close.
</p>
<p>
If -1, the notification's expiration time is dependent on the
notification server's settings, and may vary for the type of
notification.
If 0, never expire.
</p>
</td></tr></tbody></table></div></div><br class="table-break" /><p>
If <em class="parameter"><code>replaces_id</code></em> is 0, the return value is a
UINT32 that represent the notification. It is unique, and will not be
reused unless a <code class="constant">MAXINT</code> number of notifications
have been generated. An acceptable implementation may just use an
incrementing counter for the ID. The returned ID is always greater than
zero. Servers must make sure not to return zero as an ID.
</p><p>
If <em class="parameter"><code>replaces_id</code></em> is not 0, the returned value
is the same value as <em class="parameter"><code>replaces_id</code></em>.
</p></div><div class="sect3" title="org.freedesktop.Notifications.CloseNotification"><div class="titlepage"><div><div><h4 class="title"><a id="command-close-notification"></a><code class="literal">org.freedesktop.Notifications.CloseNotification</code></h4></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">void
<b class="fsfunc">org.freedesktop.Notifications.CloseNotification</b>
(</code></td><td><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>UINT32 id</code>;</div><div class="funcprototype-spacer"> </div></div><p>
Causes a notification to be forcefully closed and removed from the user's
view. It can be used, for example, in the event that what the
notification pertains to is no longer relevant, or to cancel a
notification with no expiration time.
</p><p>
The <code class="literal">NotificationClosed</code> signal is emitted by this
method.
</p><p>
If the notification no longer exists, an empty D-BUS Error message is
sent back.
</p></div><div class="sect3" title="org.freedesktop.Notifications.GetServerInformation"><div class="titlepage"><div><div><h4 class="title"><a id="command-get-server-information"></a><code class="literal">org.freedesktop.Notifications.GetServerInformation</code></h4></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">
void
<b class="fsfunc">org.freedesktop.Notifications.GetServerInformation</b>
(</code></td><td><var class="pdparam">name</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">vendor</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">version</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">spec_version</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>out STRING <var class="pdparam">name</var></code>;<br /><code>out STRING <var class="pdparam">vendor</var></code>;<br /><code>out STRING <var class="pdparam">version</var></code>;<br /><code>out STRING <var class="pdparam">spec_version</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
This message returns the information on the server. Specifically,
the server name, vendor, and version number.
</p><div class="table"><a id="id2826276"></a><p class="title"><b>Table 7. GetServerInformation Return Values</b></p><div class="table-contents"><table summary="GetServerInformation Return Values" border="1"><colgroup><col /><col /></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody valign="top"><tr><td valign="top"><em class="parameter"><code>name</code></em></td><td valign="top">STRING</td><td valign="top">The product name of the server.</td></tr><tr><td valign="top"><em class="parameter"><code>vendor</code></em></td><td valign="top">STRING</td><td valign="top">
The vendor name. For example, "KDE," "GNOME,"
"freedesktop.org," or "Microsoft."
</td></tr><tr><td valign="top"><em class="parameter"><code>version</code></em></td><td valign="top">STRING</td><td valign="top">The server's version number.</td></tr><tr><td valign="top"><em class="parameter"><code>spec_version</code></em></td><td valign="top">STRING</td><td valign="top">The specification version the server is compliant with.</td></tr></tbody></table></div></div><br class="table-break" /></div></div><div class="sect2" title="Signals"><div class="titlepage"><div><div><h3 class="title"><a id="signals"></a>Signals</h3></div></div></div><div class="sect3" title="org.freedesktop.Notifications.NotificationClosed"><div class="titlepage"><div><div><h4 class="title"><a id="signal-notification-closed"></a><code class="literal">org.freedesktop.Notifications.NotificationClosed</code></h4></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">
<b class="fsfunc">org.freedesktop.Notifications.NotificationClosed</b>
(</code></td><td><var class="pdparam">id</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">reason</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>UINT32 <var class="pdparam">id</var></code>;<br /><code>UINT32 <var class="pdparam">reason</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
A completed notification is one that has timed out, or has been
dismissed by the user.
</p><div class="table"><a id="id2826433"></a><p class="title"><b>Table 8. NotificationClosed Parameters</b></p><div class="table-contents"><table summary="NotificationClosed Parameters" border="1"><colgroup><col /><col /></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody valign="top"><tr><td valign="top"><em class="parameter"><code>id</code></em></td><td valign="top">UINT32</td><td valign="top">The ID of the notification that was closed.</td></tr><tr><td valign="top"><em class="parameter"><code>reason</code></em></td><td valign="top">UINT32</td><td valign="top">
<p>The reason the notification was closed.</p>
<p>1 - The notification expired.</p>
<p>2 - The notification was dismissed by the user.</p>
<p>3 - The notification was closed by a call to
<code class="literal">CloseNotification</code>.</p>
<p>4 - Undefined/reserved reasons.</p>
</td></tr></tbody></table></div></div><br class="table-break" /><p>
The ID specified in the signal is invalidated
<span class="emphasis"><em>before</em></span> the signal is sent and may not be used
in any further communications with the server.
</p></div><div class="sect3" title="org.freedesktop.Notifications.ActionInvoked"><div class="titlepage"><div><div><h4 class="title"><a id="signal-action-invoked"></a><code class="literal">org.freedesktop.Notifications.ActionInvoked</code></h4></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">
<b class="fsfunc">org.freedesktop.Notifications.ActionInvoked</b>
(</code></td><td><var class="pdparam">id</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">action_key</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>UINT32 <var class="pdparam">id</var></code>;<br /><code>STRING <var class="pdparam">action_key</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
This signal is emitted when one of the following occurs:
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
The user performs some global "invoking" action upon a notification.
For instance, clicking somewhere on the notification itself.
</p></li><li class="listitem"><p>
The user invokes a specific action as specified in the original
Notify request. For example, clicking on an action button.
</p></li></ul></div><div class="table"><a id="id2826603"></a><p class="title"><b>Table 9. ActionInvoked Parameters</b></p><div class="table-contents"><table summary="ActionInvoked Parameters" border="1"><colgroup><col /><col /></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody valign="top"><tr><td valign="top"><em class="parameter"><code>id</code></em></td><td valign="top">UINT32</td><td valign="top">
The ID of the notification emitting the ActionInvoked signal.
</td></tr><tr><td valign="top"><em class="parameter"><code>action_key</code></em></td><td valign="top">STRING</td><td valign="top">
The key of the action invoked. These match the keys sent over
in the list of actions.
</td></tr></tbody></table></div></div><br class="table-break" /><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
Clients should not assume the server will generate this signal. Some
servers may not support user interaction at all, or may not support
the concept of being able to "invoke" a notification.
</p></div></div></div></div></div></body></html>

@ -1,13 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.0" language="en_US"> <TS version="2.1" language="en_US">
<context> <context>
<name>NotificationActionsComboWidget</name> <name>NotificationActionsComboWidget</name>
<message> <message>
<location filename="../notificationwidgets.cpp" line="101"/>
<source>Actions:</source> <source>Actions:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../notificationwidgets.cpp" line="120"/>
<source>OK</source> <source>OK</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

@ -4,10 +4,12 @@
<context> <context>
<name>NotificationActionsComboWidget</name> <name>NotificationActionsComboWidget</name>
<message> <message>
<location filename="../notificationwidgets.cpp" line="101"/>
<source>Actions:</source> <source>Actions:</source>
<translation>Aktionen:</translation> <translation>Aktionen:</translation>
</message> </message>
<message> <message>
<location filename="../notificationwidgets.cpp" line="120"/>
<source>OK</source> <source>OK</source>
<translation>OK</translation> <translation>OK</translation>
</message> </message>

@ -4,10 +4,12 @@
<context> <context>
<name>NotificationActionsComboWidget</name> <name>NotificationActionsComboWidget</name>
<message> <message>
<location filename="../notificationwidgets.cpp" line="101"/>
<source>Actions:</source> <source>Actions:</source>
<translation>Ενέργειες:</translation> <translation>Ενέργειες:</translation>
</message> </message>
<message> <message>
<location filename="../notificationwidgets.cpp" line="120"/>
<source>OK</source> <source>OK</source>
<translation>Εντάξει</translation> <translation>Εντάξει</translation>
</message> </message>

@ -4,10 +4,12 @@
<context> <context>
<name>NotificationActionsComboWidget</name> <name>NotificationActionsComboWidget</name>
<message> <message>
<location filename="../notificationwidgets.cpp" line="101"/>
<source>Actions:</source> <source>Actions:</source>
<translation>Akciók:</translation> <translation>Akciók:</translation>
</message> </message>
<message> <message>
<location filename="../notificationwidgets.cpp" line="120"/>
<source>OK</source> <source>OK</source>
<translation></translation> <translation></translation>
</message> </message>

@ -1,13 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.0" language="pt"> <TS version="2.1" language="pt">
<context> <context>
<name>NotificationActionsComboWidget</name> <name>NotificationActionsComboWidget</name>
<message> <message>
<location filename="../notificationwidgets.cpp" line="101"/>
<source>Actions:</source> <source>Actions:</source>
<translation>Ações:</translation> <translation>Ações:</translation>
</message> </message>
<message> <message>
<location filename="../notificationwidgets.cpp" line="120"/>
<source>OK</source> <source>OK</source>
<translation>OK</translation> <translation>OK</translation>
</message> </message>

@ -4,7 +4,7 @@
<context> <context>
<name>NotificationActionsComboWidget</name> <name>NotificationActionsComboWidget</name>
<message> <message>
<location filename="../notificationwidgets.cpp" line="102"/> <location filename="../notificationwidgets.cpp" line="101"/>
<source>Actions:</source> <source>Actions:</source>
<translation>Действия:</translation> <translation>Действия:</translation>
</message> </message>

@ -4,7 +4,7 @@
<context> <context>
<name>NotificationActionsComboWidget</name> <name>NotificationActionsComboWidget</name>
<message> <message>
<location filename="../notificationwidgets.cpp" line="102"/> <location filename="../notificationwidgets.cpp" line="101"/>
<source>Actions:</source> <source>Actions:</source>
<translation>Действия:</translation> <translation>Действия:</translation>
</message> </message>

Loading…
Cancel
Save