summaryrefslogtreecommitdiffstats
path: root/xbmc/dialogs/IGUIVolumeBarCallback.h
blob: 5e4012a6ef7fb44b236ae10f37d67ae99a2b24ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
};