[video] Fix the refresh of movies with additional versions or extras
[xbmc.git] / xbmc / AutoSwitch.h
bloba1b2d5d2510d95c006b6701f20f92bf55280a0d6
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 class CFileItemList;
13 class CAutoSwitch
15 public:
17 CAutoSwitch(void);
18 virtual ~CAutoSwitch(void);
20 static int GetView(const CFileItemList& vecItems);
22 static bool ByFolders(const CFileItemList& vecItems);
23 static bool ByFiles(bool bHideParentDirItems, const CFileItemList& vecItems);
24 static bool ByThumbPercent(bool bHideParentDirItems, int iPercent, const CFileItemList& vecItems);
25 static bool ByFileCount(const CFileItemList& vecItems);
26 static bool ByFolderThumbPercentage(bool hideParentDirItems, int percent, const CFileItemList &vecItems);
27 static float MetadataPercentage(const CFileItemList &vecItems);
28 protected: