|
static bool | RunScriptWithParams (const std::string &strPath, bool resume) |
|
static bool | GetResolvedPluginResult (CFileItem &resultItem) |
| Get a reproducible CFileItem by trying to recursively resolve the plugin paths up to a maximum allowed limit. If no plugin paths exist it will be ignored.
|
|
static bool | GetPluginResult (const std::string &strPath, CFileItem &resultItem, bool resume) |
|
static bool | IsMediaLibraryScanningAllowed (const std::string &content, const std::string &strPath) |
| Check whether a plugin supports media library scanning.
|
|
static bool | CheckExists (const std::string &content, const std::string &strPath) |
| Check whether a plugin url exists by calling the plugin and checking result. Applies only to plugins that support media library scanning.
|
|
static bool | AddItem (int handle, const CFileItem *item, int totalItems) |
|
static bool | AddItems (int handle, const CFileItemList *items, int totalItems) |
|
static void | EndOfDirectory (int handle, bool success, bool replaceListing, bool cacheToDisc) |
|
static void | AddSortMethod (int handle, SortMethod sortMethod, const std::string &labelMask, const std::string &label2Mask) |
|
static std::string | GetSetting (int handle, const std::string &key) |
|
static void | SetSetting (int handle, const std::string &key, const std::string &value) |
|
static void | SetContent (int handle, const std::string &strContent) |
|
static void | SetProperty (int handle, const std::string &strProperty, const std::string &strValue) |
|
static void | SetResolvedUrl (int handle, bool success, const CFileItem *resultItem) |
|
static void | SetLabel2 (int handle, const std::string &ident) |
|
static void | RegisterProfileManager (const CProfileManager &profileManager) |
|
static void | UnregisterProfileManager () |
|
|
bool | IsSuccessful () const override |
|
bool | IsCancelled () const override |
|
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.
|
|
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.
|
|
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.
|
|
Protected Member Functions inherited from CRunningScriptsHandler< CPluginDirectory > |
ADDON::AddonPtr | GetAddon () const |
|
void | SetDone () |
|
bool | StartScript (const ADDON::AddonPtr &addon, const std::string &path) |
|
| CRunningScriptsHandler ()=default |
|
virtual | ~CRunningScriptsHandler ()=default |
|
bool | RunScript (CPluginDirectory *script, const ADDON::AddonPtr &addon, const std::string &path, bool resume) |
|
ADDON::AddonPtr | GetAddon () const |
|
void | SetDone () |
|
bool | StartScript (const ADDON::AddonPtr &addon, const std::string &path) |
|
| CScriptRunner () |
|
virtual | ~CScriptRunner ()=default |
|
ADDON::AddonPtr | GetAddon () const |
|
bool | StartScript (const ADDON::AddonPtr &addon, const std::string &path) |
|
bool | RunScript (const ADDON::AddonPtr &addon, const std::string &path, int handle, bool resume) |
|
void | SetDone () |
|
|
Protected Types inherited from CRunningScriptsHandler< CPluginDirectory > |
using | HandleType |
|
Static Protected Member Functions inherited from CRunningScriptsHandler< CPluginDirectory > |
static int | ExecuteScript (const ADDON::AddonPtr &addon, const std::string &path, bool resume) |
|
static int | ExecuteScript (const ADDON::AddonPtr &addon, const std::string &path, int handle, bool resume) |
|
static HandleType | GetNewScriptHandle (CPluginDirectory *script) |
|
static void | ReuseScriptHandle (HandleType handle, CPluginDirectory *script) |
|
static void | RemoveScriptHandle (HandleType handle) |
|
static CPluginDirectory * | GetScriptFromHandle (HandleType handle) |
|
static CCriticalSection & | GetScriptsLock () |
|
static int | ExecuteScript (const ADDON::AddonPtr &addon, const std::string &path, bool resume) |
|
static int | ExecuteScript (const ADDON::AddonPtr &addon, const std::string &path, int handle, bool resume) |
|
static int | ExecuteScript (const ADDON::AddonPtr &addon, const std::string &path, bool resume) |
|
static int | ExecuteScript (const ADDON::AddonPtr &addon, const std::string &path, int handle, bool resume) |
|
std::string | m_strFileMask |
| Holds the file mask specified by SetMask()
|
|
int | m_flags |
| Directory flags - see DIR_FLAG.
|
|
CVariant | m_requirements |
|
static const CProfileManager * | m_profileManager = nullptr |
|