[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / dialogs / GUIDialogVolumeBar.h
blobe8413d0f86ed9fe20d22634a07cf2e454b056183
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "guilib/GUIDialog.h"
12 #include "threads/CriticalSection.h"
14 #include <set>
16 class IGUIVolumeBarCallback;
18 class CGUIDialogVolumeBar : public CGUIDialog
20 public:
21 CGUIDialogVolumeBar(void);
22 ~CGUIDialogVolumeBar(void) override;
23 bool OnMessage(CGUIMessage& message) override;
24 bool OnAction(const CAction &action) override;
26 // Volume bar interface
27 void RegisterCallback(IGUIVolumeBarCallback *callback);
28 void UnregisterCallback(IGUIVolumeBarCallback *callback);
29 bool IsVolumeBarEnabled() const;
31 private:
32 std::set<IGUIVolumeBarCallback*> m_callbacks;
33 mutable CCriticalSection m_callbackMutex;