Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2017-03-19 23:35:15 +0300
committerMikkel Krautz <mikkel@krautz.dk>2017-03-19 23:35:15 +0300
commit35c7d13bfc922c4c6d2e3b2cd0975512991fb286 (patch)
tree71cc9107a9dde1ba10efb5b631d58e2b12d5802a /overlay/olsettings.h
parentbe43c91f4fe60e280c21a89fdce0948c28b9a63e (diff)
overlay: add olsettings.cpp/olsettings.h, accessors for launcher overlay settings.
This adds accessors for the new launcher-filter settings.
Diffstat (limited to 'overlay/olsettings.h')
-rw-r--r--overlay/olsettings.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/overlay/olsettings.h b/overlay/olsettings.h
new file mode 100644
index 000000000..133bccb8e
--- /dev/null
+++ b/overlay/olsettings.h
@@ -0,0 +1,42 @@
+// Copyright 2005-2017 The Mumble Developers. All rights reserved.
+// Use of this source code is governed by a BSD-style license
+// that can be found in the LICENSE file at the root of the
+// Mumble source tree or at <https://www.mumble.info/LICENSE>.
+
+#ifndef MUMBLE_OVERLAY_OLSETTINGS_H_
+#define MUMBLE_OVERLAY_OLSETTINGS_H_
+
+#include <string>
+#include <vector>
+
+/// OverlayExclusionMode defines the overlay exclusion
+/// rules for Mumble.
+enum OverlayExclusionMode {
+ /// Use the launcher filter-based exclusion mode.
+ LauncherFilterExclusionMode,
+ /// Use only the program whitelist.
+ WhitelistExclusionMode,
+ /// Use only the program blacklist.
+ BlacklistExclusionMode
+};
+
+/// Get the configured overlay exclusion mode for Mumble.
+OverlayExclusionMode SettingsGetExclusionMode();
+
+/// Get the list of launcher programs to consider when
+/// checking the overlay exclusion rules.
+std::vector<std::string> SettingsGetLaunchers();
+
+/// Get the list of whitelisted programs to consider when
+/// checking the overlay exclusion rules.
+std::vector<std::string> SettingsGetWhitelist();
+
+/// Get the list of whitelisted paths to consider when
+/// checking the overlay exclusion rules.
+std::vector<std::string> SettingsGetPaths();
+
+/// Get the list of blacklisted programs to consider when
+/// checking the overlay exclusion rules.
+std::vector<std::string> SettingsGetBlacklist();
+
+#endif