CPPMyth
Library to interoperate with MythTV server
Myth Namespace Reference

This is the main namespace that encloses all public classes. More...

Data Structures

struct  Artwork
 
class  BasicEventHandler
 
struct  CaptureCard
 
struct  CardInput
 
struct  Channel
 
class  Control
 
class  EventHandler
 
struct  EventMessage
 
class  EventSubscriber
 
class  FilePlayback
 
class  IntrinsicCounter
 
struct  ItemList
 
class  LiveTVPlayback
 
class  Locked
 
class  LockedNumber
 
class  LockGuard
 
struct  Mark
 
struct  Program
 
class  ProtoBase
 
class  ProtoEvent
 
class  ProtoMonitor
 
class  ProtoPlayback
 
class  ProtoRecorder
 
class  ProtoTransfer
 
struct  Recording
 
class  RecordingPlayback
 
struct  RecordSchedule
 
struct  Setting
 
class  shared_ptr
 
struct  SignalStatus
 
struct  StorageGroupFile
 
class  Stream
 
class  SubscriptionHandlerThread
 
struct  Version
 
struct  VideoSource
 
class  WSAPI
 
struct  WSServiceVersion_t
 
class  WSStream
 

Typedefs

typedef std::vector< std::string > StringList
 
typedef MYTH_SHARED_PTR< StringList > StringListPtr
 
typedef MYTH_SHARED_PTR< VersionVersionPtr
 
typedef MYTH_SHARED_PTR< SettingSettingPtr
 
typedef std::map< std::string, SettingPtr > SettingMap
 
typedef MYTH_SHARED_PTR< SettingMap > SettingMapPtr
 
typedef MYTH_SHARED_PTR< ArtworkArtworkPtr
 
typedef std::vector< ArtworkPtr > ArtworkList
 
typedef MYTH_SHARED_PTR< ArtworkList > ArtworkListPtr
 
typedef MYTH_SHARED_PTR< ChannelChannelPtr
 
typedef std::vector< ChannelPtr > ChannelList
 
typedef MYTH_SHARED_PTR< ChannelList > ChannelListPtr
 
typedef MYTH_SHARED_PTR< RecordingRecordingPtr
 
typedef std::vector< RecordingPtr > RecordingList
 
typedef MYTH_SHARED_PTR< RecordingList > RecordingListPtr
 
typedef MYTH_SHARED_PTR< ProgramProgramPtr
 
typedef std::vector< ProgramPtr > ProgramList
 
typedef MYTH_SHARED_PTR< ProgramList > ProgramListPtr
 
typedef std::map< time_t, ProgramPtr > ProgramMap
 
typedef MYTH_SHARED_PTR< ProgramMap > ProgramMapPtr
 
typedef MYTH_SHARED_PTR< CaptureCardCaptureCardPtr
 
typedef std::vector< CaptureCardPtr > CaptureCardList
 
typedef MYTH_SHARED_PTR< CaptureCardList > CaptureCardListPtr
 
typedef MYTH_SHARED_PTR< CardInputCardInputPtr
 
typedef std::vector< CardInputPtr > CardInputList
 
typedef MYTH_SHARED_PTR< CardInputList > CardInputListPtr
 
typedef MYTH_SHARED_PTR< VideoSourceVideoSourcePtr
 
typedef std::vector< VideoSourcePtr > VideoSourceList
 
typedef MYTH_SHARED_PTR< VideoSourceList > VideoSourceListPtr
 
typedef MYTH_SHARED_PTR< RecordScheduleRecordSchedulePtr
 
typedef std::vector< RecordSchedulePtr > RecordScheduleList
 
typedef MYTH_SHARED_PTR< RecordScheduleList > RecordScheduleListPtr
 
typedef MYTH_SHARED_PTR< SignalStatusSignalStatusPtr
 
typedef MYTH_SHARED_PTR< const EventMessageEventMessagePtr
 
typedef MYTH_SHARED_PTR< StorageGroupFileStorageGroupFilePtr
 
typedef MYTH_SHARED_PTR< MarkMarkPtr
 
typedef std::vector< MarkPtr > MarkList
 
typedef MYTH_SHARED_PTR< MarkList > MarkListPtr
 
typedef MYTH_SHARED_PTR< WSStreamWSStreamPtr
 
typedef MYTH_SHARED_PTR< ProtoRecorderProtoRecorderPtr
 
typedef MYTH_SHARED_PTR< ProtoTransferProtoTransferPtr
 

Enumerations

enum  RT_t {
  RT_NotRecording = 0, RT_SingleRecord = 1, RT_DailyRecord, RT_ChannelRecord,
  RT_AllRecord, RT_WeeklyRecord, RT_OneRecord, RT_OverrideRecord,
  RT_DontRecord, RT_FindDailyRecord, RT_FindWeeklyRecord, RT_TemplateRecord,
  RT_UNKNOWN
}
 
enum  DI_t {
  DI_InRecorded = 0, DI_InOldRecorded = 1, DI_InAll, DI_NewEpi,
  DI_UNKNOWN
}
 
enum  DM_t {
  DM_CheckNone = 0, DM_CheckSubtitle = 1, DM_CheckDescription, DM_CheckSubtitleAndDescription,
  DM_CheckSubtitleThenDescription, DM_UNKNOWN
}
 
enum  ST_t {
  ST_NoSearch = 0, ST_PowerSearch = 1, ST_TitleSearch, ST_KeywordSearch,
  ST_PeopleSearch, ST_ManualSearch, ST_UNKNOWN
}
 
enum  CATT_t {
  CATT_CategoryNone = 0, CATT_CategoryMovie, CATT_CategorySeries, CATT_CategorySports,
  CATT_CategoryTVShow, CATT_UNKNOWN
}
 
