|
bool | GetDirectory (const CURL &url, CFileItemList &items) override |
| Retrieve the shares or the content of a directory. More...
|
|
void | CancelDirectory () override |
| Cancel the current directory fetch (if possible). More...
|
|
bool | GetDirectory (const CURL &url, CFileItemList &items, bool bUseFileDirectories, bool keepImpl) |
|
void | SetSources (const VECSOURCES &vecSources) |
| Add shares to the virtual directory. More...
|
|
unsigned int | GetNumberOfSources () |
|
bool | IsSource (const std::string &strPath, VECSOURCES *sources=NULL, std::string *name=NULL) const |
| Is the share strPath in the virtual directory. More...
|
|
bool | IsInSource (const std::string &strPath) const |
| Is the share path in the virtual directory. More...
|
|
const CMediaSource & | operator[] (const int index) const |
|
CMediaSource & | operator[] (const int index) |
|
void | GetSources (VECSOURCES &sources) const |
|
void | AllowNonLocalSources (bool allow) |
|
std::shared_ptr< IDirectory > | GetDirImpl () |
|
void | ReleaseDirImpl () |
|
virtual float | GetProgress () const |
| Retrieve the progress of the current directory fetch (if possible). More...
|
|
virtual bool | Create (const CURL &url) |
| Create the directory. More...
|
|
virtual bool | Exists (const CURL &url) |
| Check for directory existence. More...
|
|
virtual bool | Remove (const CURL &url) |
| Removes the directory. More...
|
|
virtual bool | RemoveRecursive (const CURL &url) |
| Recursively removes the directory. More...
|
|
virtual bool | IsAllowed (const CURL &url) const |
| Whether this file should be listed. More...
|
|
virtual bool | AllowAll () const |
| Whether to allow all files/folders to be listed. More...
|
|
virtual DIR_CACHE_TYPE | GetCacheType (const CURL &url) const |
| How this directory should be cached. More...
|
|
void | SetMask (const std::string &strMask) |
| Set a mask of extensions for the files in the directory. More...
|
|
void | SetFlags (int flags) |
| Set the flags for this directory handler. More...
|
|
bool | ProcessRequirements () |
| Process additional requirements before the directory fetch is performed. Some directory fetches may require authentication, keyboard input etc. The IDirectory subclass should call GetKeyboardInput, SetErrorDialog or RequireAuthentication and then return false from the GetDirectory method. CDirectory will then prompt for input from the user, before re-calling the GetDirectory method. More...
|
|
virtual bool | Resolve (CFileItem &item) const |
| Resolves a given item to a playable item. More...
|
|
|
void | CacheThumbs (CFileItemList &items) |
|
bool | GetKeyboardInput (const CVariant &heading, std::string &input, bool hiddenInput=false) |
| Prompt the user for some keyboard input Call this method from the GetDirectory method to retrieve additional input from the user. If this function returns false then no input has been received, and the GetDirectory call should return false. More...
|
|
void | SetErrorDialog (const CVariant &heading, const CVariant &line1, const CVariant &line2=0, const CVariant &line3=0) |
| Show an error dialog on failure of GetDirectory call Call this method from the GetDirectory method to set an error message to be shown to the user. More...
|
|
void | RequireAuthentication (const CURL &url) |
| Prompt the user for authentication of a URL. Call this method from the GetDirectory method when authentication is required from the user, before returning false from the GetDirectory call. The user will be prompted for authentication, and GetDirectory will be re-called. More...
|
|
Get access to shares and it's directories.