![]() |
CPPMyth
Library to interoperate with MythTV server
|

Data Structures | |
| class | Query |
Public Member Functions | |
| WSAPI (const std::string &server, unsigned port, const std::string &securityPin) | |
| WSAPI & | WithAuthorization (const std::string &user, const std::string &password) |
| WSAPI & | WithSSL (bool yesno) |
| unsigned | CheckService () |
| WSServiceVersion_t | CheckService (WSServiceId_t id) |
| void | InvalidateService () |
| std::string | GetServerHostName () |
| std::string | GetBaseURL () |
| VersionPtr | GetVersion () |
| std::string | ResolveHostName (const std::string &hostname) |
| bool | LoginUser () |
| GET Myth/LoginUser From v36. | |
| SettingPtr | GetHostSetting (const std::string &key, const std::string &hostname) |
| GET Myth/GetSetting. | |
| SettingPtr | GetSetting (const std::string &key, bool myhost) |
| GET Myth/GetSetting. | |
| SettingMapPtr | GetHostSettings (const std::string &hostname) |
| GET Myth/GetSetting. | |
| SettingMapPtr | GetSettings (bool myhost) |
| GET Myth/GetSetting. | |
| bool | PutSetting (const std::string &key, const std::string &value, bool myhost) |
| POST Myth/PutSetting. | |
| CaptureCardListPtr | GetCaptureCardList () |
| GET Capture/GetCaptureCardList. | |
| VideoSourceListPtr | GetVideoSourceList () |
| GET Channel/GetVideoSourceList. | |
| ChannelListPtr | GetChannelList (uint32_t sourceid, bool onlyVisible=true) |
| GET Channel/GetChannelInfoList. | |
| ChannelPtr | GetChannel (uint32_t chanid) |
| GET Channel/GetChannelInfo. | |
| ProgramMapPtr | GetProgramGuide (uint32_t chanid, time_t starttime, time_t endtime) |
| GET Guide/GetProgramGuide for the given channel. | |
| std::map< uint32_t, ProgramMapPtr > | GetProgramGuide (time_t starttime, time_t endtime) |
| GET Guide/GetProgramGuide. | |
| ProgramListPtr | GetRecordedList (unsigned n=0, bool descending=false) |
| GET Dvr/GetRecordedList. | |
| ProgramPtr | GetRecorded (uint32_t chanid, time_t recstartts) |
| GET Dvr/GetRecorded. | |
| ProgramPtr | GetRecorded (uint32_t recordedid) |
| GET Dvr/GetRecorded. | |
| bool | UpdateRecordedWatchedStatus (uint32_t chanid, time_t recstartts, bool watched) |
| POST Dvr/UpdateRecordedWatchedStatus. | |
| bool | UpdateRecordedWatchedStatus (uint32_t recordedid, bool watched) |
| POST Dvr/UpdateRecordedWatchedStatus. | |
| bool | DeleteRecording (uint32_t chanid, time_t recstartts, bool forceDelete=false, bool allowRerecord=false) |
| POST Dvr/DeleteRecording. | |
| bool | DeleteRecording (uint32_t recordedid, bool forceDelete=false, bool allowRerecord=false) |
| POST Dvr/DeleteRecording. | |
| bool | UnDeleteRecording (uint32_t chanid, time_t recstartts) |
| POST Dvr/UnDeleteRecording. | |
| bool | UnDeleteRecording (uint32_t recordedid) |
| POST Dvr/UnDeleteRecording. | |
| RecordScheduleListPtr | GetRecordScheduleList () |
| GET Dvr/GetRecordScheduleList. | |
| RecordSchedulePtr | GetRecordSchedule (uint32_t recordid) |
| GET Dvr/GetRecordSchedule. | |
| bool | AddRecordSchedule (RecordSchedule &record) |
| POST Dvr/AddRecordSchedule. | |
| bool | UpdateRecordSchedule (RecordSchedule &record) |
| POST Dvr/UpdateRecordSchedule. | |
| bool | DisableRecordSchedule (uint32_t recordid) |
| POST Dvr/DisableRecordSchedule. | |
| bool | EnableRecordSchedule (uint32_t recordid) |
| POST Dvr/EnableRecordSchedule. | |
| bool | RemoveRecordSchedule (uint32_t recordid) |
| POST Dvr/RemoveRecordSchedule. | |
| ProgramListPtr | GetUpcomingList () |
| GET Dvr/GetUpcomingList. | |
| ProgramListPtr | GetConflictList () |
| GET Dvr/GetConflictList. | |
| ProgramListPtr | GetExpiringList () |
| GET Dvr/GetExpiringList. | |
| StringListPtr | GetRecGroupList () |
| GET Dvr/GetRecGroupList. | |
| WSStreamPtr | GetFile (const std::string &filename, const std::string &sgname) |
| GET Content/GetFile. | |
| WSStreamPtr | GetChannelIcon (uint32_t chanid, unsigned width=0, unsigned height=0) |
| GET Guide/GetChannelIcon. | |
| std::string | GetChannelIconUrl (uint32_t chanid, unsigned width=0, unsigned height=0) |
| Returns URL for channel icon. | |
| WSStreamPtr | GetPreviewImage (uint32_t chanid, time_t recstartts, unsigned width=0, unsigned height=0) |
| GET Content/GetPreviewImage. | |
| std::string | GetPreviewImageUrl (uint32_t chanid, time_t recstartts, unsigned width=0, unsigned height=0) |
| Returns URL for preview image. | |
| WSStreamPtr | GetRecordingArtwork (const std::string &type, const std::string &inetref, uint16_t season, unsigned width=0, unsigned height=0) |
| GET Content/GetRecordingArtwork. | |
| std::string | GetRecordingArtworkUrl (const std::string &type, const std::string &inetref, uint16_t season, unsigned width=0, unsigned height=0) |
| Returns URL for recording artwork. | |
| ArtworkListPtr | GetRecordingArtworkList (uint32_t chanid, time_t recstartts) |
| GET Content/GetRecordingArtworkList. | |
| MarkListPtr | GetRecordedCommBreak (uint32_t recordedid, int unit) |
| GET Dvr/GetRecordedCommBreak. | |
| MarkListPtr | GetRecordedCutList (uint32_t recordedid, int unit) |
| GET Dvr/GetRecordedCutList. | |
| bool | SetSavedBookmark (uint32_t recordedid, int unit, int64_t value) |
| POST Dvr/SetSavedBookmark. | |
| int64_t | GetSavedBookmark (uint32_t recordedid, int unit) |
| GET Dvr/GetSavedBookmark. | |
Private Member Functions | |
| WSAPI (const WSAPI &) | |
| WSAPI & | operator= (const WSAPI &) |
| bool | InitWSAPI () |
| bool | GetServiceVersion (WSServiceId_t id, WSServiceVersion_t &version) |
| bool | CheckServerHostName2_0 () |
| bool | CheckVersion2_0 () |
| SettingPtr | GetSetting2_0 (const std::string &key, const std::string &hostname) |
| SettingPtr | GetSetting5_0 (const std::string &key, const std::string &hostname) |
| SettingMapPtr | GetSettings2_0 (const std::string &hostname) |
| SettingMapPtr | GetSettings5_0 (const std::string &hostname) |
| bool | PutSetting2_0 (const std::string &key, const std::string &value, bool myhost) |
| CaptureCardListPtr | GetCaptureCardList1_4 () |
| VideoSourceListPtr | GetVideoSourceList1_2 () |
| ChannelListPtr | GetChannelList1_2 (uint32_t sourceid, bool onlyVisible) |
| ChannelListPtr | GetChannelList1_5 (uint32_t sourceid, bool onlyVisible) |
| ChannelPtr | GetChannel1_2 (uint32_t chanid) |
| std::map< uint32_t, ProgramMapPtr > | GetProgramGuide1_0 (time_t starttime, time_t endtime) |
| ProgramMapPtr | GetProgramGuide1_0 (uint32_t chanid, time_t starttime, time_t endtime) |
| std::map< uint32_t, ProgramMapPtr > | GetProgramGuide2_2 (time_t starttime, time_t endtime) |
| ProgramMapPtr | GetProgramList2_2 (uint32_t chanid, time_t starttime, time_t endtime) |
| ProgramListPtr | GetRecordedList1_5 (unsigned n, bool descending) |
| ProgramPtr | GetRecorded1_5 (uint32_t chanid, time_t recstartts) |
| ProgramPtr | GetRecorded6_0 (uint32_t recordedid) |
| bool | DeleteRecording2_1 (uint32_t chanid, time_t recstartts, bool forceDelete, bool allowRerecord) |
| bool | DeleteRecording6_0 (uint32_t recordedid, bool forceDelete, bool allowRerecord) |
| bool | UnDeleteRecording2_1 (uint32_t chanid, time_t recstartts) |
| bool | UnDeleteRecording6_0 (uint32_t recordedid) |
| bool | UpdateRecordedWatchedStatus4_5 (uint32_t chanid, time_t recstartts, bool watched) |
| bool | UpdateRecordedWatchedStatus6_0 (uint32_t recordedid, bool watched) |
| MarkListPtr | GetRecordedCommBreak6_1 (uint32_t recordedid, int unit) |
| MarkListPtr | GetRecordedCutList6_1 (uint32_t recordedid, int unit) |
| bool | SetSavedBookmark6_2 (uint32_t recordedid, int unit, int64_t value) |
| int64_t | GetSavedBookmark6_2 (uint32_t recordedid, int unit) |
| RecordScheduleListPtr | GetRecordScheduleList1_5 () |
| RecordSchedulePtr | GetRecordSchedule1_5 (uint32_t recordid) |
| bool | AddRecordSchedule1_5 (RecordSchedule &record) |
| bool | AddRecordSchedule1_7 (RecordSchedule &record) |
| bool | UpdateRecordSchedule1_7 (RecordSchedule &record) |
| bool | DisableRecordSchedule1_5 (uint32_t recordid) |
| bool | EnableRecordSchedule1_5 (uint32_t recordid) |
| bool | RemoveRecordSchedule1_5 (uint32_t recordid) |
| ProgramListPtr | GetUpcomingList1_5 () |
| ProgramListPtr | GetUpcomingList2_2 () |
| ProgramListPtr | GetConflictList1_5 () |
| ProgramListPtr | GetExpiringList1_5 () |
| StringListPtr | GetRecGroupList1_5 () |
| WSStreamPtr | GetFile1_32 (const std::string &filename, const std::string &sgname) |
| WSStreamPtr | GetChannelIcon1_32 (uint32_t chanid, unsigned width, unsigned height) |
| std::string | GetChannelIconUrl1_32 (uint32_t chanid, unsigned width, unsigned height) |
| WSStreamPtr | GetPreviewImage1_32 (uint32_t chanid, time_t recstartts, unsigned width, unsigned height) |
| std::string | GetPreviewImageUrl1_32 (uint32_t chanid, time_t recstartts, unsigned width, unsigned height) |
| WSStreamPtr | GetRecordingArtwork1_32 (const std::string &type, const std::string &inetref, uint16_t season, unsigned width, unsigned height) |
| std::string | GetRecordingArtworkUrl1_32 (const std::string &type, const std::string &inetref, uint16_t season, unsigned width, unsigned height) |
| ArtworkListPtr | GetRecordingArtworkList1_32 (uint32_t chanid, time_t recstartts) |
Private Attributes | |
| OS::Mutex * | m_mutex |
| std::string | m_server |
| unsigned | m_port |
| bool | m_ssl |
| std::string | m_securityPin |
| std::string | m_authUser |
| std::string | m_authPassword |
| std::string | m_authToken |
| bool | m_checked |
| Version | m_version |
| std::string | m_serverHostName |
| WSServiceVersion_t | m_serviceVersion [WS_INVALID+1] |
| std::map< std::string, std::string > | m_namedCache |
Definition at line 60 of file mythwsapi.h.
| WSAPI::WSAPI | ( | const std::string & | server, |
| unsigned | port, | ||
| const std::string & | securityPin ) |
Definition at line 63 of file mythwsapi.cpp.
| WSAPI::~WSAPI | ( | ) |
Definition at line 76 of file mythwsapi.cpp.
|
inline |
POST Dvr/AddRecordSchedule.
Definition at line 301 of file mythwsapi.h.
|
private |
Definition at line 2007 of file mythwsapi.cpp.
|
private |
Definition at line 2096 of file mythwsapi.cpp.
|
private |
Definition at line 223 of file mythwsapi.cpp.
| unsigned WSAPI::CheckService | ( | ) |
Definition at line 291 of file mythwsapi.cpp.
| WSServiceVersion_t WSAPI::CheckService | ( | WSServiceId_t | id | ) |
Definition at line 299 of file mythwsapi.cpp.
|
private |
Definition at line 253 of file mythwsapi.cpp.
|
inline |
POST Dvr/DeleteRecording.
Definition at line 241 of file mythwsapi.h.
|
inline |
POST Dvr/DeleteRecording.
Definition at line 251 of file mythwsapi.h.
|
private |
Definition at line 1491 of file mythwsapi.cpp.
|
private |
Definition at line 1526 of file mythwsapi.cpp.
|
inline |
POST Dvr/DisableRecordSchedule.
Definition at line 322 of file mythwsapi.h.
|
private |
Definition at line 2280 of file mythwsapi.cpp.
|
inline |
POST Dvr/EnableRecordSchedule.
Definition at line 332 of file mythwsapi.h.
|
private |
Definition at line 2313 of file mythwsapi.cpp.
| std::string WSAPI::GetBaseURL | ( | ) |
Definition at line 318 of file mythwsapi.cpp.
|
inline |
GET Capture/GetCaptureCardList.
Definition at line 128 of file mythwsapi.h.
|
private |
Definition at line 630 of file mythwsapi.cpp.
|
inline |
GET Channel/GetChannelInfo.
Definition at line 159 of file mythwsapi.h.
|
private |
Definition at line 877 of file mythwsapi.cpp.
|
inline |
GET Guide/GetChannelIcon.
Definition at line 403 of file mythwsapi.h.
|
private |
Definition at line 2698 of file mythwsapi.cpp.
|
inline |
Returns URL for channel icon.
Definition at line 413 of file mythwsapi.h.
|
private |
Definition at line 2729 of file mythwsapi.cpp.
|
inline |
GET Channel/GetChannelInfoList.
Definition at line 148 of file mythwsapi.h.
|
private |
Definition at line 723 of file mythwsapi.cpp.
|
private |
Definition at line 798 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetConflictList.
Definition at line 363 of file mythwsapi.h.
|
private |
Definition at line 2474 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetExpiringList.
Definition at line 373 of file mythwsapi.h.
|
private |
Definition at line 2554 of file mythwsapi.cpp.
|
inline |
GET Content/GetFile.
Definition at line 393 of file mythwsapi.h.
|
private |
Definition at line 2678 of file mythwsapi.cpp.
|
inline |
GET Myth/GetSetting.
Definition at line 86 of file mythwsapi.h.
Referenced by GetSetting().

