blob: ec4ea32ef6fdbdfb619d17b0d9e95f477a37f874 (
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
29
30
31
32
33
|
/*
* Copyright (C) 2022 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
#include "favourites/FavouritesService.h"
#include "windows/GUIMediaWindow.h"
class CGUIWindowFavourites : public CGUIMediaWindow
{
public:
CGUIWindowFavourites();
~CGUIWindowFavourites() override;
protected:
std::string GetRootPath() const override { return "favourites://"; }
bool OnSelect(int item) override;
bool OnAction(const CAction& action) override;
bool OnMessage(CGUIMessage& message) override;
bool Update(const std::string& strDirectory, bool updateFilterPath = true) override;
private:
void OnFavouritesEvent(const CFavouritesService::FavouritesUpdated& event);
bool MoveItem(int item, int amount);
bool RemoveItem(int item);
};
|