12 #include "threads/CriticalSection.h"    13 #include "utils/JobManager.h"    17 enum SUBTITLE_STORAGEMODE
    19   SUBTITLE_STORAGEMODE_MOVIEPATH = 0,
    20   SUBTITLE_STORAGEMODE_CUSTOMPATH
    35   void Process(
unsigned int currentTime, CDirtyRegionList &dirtyregions) 
override;
    38   bool SetService(
const std::string &service);
    39   const CFileItemPtr GetService() 
const;
    42   void ClearSubtitles();
    44   enum STATUS { NO_SERVICES = 0, SEARCHING, SEARCH_COMPLETE, DOWNLOADING };
    45   void UpdateStatus(STATUS status);
    47   void Search(
const std::string &search=
"");
    61   void SetSubtitles(
const std::string &subtitle);
    63   CCriticalSection m_critsection;
    66   std::string    m_currentService;
    68   std::string     m_strManualSearch;
    69   bool           m_pausedOnRun = 
false;
 Definition: GUIDialogSubtitles.h:26
void OnJobComplete(unsigned int jobID, bool success, CJob *job) override
The callback used when a job completes. 
Definition: GUIDialogSubtitles.cpp:394
Base class for jobs that are executed asynchronously. 
Definition: Job.h:109
Represents a list of files. 
Definition: FileItem.h:702
std::string m_LastAutoDownloaded
Last video file path which automatically downloaded subtitle. 
Definition: GUIDialogSubtitles.h:71
void OnInitWindow() override
Called on window open. 
Definition: GUIDialogSubtitles.cpp:196
Definition: GUIDialog.h:35
Definition: GUIMessage.h:365
bool m_updateSubsList
true if we need to update our subs list 
Definition: GUIDialogSubtitles.h:70
void OnDownloadComplete(const CFileItemList *items, const std::string &language)
Definition: GUIDialogSubtitles.cpp:530
void OnSubtitleServiceContextMenu(int itemIdx)
Called when the context menu is requested on a subtitle service present on the list of installed subt...
Definition: GUIDialogSubtitles.cpp:431
Represents a file on a share. 
Definition: FileItem.h:102
Job Queue class to handle a queue of unique jobs to be processed sequentially. 
Definition: JobManager.h:63