summaryrefslogtreecommitdiffstats
path: root/xbmc/dialogs/IGUIVolumeBarCallback.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/dialogs/IGUIVolumeBarCallback.h')
-rw-r--r--xbmc/dialogs/IGUIVolumeBarCallback.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/xbmc/dialogs/IGUIVolumeBarCallback.h b/xbmc/dialogs/IGUIVolumeBarCallback.h
new file mode 100644
index 0000000..5e4012a
--- /dev/null
+++ b/xbmc/dialogs/IGUIVolumeBarCallback.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2017-2018 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+/*!
+ * \brief Interface to expose properties to the volume bar dialog
+ */
+class IGUIVolumeBarCallback
+{
+public:
+ virtual ~IGUIVolumeBarCallback() = default;
+
+ /*!
+ * \brief Return true if the callback is active in the GUI
+ *
+ * If a registered callback is shown in the GUI, the volume bar is disabled
+ * until no more callbacks are shown.
+ *
+ * \return True if the callback is active in the GUI, false otherwise
+ */
+ virtual bool IsShown() const = 0;
+};