kodi
Static Public Member Functions | List of all members
CAutoSwitch Class Reference

Static Public Member Functions

static int GetView (const CFileItemList &vecItems)
 Generic function to add a layer of transparency to the calling window. More...
 
static bool ByFolders (const CFileItemList &vecItems)
 Auto Switch method based on the current directory containing ALL folders and atleast one non-default thumb. More...
 
static bool ByFiles (bool bHideParentDirItems, const CFileItemList &vecItems)
 Auto Switch method based on the current directory not containing ALL files and atleast one non-default thumb. More...
 
static bool ByThumbPercent (bool bHideParentDirItems, int iPercent, const CFileItemList &vecItems)
 Auto Switch method based on the percentage of non-default thumbs in the current directory. More...
 
static bool ByFileCount (const CFileItemList &vecItems)
 Auto Switch method based on whether there is more than 25% files. More...
 
static bool ByFolderThumbPercentage (bool hideParentDirItems, int percent, const CFileItemList &vecItems)
 
static float MetadataPercentage (const CFileItemList &vecItems)
 

Member Function Documentation

◆ ByFileCount()

bool CAutoSwitch::ByFileCount ( const CFileItemList vecItems)
static

Auto Switch method based on whether there is more than 25% files.

Parameters
iPercentPercent of non-default thumbs to autoswitch on

◆ ByFiles()

bool CAutoSwitch::ByFiles ( bool  bHideParentDirItems,
const CFileItemList vecItems 
)
static

Auto Switch method based on the current directory not containing ALL files and atleast one non-default thumb.

Parameters
bHideParentDirItems- are we not counting the ".." item?
vecItemsVector of FileItems

◆ ByFolders()

bool CAutoSwitch::ByFolders ( const CFileItemList vecItems)
static

Auto Switch method based on the current directory containing ALL folders and atleast one non-default thumb.

Parameters
vecItemsVector of FileItems

◆ ByThumbPercent()

bool CAutoSwitch::ByThumbPercent ( bool  bHideParentDirItems,
int  iPercent,
const CFileItemList vecItems 
)
static

Auto Switch method based on the percentage of non-default thumbs in the current directory.

Parameters
iPercentPercent of non-default thumbs to autoswitch on
vecItemsVector of FileItems

◆ GetView()

int CAutoSwitch::GetView ( const CFileItemList vecItems)
static

Generic function to add a layer of transparency to the calling window.

Parameters
vecItemsVector of FileItems passed from the calling window

The documentation for this class was generated from the following files: