Push UnifiedPush come harbour-fmd (0.16.0)
Connector D-Bus org.unifiedpush.Connector.harbour-grumpydove: possiede il nome, esporta NewEndpoint/Message/Unregistered (Q_CLASSINFO sulla classe, non su un adaptor: con un adaptor l'interfaccia non viene esportata), si registra col distributore FogHorn in asincrono e salva token ed endpoint. Il risveglio si dirama per ambiente (GRUMPYDOVE_PUSH_WAKE=1) prima di creare la GUI: nessuna finestra, motore in un thread, checkMail, notifica via org.freedesktop.Notifications, uscita con tetto a 60 s. preparaPercorsiMotore() sta in un posto solo, usata da app e risveglio.
This commit is contained in:
1 parent
d7549cedd0
commit
d9aa530ffd
8 files changed
+323
-35
No files matched your search
@@ -44,6 +44,15 @@ Page {
|
||||
|
||||
// Le callback del motore arrivano quando il bridge le riceve: se la pagina
|
||||
// e' gia' aperta, si ricarica qui.
|
||||
Connections {
|
||||
target: pushService
|
||||
// Il push non porta dati: dice solo che c'è posta da guardare.
|
||||
onPushReceived: {
|
||||
page.nonLettiPrima = engine.totalUnread();
|
||||
engine.checkMail();
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: engine
|
||||
onReady: page.carica()
|
||||
|
||||
Reference in new issue
Block a user