Add notification support to WiimotedevShortcuts
This commit is contained in:
parent
56c0c3807f
commit
6c3be4f5b1
|
@ -7,5 +7,15 @@
|
|||
<arg direction="out" type="u" name="id" />
|
||||
<arg direction="out" type="t" name="value" />
|
||||
</signal>
|
||||
<signal name="dbusWiimoteConnected">
|
||||
<arg direction="out" type="u" name="id" />
|
||||
</signal>
|
||||
<signal name="dbusWiimoteDisconnected">
|
||||
<arg direction="out" type="u" name="id" />
|
||||
</signal>
|
||||
<signal name="dbusWiimoteBatteryLife">
|
||||
<arg type="u" direction="out"/>
|
||||
<arg type="y" direction="out"/>
|
||||
</signal>
|
||||
</interface>
|
||||
</node>
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1880,6 +1884,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1880,6 +1884,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 temes"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n han fallat"
|
||||
|
@ -1901,6 +1905,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1884,6 +1888,22 @@ msgstr "Když se Clementine spustí"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1887,6 +1891,22 @@ msgstr "Når Clementine starter"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 Stücke"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n fehlgeschlagen"
|
||||
|
@ -1906,6 +1910,22 @@ msgstr "Bei Programmstart"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr "W-LAN MAC Adresse"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -54,6 +54,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 κομμάτια"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n απέτυχε"
|
||||
|
@ -1910,6 +1914,22 @@ msgstr "Όταν ξεκινά το Clementine"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr "Διεύθυνση MAC του WiFi"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n failed"
|
||||
|
@ -1885,6 +1889,22 @@ msgstr "When Clementine starts"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1882,6 +1886,22 @@ msgstr "When Clementine starts"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 pistas"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1909,6 +1913,22 @@ msgstr "Cuando Clementine inicia"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 kappaletta"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n epäonnistui"
|
||||
|
@ -1882,6 +1886,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 pistes"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n échoué"
|
||||
|
@ -1896,6 +1900,22 @@ msgstr "Quand Clementine démarre"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1882,6 +1886,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 szám"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n meghiúsult"
|
||||
|
@ -1901,6 +1905,22 @@ msgstr "Amikor a Clementine elindul"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr "WiFi MAC cím"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 tracce"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n non riusciti"
|
||||
|
@ -1919,6 +1923,22 @@ msgstr "All'avvio di Clementine"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr "Indirizzo MAC WiFi"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1882,6 +1886,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 takeliai"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1880,6 +1884,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 spor"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1884,6 +1888,22 @@ msgstr "Når Clementine starter"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 tracks"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n mislukt"
|
||||
|
@ -1907,6 +1911,22 @@ msgstr "Zodra Clementine wordt gestart"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1880,6 +1884,22 @@ msgstr "Quand Clementine avia"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@ msgstr "%1 utwory"
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 ścieżek"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n zawiodło"
|
||||
|
@ -1893,6 +1897,22 @@ msgstr "Gdy Clementine jest uruchamiane"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr "Wiiremote %1: połączony"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr "Wiiremote %1: krytyczny poziom baterii (%2%)"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr "Wiiremote %1: rozłączony"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr "Wiiremote %1: niski poziom baterii (%2%)"
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 faixas"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n falha(s)"
|
||||
|
@ -1902,6 +1906,22 @@ msgstr "Ao iniciar o Clementine"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr "Endereço MAC WiFi"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 faixas"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n falhou"
|
||||
|
@ -1893,6 +1897,22 @@ msgstr "Quando Clementine iniciar"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1881,6 +1885,22 @@ msgstr "Când pornește Clementine"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -51,6 +51,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 композиций"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n с ошибкой"
|
||||
|
@ -1898,6 +1902,22 @@ msgstr "При запуске Clementine"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr "MAC адрес WiFi"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 skladieb"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n zlyhalo"
|
||||
|
@ -1900,6 +1904,22 @@ msgstr "Pri zapnutí Clementine"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr "WiFi MAC adresa"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 skladb"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n spodletelih"
|
||||
|
@ -1899,6 +1903,22 @@ msgstr "Ko se Clementine zažene"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 нумера"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1885,6 +1889,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 spår"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n misslyckades"
|
||||
|
@ -1898,6 +1902,22 @@ msgstr "När Clementine startar"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr "MAC-adress för WiFi"
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 parça"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n başarısız"
|
||||
|
@ -1886,6 +1890,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -42,6 +42,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1870,6 +1874,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 доріжок"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n з помилкою"
|
||||
|
@ -1897,6 +1901,22 @@ msgstr "Під час запуску Clementine"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr ""
|
||||
|
@ -1880,6 +1884,22 @@ msgstr ""
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,6 +52,10 @@ msgstr ""
|
|||
msgid "%1 tracks"
|
||||
msgstr "%1 歌曲"
|
||||
|
||||
#, qt-format
|
||||
msgid "%1: Wiimotedev module"
|
||||
msgstr ""
|
||||
|
||||
#, c-format, qt-plural-format
|
||||
msgid "%n failed"
|
||||
msgstr "%n 失敗的"
|
||||
|
@ -1885,6 +1889,22 @@ msgstr "當Clementine啟動"
|
|||
msgid "WiFi MAC Address"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: connected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: critical battery (%2%) "
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: disconnected"
|
||||
msgstr ""
|
||||
|
||||
#, qt-format
|
||||
msgid "Wiiremote %1: low battery (%2%)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Windows Media audio"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -474,7 +474,7 @@ MainWindow::MainWindow(NetworkAccessManager* network, Engine::Type engine, QWidg
|
|||
#endif
|
||||
|
||||
#ifdef ENABLE_WIIMOTEDEV
|
||||
wiimotedev_shortcuts_.reset(new WiimotedevShortcuts(this, player_));
|
||||
wiimotedev_shortcuts_.reset(new WiimotedevShortcuts(osd_, this, player_));
|
||||
#endif
|
||||
|
||||
qDebug() << t.restart() << "tray";
|
||||
|
|
|
@ -190,3 +190,27 @@ void OSD::ShowMessage(const QString& summary,
|
|||
#ifndef Q_WS_X11
|
||||
void OSD::CallFinished(QDBusPendingCallWatcher*) {}
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_WIIMOTEDEV
|
||||
|
||||
void OSD::WiiremoteConnected(int id) {
|
||||
ShowMessage(QString(tr("%1: Wiimotedev module")).arg(QCoreApplication::applicationName()),
|
||||
tr("Wiiremote %1: connected").arg(QString::number(id)));
|
||||
}
|
||||
|
||||
void OSD::WiiremoteDisconnected(int id) {
|
||||
ShowMessage(QString(tr("%1: Wiimotedev module")).arg(QCoreApplication::applicationName()),
|
||||
tr("Wiiremote %1: disconnected").arg(QString::number(id)));
|
||||
}
|
||||
|
||||
void OSD::WiiremoteLowBattery(int id, int live) {
|
||||
ShowMessage(QString(tr("%1: Wiimotedev module")).arg(QCoreApplication::applicationName()),
|
||||
tr("Wiiremote %1: low battery (%2%)").arg(QString::number(id), QString::number(live)));
|
||||
}
|
||||
|
||||
void OSD::WiiremoteCriticalBattery(int id, int live) {
|
||||
ShowMessage(QString(tr("%1: Wiimotedev module")).arg(QCoreApplication::applicationName()),
|
||||
tr("Wiiremote %1: critical battery (%2%) ").arg(QString::number(id), QString::number(live)));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -72,6 +72,13 @@ class OSD : public QObject {
|
|||
void VolumeChanged(int value);
|
||||
void MagnatuneDownloadFinished(const QStringList& albums);
|
||||
|
||||
#ifdef ENABLE_WIIMOTEDEV
|
||||
void WiiremoteConnected(int id);
|
||||
void WiiremoteDisconnected(int id);
|
||||
void WiiremoteLowBattery(int id, int live);
|
||||
void WiiremoteCriticalBattery(int id, int live);
|
||||
#endif
|
||||
|
||||
private:
|
||||
struct WaitingForAlbumArt {
|
||||
QString summary;
|
||||
|
|
|
@ -22,10 +22,13 @@
|
|||
const char* WiimotedevShortcuts::kActionsGroup = "WiimotedevActions";
|
||||
const char* WiimotedevShortcuts::kSettingsGroup = "WiimotedevSettings";
|
||||
|
||||
WiimotedevShortcuts::WiimotedevShortcuts(QWidget* window, QObject* parent)
|
||||
WiimotedevShortcuts::WiimotedevShortcuts(OSD* osd, QWidget* window, QObject* parent)
|
||||
:QObject(parent),
|
||||
osd_(osd),
|
||||
main_window_(window),
|
||||
player_(qobject_cast<Player*>(parent)),
|
||||
low_battery_notification_(true),
|
||||
critical_battery_notification_(true),
|
||||
wiimotedev_active_(true),
|
||||
wiimotedev_buttons_(0),
|
||||
wiimotedev_device_(1),
|
||||
|
@ -34,6 +37,11 @@ WiimotedevShortcuts::WiimotedevShortcuts(QWidget* window, QObject* parent)
|
|||
wiimotedev_iface_(NULL),
|
||||
wiimotedev_notification_(true)
|
||||
{
|
||||
connect(this, SIGNAL(WiiremoteConnected(int)), osd_, SLOT(WiiremoteConnected(int)));
|
||||
connect(this, SIGNAL(WiiremoteDisconnected(int)), osd_, SLOT(WiiremoteDisconnected(int)));
|
||||
connect(this, SIGNAL(WiiremoteLowBattery(int,int)), osd_, SLOT(WiiremoteLowBattery(int,int)));
|
||||
connect(this, SIGNAL(WiiremoteCriticalBattery(int,int)), osd_, SLOT(WiiremoteCriticalBattery(int,int)));
|
||||
|
||||
ReloadSettings();
|
||||
}
|
||||
|
||||
|
@ -48,6 +56,12 @@ void WiimotedevShortcuts::SetWiimotedevInterfaceActived(bool actived) {
|
|||
|
||||
connect(wiimotedev_iface_.get(), SIGNAL(dbusWiimoteGeneralButtons(uint,qulonglong)),
|
||||
this, SLOT(DbusWiimoteGeneralButtons(uint,qulonglong)));
|
||||
connect(wiimotedev_iface_.get(), SIGNAL(dbusWiimoteConnected(uint)), this,
|
||||
SLOT(DbusWiimoteConnected(uint)));
|
||||
connect(wiimotedev_iface_.get(), SIGNAL(dbusWiimoteDisconnected(uint)), this,
|
||||
SLOT(DbusWiimoteDisconnected(uint)));
|
||||
connect(wiimotedev_iface_.get(), SIGNAL(dbusWiimoteBatteryLife(uint,uchar)), this,
|
||||
SLOT(DbusWiimoteBatteryLife(uint,uchar)));
|
||||
|
||||
if (!wiimotedev_iface_.get()->isValid())
|
||||
qWarning("Error connecting to the Wiimotedev-daemon DBUS service");
|
||||
|
@ -121,3 +135,30 @@ void WiimotedevShortcuts::DbusWiimoteGeneralButtons(uint id, qulonglong value) {
|
|||
|
||||
wiimotedev_buttons_ = buttons;
|
||||
}
|
||||
|
||||
void WiimotedevShortcuts::DbusWiimoteConnected(uint id) {
|
||||
if (wiimotedev_device_ == id && wiimotedev_notification_)
|
||||
emit WiiremoteConnected(id);
|
||||
}
|
||||
|
||||
void WiimotedevShortcuts::DbusWiimoteDisconnected(uint id) {
|
||||
if (wiimotedev_device_ == id && wiimotedev_notification_)
|
||||
emit WiiremoteDisconnected(id);
|
||||
}
|
||||
|
||||
void WiimotedevShortcuts::DbusWiimoteBatteryLife(uint id, uchar life) {
|
||||
if (wiimotedev_device_ == id && wiimotedev_notification_) {
|
||||
if (life <= 30 && life > 20 && low_battery_notification_) {
|
||||
low_battery_notification_ = false;
|
||||
emit WiiremoteLowBattery(id, life);
|
||||
}
|
||||
|
||||
if (life <= 20 && critical_battery_notification_) {
|
||||
critical_battery_notification_ = false;
|
||||
low_battery_notification_ = false;
|
||||
emit WiiremoteCriticalBattery(id, life);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -19,9 +19,10 @@
|
|||
|
||||
#include <QWidget>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include "dbus/wiimotedev.h"
|
||||
|
||||
#include "dbus/wiimotedev.h"
|
||||
#include "core/player.h"
|
||||
#include "widgets/osd.h"
|
||||
|
||||
class QSettings;
|
||||
|
||||
|
@ -31,7 +32,7 @@ public:
|
|||
static const char* kActionsGroup;
|
||||
static const char* kSettingsGroup;
|
||||
|
||||
WiimotedevShortcuts(QWidget* window, QObject* parent = 0);
|
||||
WiimotedevShortcuts(OSD* osd, QWidget* window, QObject* parent = 0);
|
||||
|
||||
enum Action {
|
||||
WiimotedevActive = 0,
|
||||
|
@ -57,12 +58,19 @@ public slots:
|
|||
void ReloadSettings();
|
||||
|
||||
private slots:
|
||||
void DbusWiimoteBatteryLife(uint id, uchar life);
|
||||
void DbusWiimoteConnected(uint id);
|
||||
void DbusWiimoteDisconnected(uint id);
|
||||
void DbusWiimoteGeneralButtons(uint id, qulonglong value);
|
||||
|
||||
private:
|
||||
OSD* osd_;
|
||||
QWidget* main_window_;
|
||||
Player* player_;
|
||||
|
||||
bool low_battery_notification_;
|
||||
bool critical_battery_notification_;
|
||||
|
||||
bool wiimotedev_active_;
|
||||
quint64 wiimotedev_buttons_;
|
||||
quint32 wiimotedev_device_;
|
||||
|
@ -73,6 +81,12 @@ private:
|
|||
|
||||
QHash <quint64, quint32> actions_;
|
||||
QSettings settings_;
|
||||
|
||||
signals:
|
||||
void WiiremoteConnected(int);
|
||||
void WiiremoteDisconnected(int);
|
||||
void WiiremoteLowBattery(int, int);
|
||||
void WiiremoteCriticalBattery(int, int);
|
||||
};
|
||||
|
||||
#endif // WIIMOTEDEV_SHORTCUTS_H
|
||||
|
|
Loading…
Reference in New Issue