[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / dialogs / GUIDialogSmartPlaylistRule.h
blob75127d33fa8c861d3ed24ae1fedaa4bf1927d606
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 "playlists/SmartPlayList.h"
14 class CGUIDialogSmartPlaylistRule :
15 public CGUIDialog
17 public:
18 CGUIDialogSmartPlaylistRule(void);
19 ~CGUIDialogSmartPlaylistRule(void) override;
20 bool OnMessage(CGUIMessage& message) override;
21 bool OnBack(int actionID) override;
22 void OnInitWindow() override;
23 void OnDeinitWindow(int nextWindowID) override;
25 static bool EditRule(KODI::PLAYLIST::CSmartPlaylistRule& rule, const std::string& type = "songs");
27 protected:
28 void OnField();
29 void OnOperator();
30 void OnOK();
31 void OnCancel();
32 void UpdateButtons();
33 void OnBrowse();
34 std::vector<std::pair<std::string, int>> GetValidOperators(
35 const KODI::PLAYLIST::CSmartPlaylistRule& rule);
36 KODI::PLAYLIST::CSmartPlaylistRule m_rule;
37 bool m_cancelled;
38 std::string m_type;