Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CAutoSwitch Class Reference

#include <AutoSwitch.h>

Public Member Functions

 CAutoSwitch (void)
 
virtual ~CAutoSwitch (void)
 

Static Public Member Functions

static int GetView (const CFileItemList &vecItems)
 Generic function to add a layer of transparency to the calling window.
 
static bool ByFolders (const CFileItemList &vecItems)
 Auto Switch method based on the current directory containing ALL folders and atleast one non-default thumb.
 
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.
 
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.
 
static bool ByFileCount (const CFileItemList &vecItems)
 Auto Switch method based on whether there is more than 25% files.
 
static bool ByFolderThumbPercentage (bool hideParentDirItems, int percent, const CFileItemList &vecItems)
 
static float MetadataPercentage (const CFileItemList &vecItems)
 

Constructor & Destructor Documentation

◆ CAutoSwitch()

CAutoSwitch::CAutoSwitch ( void )
default

◆ ~CAutoSwitch()

CAutoSwitch::~CAutoSwitch ( void )
virtualdefault

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

◆ ByFolderThumbPercentage()

bool CAutoSwitch::ByFolderThumbPercentage ( bool hideParentDirItems,
int percent,
const CFileItemList & vecItems )
static

◆ 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

◆ MetadataPercentage()

float CAutoSwitch::MetadataPercentage ( const CFileItemList & vecItems)
static

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