Your message dated Thu, 28 Jan 2021 21:12:28 +0300
with message-id <580931611857...@mail.yandex.ru>
and subject line Outdated
has caused the Debian Bug report #498357,
regarding please patch psi dbus remote control
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
498357: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498357
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: psi
Version: 0.12-2
Severity: wishlist
Tags: patch

The psi developers seem to be only using long running machines or
eventually windows or mac (where this problem doesn't occur). They seem
to not care about any method to use psi with suspend to disk (on linux)
or any other remote control with reasonings like "for other operating
systems there are interfaces for that, so we wait for linux to come up
with one, too". While this seems valid it is heavily breaking the
usability of psi. Many users (me being an example) would be almost happy
with any kind of remote control such as dbus. Fortunately psi uses dbus
now, so it is kind of easy to extend that interface with status
functions. So please patch the Debian psi version until upstream
understands the importance of this matter. The patch is to be applied to
src/dbus.cpp and does nothing except extending the dbus interface by six
functions. While it might be^W^Wis cleaner to use one function for this
using 6 functions avoids parsing a string to an enum.

Helmut

--- dbus.cpp.orig       2007-12-10 21:44:47.000000000 +0100
+++ dbus.cpp    2008-09-09 13:43:29.000000000 +0200
@@ -27,6 +27,13 @@
 public Q_SLOTS:
 //     void openURI(QString uri);
        void raise();
+       void setstatusonline(const QString &message);
+       void setstatusaway(const QString &message);
+       void setstatusffc(const QString &message);
+       void setstatusxa(const QString &message);
+       void setstatusdnd(const QString &message);
+       void setstatusoffline(const QString &message);
+
 /*Q_SIGNALS:
        void psi_pong();
 */
@@ -54,9 +61,41 @@
 {
        psicon->raiseMainwin();
 }
+void PsiConAdapter::setstatusonline(const QString &message)
+{
+       Status s(Status::Online, message);
+       psicon->setGlobalStatus(s);
+}      
 
+void PsiConAdapter::setstatusaway(const QString &message)
+{
+       Status s(Status::Away, message);
+       psicon->setGlobalStatus(s);
+}      
 
+void PsiConAdapter::setstatusffc(const QString &message)
+{
+       Status s(Status::FFC, message);
+       psicon->setGlobalStatus(s);
+}      
 
+void PsiConAdapter::setstatusxa(const QString &message)
+{
+       Status s(Status::XA, message);
+       psicon->setGlobalStatus(s);
+}      
+
+void PsiConAdapter::setstatusdnd(const QString &message)
+{
+       Status s(Status::DND, message);
+       psicon->setGlobalStatus(s);
+}      
+
+void PsiConAdapter::setstatusoffline(const QString &message)
+{
+       Status s(Status::Offline, message);
+       psicon->setGlobalStatus(s);
+}      
 
 void addPsiConAdapter(PsiCon *psicon)
 {



--- End Message ---
--- Begin Message ---
.

--- End Message ---

Reply via email to