enum  FM_t {
  FM_NewEpisode = 0x001, FM_IdentifiableEpisode = 0x002, FM_FirstShowing = 0x004, FM_PrimeTime = 0x008,
  FM_CommercialFree = 0x010, FM_HighDefinition = 0x020, FM_ThisEpisode = 0x040, FM_ThisSeries = 0x080,
  FM_ThisTime = 0x100, FM_ThisDayAndTime = 0x200, FM_ThisChannel = 0x400
}
 
enum  EVENT_t {
  EVENT_HANDLER_STATUS = 0, EVENT_HANDLER_TIMER, EVENT_UNKNOWN, EVENT_UPDATE_FILE_SIZE,
  EVENT_LIVETV_WATCH, EVENT_LIVETV_CHAIN, EVENT_DONE_RECORDING, EVENT_QUIT_LIVETV,
  EVENT_RECORDING_LIST_CHANGE, EVENT_SCHEDULE_CHANGE, EVENT_SIGNAL, EVENT_ASK_RECORDING,
  EVENT_CLEAR_SETTINGS_CACHE, EVENT_GENERATED_PIXMAP, EVENT_SYSTEM_EVENT
}
 
enum  WHENCE_t { WHENCE_SET = 0, WHENCE_CUR = 1, WHENCE_END = 2 }
 
enum  RS_t {
  RS_TUNING = -10, RS_FAILED = -9, RS_TUNER_BUSY = -8, RS_LOW_DISKSPACE = -7,
  RS_CANCELLED = -6, RS_MISSED = -5, RS_ABORTED = -4, RS_RECORDED = -3,
  RS_RECORDING = -2, RS_WILL_RECORD = -1, RS_UNKNOWN = 0, RS_DONT_RECORD = 1,
  RS_PREVIOUS_RECORDING = 2, RS_CURRENT_RECORDING = 3, RS_EARLIER_RECORDING = 4, RS_TOO_MANY_RECORDINGS = 5,
  RS_NOT_LISTED = 6, RS_CONFLICT = 7, RS_LATER_SHOWING = 8, RS_REPEAT = 9,
  RS_INACTIVE = 10, RS_NEVER_RECORD = 11, RS_OFFLINE = 12, RS_OTHER_SHOWING = 13
}
 
enum  MARK_t {
  MARK_CUT_END = 0, MARK_CUT_START = 1, MARK_BOOKMARK = 2, MARK_BLANK_FRAME = 3,
  MARK_COMM_START = 4, MARK_COMM_END = 5, MARK_GOP_START = 6, MARK_KEYFRAME = 7,
  MARK_SCENE_CHANGE = 8, MARK_GOP_BYFRAME = 9, MARK_ASPECT_1_1 = 10, MARK_ASPECT_4_3 = 11,
  MARK_ASPECT_16_9 = 12, MARK_ASPECT_2_21_1 = 13, MARK_ASPECT_CUSTOM = 14, MARK_VIDEO_WIDTH = 30,
  MARK_VIDEO_HEIGHT = 31, MARK_VIDEO_RATE = 32, MARK_DURATION_MS = 33, MARK_TOTAL_FRAMES = 34
}
 
enum  WSServiceId_t {
  WS_Myth = 0, WS_Capture = 1, WS_Channel, WS_Guide,
  WS_Content, WS_Dvr, WS_INVALID
}
 

Functions

void DBGLevel (int l)
 
void DBGAll (void)
 
void DBGNone (void)
 
void SetDBGMsgCallback (void(*msgcb)(int level, char *))
 
uint32_t StringToId (const std::string &str)
 
std::string IdToString (uint32_t id)
 
time_t StringToTime (const std::string &isotime)
 
std::string TimeToString (time_t time, bool utc=false)
 
int StringToInt (const std::string &str)
 
std::string IntToString (int i)
 
RT_t RuleTypeFromString (unsigned proto, const std::string &type)
 
RT_t RuleTypeFromNum (unsigned proto, int type)
 
const char * RuleTypeToString (unsigned proto, RT_t type)
 
int RuleTypeToNum (unsigned proto, RT_t type)
 
DI_t DupInFromString (unsigned proto, const std::string &type)
 
DI_t DupInFromNum (unsigned proto, int type)
 
const char * DupInToString (unsigned proto, DI_t type)
 
int DupInToNum (unsigned proto, DI_t type)
 
DM_t DupMethodFromString (unsigned proto, const std::string &type)
 
DM_t DupMethodFromNum (unsigned proto, int type)
 
const char * DupMethodToString (unsigned proto, DM_t type)
 
int DupMethodToNum (unsigned proto, DM_t type)
 
ST_t SearchTypeFromString (unsigned proto, const std::string &type)
 
ST_t SearchTypeFromNum (unsigned proto, int type)
 
const char * SearchTypeToString (unsigned proto, ST_t type)
 
int SearchTypeToNum (unsigned proto, ST_t type)
 
CATT_t CategoryTypeFromString (unsigned proto, const std::string &type)
 
CATT_t CategoryTypeFromNum (unsigned proto, int type)
 
const char * CategoryTypeToString (unsigned proto, CATT_t type)
 
int CategoryTypeToNum (unsigned proto, CATT_t type)
 
RS_t RecStatusFromString (unsigned proto, const std::string &type)
 
RS_t RecStatusFromNum (unsigned proto, int type)
 
const char * RecStatusToString (unsigned proto, RS_t type)
 
int RecStatusToNum (unsigned proto, RS_t type)
 

Detailed Description

This is the main namespace that encloses all public classes.