25 #include "mythsharedptr.h" 26 #define MYTH_SHARED_PTR Myth::shared_ptr 40 uint32_t StringToId(
const std::string& str);
41 std::string IdToString(uint32_t
id);
42 time_t StringToTime(
const std::string& isotime);
43 std::string TimeToString(time_t time,
bool utc =
false);
44 int StringToInt(
const std::string& str);
45 std::string IntToString(
int i);
64 RT_t RuleTypeFromString(
unsigned proto,
const std::string& type);
65 RT_t RuleTypeFromNum(
unsigned proto,
int type);
66 const char *RuleTypeToString(
unsigned proto, RT_t type);
67 int RuleTypeToNum(
unsigned proto, RT_t type);
78 DI_t DupInFromString(
unsigned proto,
const std::string& type);
79 DI_t DupInFromNum(
unsigned proto,
int type);
80 const char *DupInToString(
unsigned proto, DI_t type);
81 int DupInToNum(
unsigned proto, DI_t type);
88 DM_CheckSubtitleAndDescription,
89 DM_CheckSubtitleThenDescription,
93 DM_t DupMethodFromString(
unsigned proto,
const std::string& type);
94 DM_t DupMethodFromNum(
unsigned proto,
int type);
95 const char *DupMethodToString(
unsigned proto, DM_t type);
96 int DupMethodToNum(
unsigned proto, DM_t type);
109 ST_t SearchTypeFromString(
unsigned proto,
const std::string& type);
110 ST_t SearchTypeFromNum(
unsigned proto,
int type);
111 const char *SearchTypeToString(
unsigned proto, ST_t type);
112 int SearchTypeToNum(
unsigned proto, ST_t type);
116 CATT_CategoryNone = 0,
124 CATT_t CategoryTypeFromString(
unsigned proto,
const std::string& type);
125 CATT_t CategoryTypeFromNum(
unsigned proto,
int type);
126 const char *CategoryTypeToString(
unsigned proto, CATT_t type);
127 int CategoryTypeToNum(
unsigned proto, CATT_t type);
131 FM_NewEpisode = 0x001,
132 FM_IdentifiableEpisode = 0x002,
133 FM_FirstShowing = 0x004,
134 FM_PrimeTime = 0x008,
135 FM_CommercialFree = 0x010,
136 FM_HighDefinition = 0x020,
137 FM_ThisEpisode = 0x040,
138 FM_ThisSeries = 0x080,
140 FM_ThisDayAndTime = 0x200,
141 FM_ThisChannel = 0x400
146 EVENT_HANDLER_STATUS = 0,
149 EVENT_UPDATE_FILE_SIZE,
152 EVENT_DONE_RECORDING,
154 EVENT_RECORDING_LIST_CHANGE,
155 EVENT_SCHEDULE_CHANGE,
158 EVENT_CLEAR_SETTINGS_CACHE,
159 EVENT_GENERATED_PIXMAP,
175 RS_LOW_DISKSPACE = -7,
184 RS_PREVIOUS_RECORDING = 2,
185 RS_CURRENT_RECORDING = 3,
186 RS_EARLIER_RECORDING = 4,
187 RS_TOO_MANY_RECORDINGS = 5,
190 RS_LATER_SHOWING = 8,
193 RS_NEVER_RECORD = 11,
195 RS_OTHER_SHOWING = 13,
198 RS_t RecStatusFromString(
unsigned proto,
const std::string& type);
199 RS_t RecStatusFromNum(
unsigned proto,
int type);
200 const char *RecStatusToString(
unsigned proto, RS_t type);
201 int RecStatusToNum(
unsigned proto, RS_t type);
214 typedef std::vector<std::string> StringList;
215 typedef MYTH_SHARED_PTR<StringList> StringListPtr;
229 typedef MYTH_SHARED_PTR<Version> VersionPtr;
237 typedef MYTH_SHARED_PTR<Setting> SettingPtr;
238 typedef std::map<std::string, SettingPtr> SettingMap;
239 typedef MYTH_SHARED_PTR<SettingMap> SettingMapPtr;
244 std::string fileName;
245 std::string storageGroup;
249 typedef MYTH_SHARED_PTR<Artwork> ArtworkPtr;
250 typedef std::vector<ArtworkPtr> ArtworkList;
251 typedef MYTH_SHARED_PTR<ArtworkList> ArtworkListPtr;
257 std::string callSign;
259 std::string channelName;
261 std::string commFree;
262 std::string chanFilters;
276 typedef MYTH_SHARED_PTR<Channel> ChannelPtr;
277 typedef std::vector<ChannelPtr> ChannelList;
278 typedef MYTH_SHARED_PTR<ChannelList> ChannelListPtr;
292 std::string recGroup;
293 std::string storageGroup;
294 std::string playGroup;
303 , dupInType(DI_InRecorded)
304 , dupMethod(DM_CheckNone)
311 typedef MYTH_SHARED_PTR<Recording> RecordingPtr;
312 typedef std::vector<RecordingPtr> RecordingList;
313 typedef MYTH_SHARED_PTR<RecordingList> RecordingListPtr;
320 std::string subTitle;
321 std::string description;
324 std::string category;
326 std::string hostName;
327 std::string fileName;
330 uint32_t programFlags;
331 std::string seriesId;
332 std::string programId;
342 std::vector<Artwork> artwork;
360 typedef MYTH_SHARED_PTR<Program> ProgramPtr;
361 typedef std::vector<ProgramPtr> ProgramList;
362 typedef MYTH_SHARED_PTR<ProgramList> ProgramListPtr;
363 typedef std::map<time_t, ProgramPtr> ProgramMap;
364 typedef MYTH_SHARED_PTR<ProgramMap> ProgramMapPtr;
369 std::string cardType;
370 std::string hostName;
377 typedef MYTH_SHARED_PTR<CaptureCard> CaptureCardPtr;
378 typedef std::vector<CaptureCardPtr> CaptureCardList;
379 typedef MYTH_SHARED_PTR<CaptureCardList> CaptureCardListPtr;
387 std::string inputName;
399 typedef MYTH_SHARED_PTR<CardInput> CardInputPtr;
400 typedef std::vector<CardInputPtr> CardInputList;
401 typedef MYTH_SHARED_PTR<CardInputList> CardInputListPtr;
406 std::string sourceName;
413 typedef MYTH_SHARED_PTR<VideoSource> VideoSourcePtr;
414 typedef std::vector<VideoSourcePtr> VideoSourceList;
415 typedef MYTH_SHARED_PTR<VideoSourceList> VideoSourceListPtr;
421 std::string subtitle;
422 std::string description;
423 std::string category;
426 std::string seriesId;
427 std::string programId;
429 std::string callSign;
431 std::string findTime;
439 std::string searchType;
442 uint32_t preferredInput;
445 std::string dupMethod;
450 std::string recProfile;
451 std::string recGroup;
452 std::string storageGroup;
453 std::string playGroup;
455 uint32_t maxEpisodes;
465 time_t nextRecording;
468 uint32_t averageDelay;
480 , type_t(RT_NotRecording)
481 , searchType_t(ST_NoSearch)
486 , dupMethod_t(DM_CheckNone)
487 , dupIn_t(DI_InRecorded)
492 , autoCommflag(
false)
493 , autoTranscode(
false)
494 , autoMetaLookup(
false)
495 , autoUserJob1(
false)
496 , autoUserJob2(
false)
497 , autoUserJob3(
false)
498 , autoUserJob4(
false)
507 typedef MYTH_SHARED_PTR<RecordSchedule> RecordSchedulePtr;
508 typedef std::vector<RecordSchedulePtr> RecordScheduleList;
509 typedef MYTH_SHARED_PTR<RecordScheduleList> RecordScheduleListPtr;
528 typedef MYTH_SHARED_PTR<SignalStatus> SignalStatusPtr;
533 std::vector<std::string> subject;
535 SignalStatusPtr signal;
538 : event(EVENT_UNKNOWN)
542 typedef MYTH_SHARED_PTR<const EventMessage> EventMessagePtr;
546 std::string fileName;
547 std::string storageGroup;
548 std::string hostName;
558 typedef MYTH_SHARED_PTR<StorageGroupFile> StorageGroupFilePtr;
565 MARK_BLANK_FRAME = 3,
570 MARK_SCENE_CHANGE = 8,
571 MARK_GOP_BYFRAME = 9,
572 MARK_ASPECT_1_1 = 10,
573 MARK_ASPECT_4_3 = 11,
574 MARK_ASPECT_16_9 = 12,
575 MARK_ASPECT_2_21_1 = 13,
576 MARK_ASPECT_CUSTOM = 14,
577 MARK_VIDEO_WIDTH = 30,
578 MARK_VIDEO_HEIGHT = 31,
579 MARK_VIDEO_RATE = 32,
580 MARK_DURATION_MS = 33,
581 MARK_TOTAL_FRAMES = 34,
590 : markType(MARK_CUT_END)
595 typedef MYTH_SHARED_PTR<Mark> MarkPtr;
596 typedef std::vector<MarkPtr> MarkList;
597 typedef MYTH_SHARED_PTR<MarkList> MarkListPtr;
This is the main namespace that encloses all public classes.