[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / utils / GroupUtils.h
blob2ea7083a58670145cea3568d619c48fd97358497
1 /*
2 * Copyright (C) 2012-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 <string>
13 class CFileItemList;
15 // can be used as a flag
16 typedef enum {
17 GroupByNone = 0x0,
18 GroupBySet = 0x1
19 } GroupBy;
21 typedef enum {
22 GroupAttributeNone = 0x0,
23 GroupAttributeIgnoreSingleItems = 0x1
24 } GroupAttribute;
26 class GroupUtils
28 public:
29 static bool Group(GroupBy groupBy, const std::string &baseDir, const CFileItemList &items, CFileItemList &groupedItems, GroupAttribute groupAttributes = GroupAttributeNone);
30 static bool Group(GroupBy groupBy, const std::string &baseDir, const CFileItemList &items, CFileItemList &groupedItems, CFileItemList &ungroupedItems, GroupAttribute groupAttributes = GroupAttributeNone);
31 static bool GroupAndMix(GroupBy groupBy, const std::string &baseDir, const CFileItemList &items, CFileItemList &groupedItemsMixed, GroupAttribute groupAttributes = GroupAttributeNone);