xbmc
Classes | Public Member Functions | List of all members
CDirectoryHistory Class Reference

Classes

class  CHistoryItem
 
class  CPathHistoryItem
 

Public Member Functions

void SetSelectedItem (const std::string &strSelectedItem, const std::string &strDirectory, const int indexItem=-1)
 Store the currently selected item for the navigation path. More...
 
const std::string & GetSelectedItem (const std::string &strDirectory) const
 
int GetSelectedItemIndex (const std::string &strDirectory) const
 
void RemoveSelectedItem (const std::string &strDirectory)
 
void AddPath (const std::string &strPath, const std::string &m_strFilterPath="")
 
void AddPathFront (const std::string &strPath, const std::string &m_strFilterPath="")
 
std::string GetParentPath (bool filter=false)
 
std::string RemoveParentPath (bool filter=false)
 
void ClearPathHistory ()
 
void ClearSearchHistory ()
 
void DumpPathHistory ()
 
bool IsInHistory (const std::string &path) const
 Returns whether a path is in the history. More...
 

Member Function Documentation

◆ IsInHistory()

bool CDirectoryHistory::IsInHistory ( const std::string &  path) const

Returns whether a path is in the history.

Parameters
pathto test
Returns
true if the path is in the history, false otherwise.

◆ SetSelectedItem()

void CDirectoryHistory::SetSelectedItem ( const std::string &  strSelectedItem,
const std::string &  strDirectory,
const int  indexItem = -1 
)

Store the currently selected item for the navigation path.

Parameters
strSelectedItemSelected item
strDirectoryPath
indexItemIndex of the selected item (in list, after filtering/sorting). -1 when the index information is not available.

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