[X2Go-Commits] [x2goclient] 161/217: src/pulsemanager.{cpp, h}: add debugging setter and private variable.
git-admin at x2go.org
git-admin at x2go.org
Sat Aug 27 19:26:11 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 1fb021adff2057c2e0c64485a51f2eb0a1c9cf05
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 85fc0df..64528ad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -301,6 +301,7 @@ x2goclient (4.0.5.2-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.
* debian/control:
- Maintainer change in package: X2Go Developers <x2go-dev at lists.x2go.org>.
- Uploaders: add myself. Also, force a rebuild due to the changed
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