[X2Go-Commits] [x2goclient] 161/239: src/pulsemanager.{cpp, h}: add debugging setter and private variable.

git-admin at x2go.org git-admin at x2go.org
Mon Oct 24 23:27:40 CEST 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch bugfix/osx
in repository x2goclient.

commit 760c50f990af455b6dda839bc0f7f670bb54af6e
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat May 7 02:58:01 2016 +0200

    src/pulsemanager.{cpp,h}: add debugging setter and private variable.
---
 debian/changelog     |    1 +
 src/pulsemanager.cpp |    7 ++++++-
 src/pulsemanager.h   |    2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 216b57a..e602d61 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -272,6 +272,7 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
     - src/pulsemanager.cpp: fix compile error due to typo.
     - src/pulsemanager.cpp: hide Windows-only code behind #ifdefs. Otherwise
       we'll get compile failures on non-Windows platforms.
+    - src/pulsemanager.{cpp,h}: add debugging setter and private variable.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.0.5.3):
diff --git a/src/pulsemanager.cpp b/src/pulsemanager.cpp
index 21049ca..6fe8418 100644
--- a/src/pulsemanager.cpp
+++ b/src/pulsemanager.cpp
@@ -43,7 +43,8 @@ PulseManager::PulseManager () : app_dir_ (QApplication::applicationDirPath ()),
                                 pulse_version_micro_ (0),
                                 pulse_version_misc_ (""),
                                 record_ (true),
-                                playback_ (true) {
+                                playback_ (true),
+                                debug_ (false) {
   pulse_dir_ = QDir (QDir::homePath ());
   pulse_dir_.mkpath (pulse_dir_.absolutePath () + pulse_X2Go_ + "/tmp");
   pulse_dir_.cd (pulse_X2Go_.mid (1));
@@ -698,6 +699,10 @@ bool PulseManager::set_playback (bool playback) {
   return (ret);
 }
 
+void PulseManager::set_debug (bool debug) {
+  debug_ = debug;
+}
+
 void PulseManager::restart () {
   if (pulse_server_ && is_server_running ())
     shutdown ();
diff --git a/src/pulsemanager.h b/src/pulsemanager.h
index 4c82f19..1d06de0 100644
--- a/src/pulsemanager.h
+++ b/src/pulsemanager.h
@@ -58,6 +58,7 @@ class PulseManager: public QObject {
     bool set_esd_port (std::uint16_t esd_port);
     bool set_record (bool record);
     bool set_playback (bool playback);
+    bool set_debug (bool debug);
 
 
   public slots:
@@ -120,6 +121,7 @@ class PulseManager: public QObject {
 
     bool record_;
     bool playback_;
+    bool debug_;
 };
 
 #ifdef NDEBUG_DEFINE

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list