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.
11 #include "guilib/GUIDialog.h"
12 #include "playlists/SmartPlayList.h"
14 class CGUIDialogSmartPlaylistRule
:
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");
34 std::vector
<std::pair
<std::string
, int>> GetValidOperators(
35 const KODI::PLAYLIST::CSmartPlaylistRule
& rule
);
36 KODI::PLAYLIST::CSmartPlaylistRule m_rule
;