xbmc
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CGUIViewState Class Referenceabstract
Inheritance diagram for CGUIViewState:
Inheritance graph
[legend]
Collaboration diagram for CGUIViewState:
Collaboration graph
[legend]

Public Member Functions

void SetViewAsControl (int viewAsControl)
 
void SaveViewAsControl (int viewAsControl)
 
int GetViewAsControl () const
 
bool ChooseSortMethod ()
 
SortDescription SetNextSortMethod (int direction=1)
 
void SetCurrentSortMethod (int method)
 
SortDescription GetSortMethod () const
 
bool HasMultipleSortMethods () const
 
int GetSortMethodLabel () const
 
int GetSortOrderLabel () const
 
void GetSortMethodLabelMasks (LABEL_MASKS &masks) const
 
std::vector< SortDescriptionGetSortDescriptions () const
 
SortOrder SetNextSortOrder ()
 
SortOrder GetSortOrder () const
 
virtual bool HideExtensions ()
 
virtual bool HideParentDirItems ()
 
virtual bool DisableAddSourceButtons ()
 
virtual KODI::PLAYLIST::Id GetPlaylist () const
 
const std::string & GetPlaylistDirectory ()
 
void SetPlaylistDirectory (const std::string &strDirectory)
 
bool IsCurrentPlaylistDirectory (const std::string &strDirectory)
 
virtual bool AutoPlayNextItem ()
 
virtual std::string GetLockType ()
 
virtual std::string GetExtensions ()
 
virtual VECSOURCESGetSources ()
 

Static Public Member Functions

static CGUIViewStateGetViewState (int windowId, const CFileItemList &items)
 

Protected Member Functions

 CGUIViewState (const CFileItemList &items)
 
virtual void SaveViewState ()=0
 
virtual void SaveViewToDb (const std::string &path, int windowID, CViewState *viewState=NULL)
 
void LoadViewState (const std::string &path, int windowID)
 
void AddLiveTVSources ()
 
void AddPlaylistOrder (const CFileItemList &items, const LABEL_MASKS &label_masks)
 Add the sort order defined in a smartplaylist Defaults to SORT_METHOD_PLAYLIST_ORDER if no order is defined. More...
 
void AddSortMethod (SortBy sortBy, int buttonLabel, const LABEL_MASKS &labelMasks, SortAttribute sortAttributes=SortAttributeNone, SortOrder sortOrder=SortOrderNone)
 
void AddSortMethod (SortBy sortBy, SortAttribute sortAttributes, int buttonLabel, const LABEL_MASKS &labelMasks, SortOrder sortOrder=SortOrderNone)
 
void AddSortMethod (SortDescription sortDescription, int buttonLabel, const LABEL_MASKS &labelMasks)
 
void SetSortMethod (SortBy sortBy, SortOrder sortOrder=SortOrderNone)
 
void SetSortMethod (SortDescription sortDescription)
 
void SetSortOrder (SortOrder sortOrder)
 
bool AutoPlayNextVideoItem () const
 

Protected Attributes

const CFileItemListm_items
 
int m_currentViewAsControl
 
KODI::PLAYLIST::Id m_playlist
 
std::vector< GUIViewSortDetailsm_sortMethods
 
int m_currentSortMethod
 

Static Protected Attributes

static VECSOURCES m_sources
 
static std::string m_strPlaylistDirectory
 

Member Function Documentation

◆ AddPlaylistOrder()

void CGUIViewState::AddPlaylistOrder ( const CFileItemList items,
const LABEL_MASKS label_masks 
)
protected

Add the sort order defined in a smartplaylist Defaults to SORT_METHOD_PLAYLIST_ORDER if no order is defined.

Parameters
itemsthe list of items for the view state.
label_maskthe label masks for formatting items.

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