|
inline |
GET Myth/GetSetting.
Definition at line 102 of file mythwsapi.h.
Referenced by GetSettings().

|
inline |
GET Content/GetPreviewImage.
Definition at line 423 of file mythwsapi.h.
|
private |
Definition at line 2751 of file mythwsapi.cpp.
|
inline |
Returns URL for preview image.
Definition at line 433 of file mythwsapi.h.
|
private |
Definition at line 2784 of file mythwsapi.cpp.
|
inline |
GET Guide/GetProgramGuide.
Definition at line 180 of file mythwsapi.h.
|
inline |
GET Guide/GetProgramGuide for the given channel.
Definition at line 169 of file mythwsapi.h.
|
private |
Definition at line 922 of file mythwsapi.cpp.
|
private |
Definition at line 1002 of file mythwsapi.cpp.
|
private |
Definition at line 1084 of file mythwsapi.cpp.
|
private |
Definition at line 1180 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetRecGroupList.
Definition at line 383 of file mythwsapi.h.
|
private |
Definition at line 2634 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetRecorded.
Definition at line 201 of file mythwsapi.h.
|
inline |
GET Dvr/GetRecorded.
Definition at line 211 of file mythwsapi.h.
|
private |
Definition at line 1367 of file mythwsapi.cpp.
|
private |
Definition at line 1430 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetRecordedCommBreak.
| recordedid | |
| unit | 0 = Frame count, 1 = Position, 2 = Duration ms |
Definition at line 476 of file mythwsapi.h.
|
private |
Definition at line 1689 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetRecordedCutList.
| recordedid | |
| unit | 0 = Frame count, 1 = Position, 2 = Duration ms |
Definition at line 489 of file mythwsapi.h.
|
private |
Definition at line 1740 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetRecordedList.
Definition at line 191 of file mythwsapi.h.
|
private |
Definition at line 1267 of file mythwsapi.cpp.
|
inline |
GET Content/GetRecordingArtwork.
Definition at line 443 of file mythwsapi.h.
|
private |
Definition at line 2808 of file mythwsapi.cpp.
|
inline |
GET Content/GetRecordingArtworkList.
Definition at line 463 of file mythwsapi.h.
|
private |
Definition at line 2865 of file mythwsapi.cpp.
|
inline |
Returns URL for recording artwork.
Definition at line 453 of file mythwsapi.h.
|
private |
Definition at line 2841 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetRecordSchedule.
Definition at line 291 of file mythwsapi.h.
|
private |
Definition at line 1948 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetRecordScheduleList.
Definition at line 281 of file mythwsapi.h.
|
private |
Definition at line 1875 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetSavedBookmark.
| recordedid | |
| unit | 1 = Position, 2 = Duration ms |
Definition at line 517 of file mythwsapi.h.
|
private |
Definition at line 1828 of file mythwsapi.cpp.
| std::string WSAPI::GetServerHostName | ( | ) |
Definition at line 313 of file mythwsapi.cpp.
|
private |
< WS_Myth
< WS_Capture
< WS_Channel
< WS_Guide
< WS_Content
< WS_Dvr
< WS_INVALID
Definition at line 180 of file mythwsapi.cpp.
| SettingPtr WSAPI::GetSetting | ( | const std::string & | key, |
| bool | myhost ) |
|
private |
Definition at line 404 of file mythwsapi.cpp.
|
private |
Definition at line 449 of file mythwsapi.cpp.
| SettingMapPtr WSAPI::GetSettings | ( | bool | myhost | ) |
|
private |
Definition at line 493 of file mythwsapi.cpp.
|
private |
Definition at line 539 of file mythwsapi.cpp.
|
inline |
GET Dvr/GetUpcomingList.
Definition at line 352 of file mythwsapi.h.
|
private |
Definition at line 2379 of file mythwsapi.cpp.
|
private |
Definition at line 2393 of file mythwsapi.cpp.
| VersionPtr WSAPI::GetVersion | ( | ) |
Definition at line 333 of file mythwsapi.cpp.
|
inline |
GET Channel/GetVideoSourceList.
Definition at line 138 of file mythwsapi.h.
|
private |
Definition at line 679 of file mythwsapi.cpp.
|
private |
Definition at line 144 of file mythwsapi.cpp.
| void WSAPI::InvalidateService | ( | ) |
Definition at line 307 of file mythwsapi.cpp.
| bool WSAPI::LoginUser | ( | ) |
GET Myth/LoginUser From v36.
Definition at line 369 of file mythwsapi.cpp.
|
inline |
POST Myth/PutSetting.
Definition at line 118 of file mythwsapi.h.
|
private |
Definition at line 593 of file mythwsapi.cpp.
|
inline |
POST Dvr/RemoveRecordSchedule.
Definition at line 342 of file mythwsapi.h.
|
private |
Definition at line 2346 of file mythwsapi.cpp.
| std::string WSAPI::ResolveHostName | ( | const std::string & | hostname | ) |
Definition at line 338 of file mythwsapi.cpp.
|
inline |
POST Dvr/SetSavedBookmark.
| recordedid | |
| unit | 1 = Position, 2 = Duration ms |
| value | of mark |
Definition at line 503 of file mythwsapi.h.
|
private |
Definition at line 1791 of file mythwsapi.cpp.
|
inline |
POST Dvr/UnDeleteRecording.
Definition at line 261 of file mythwsapi.h.
|
inline |
POST Dvr/UnDeleteRecording.
Definition at line 271 of file mythwsapi.h.
|
private |
Definition at line 1559 of file mythwsapi.cpp.
|
private |
Definition at line 1592 of file mythwsapi.cpp.
|
inline |
POST Dvr/UpdateRecordedWatchedStatus.
Definition at line 221 of file mythwsapi.h.
|
inline |
POST Dvr/UpdateRecordedWatchedStatus.
Definition at line 231 of file mythwsapi.h.
|
private |
Definition at line 1623 of file mythwsapi.cpp.
|
private |
Definition at line 1657 of file mythwsapi.cpp.
|
inline |
POST Dvr/UpdateRecordSchedule.
Definition at line 312 of file mythwsapi.h.
|
private |
Definition at line 2189 of file mythwsapi.cpp.
| WSAPI & WSAPI::WithAuthorization | ( | const std::string & | user, |
| const std::string & | password ) |
Definition at line 81 of file mythwsapi.cpp.
| WSAPI & WSAPI::WithSSL | ( | bool | yesno | ) |
Definition at line 88 of file mythwsapi.cpp.
|
private |
Definition at line 531 of file mythwsapi.h.
|
private |
Definition at line 532 of file mythwsapi.h.
|
private |
Definition at line 530 of file mythwsapi.h.
|
private |
Definition at line 533 of file mythwsapi.h.
|
private |
Definition at line 525 of file mythwsapi.h.
|
private |
Definition at line 537 of file mythwsapi.h.
|
private |
Definition at line 527 of file mythwsapi.h.
|
private |
Definition at line 529 of file mythwsapi.h.
|
private |
Definition at line 526 of file mythwsapi.h.
|
private |
Definition at line 535 of file mythwsapi.h.
|
private |
Definition at line 536 of file mythwsapi.h.
|
private |
Definition at line 528 of file mythwsapi.h.
|
private |
Definition at line 534 of file mythwsapi.h.