Ticket #4583: 4583-dbg-v1.patch
File 4583-dbg-v1.patch, 5.0 KB (added by , 16 years ago) |
---|
-
libs/libmythtv/remoteutil.h
86 86 MPUBLIC InputInfo RemoteRequestBusyInputID(uint cardid); 87 87 MPUBLIC void RemoteCancelNextRecording(uint cardid, bool cancel); 88 88 MPUBLIC void RemoteGeneratePreviewPixmap(ProgramInfo *pginfo); 89 MPUBLIC Q StringRemoteGetPreviewLastModified(ProgramInfo *pginfo);89 MPUBLIC QDateTime RemoteGetPreviewLastModified(ProgramInfo *pginfo); 90 90 MPUBLIC void RemoteFillProginfo(ProgramInfo *pginfo, 91 91 const QString &playbackhostname); 92 92 MPUBLIC bool RemoteIsBusy(uint cardid, TunedInputInfo &busy_input); -
libs/libmythtv/remoteutil.cpp
518 518 gContext->SendReceiveStringList(strlist); 519 519 } 520 520 521 Q StringRemoteGetPreviewLastModified(ProgramInfo *pginfo)521 QDateTime RemoteGetPreviewLastModified(ProgramInfo *pginfo) 522 522 { 523 Q Stringretdatetime;523 QDateTime retdatetime; 524 524 525 525 QStringList strlist = "QUERY_PIXMAP_LASTMODIFIED"; 526 526 pginfo->ToStringList(strlist); … … 528 528 if (!gContext->SendReceiveStringList(strlist)) 529 529 return retdatetime; 530 530 531 return strlist[0]; 531 if (!strlist.empty() && strlist[0] != "BAD") 532 { 533 uint timet = strlist[0].toUInt(); 534 retdatetime.setTime_t(timet); 535 } 536 537 return retdatetime; 532 538 } 533 539 534 540 void RemoteFillProginfo(ProgramInfo *pginfo, const QString &playbackhostname) -
libs/libmyth/mythcontext.h
125 125 * mythtv/bindings/python/MythTV.py (version number) 126 126 * mythtv/bindings/python/MythTV.py (layout) 127 127 */ 128 #define MYTH_PROTO_VERSION " 39"128 #define MYTH_PROTO_VERSION "40" 129 129 130 130 /** \class MythContext 131 131 * \brief This class contains the runtime context for MythTV. -
programs/mythfrontend/playbackbox.cpp
4436 4436 } 4437 4437 else 4438 4438 { 4439 QString filetime = RemoteGetPreviewLastModified(pginfo); 4440 if (!filetime.isEmpty() && filetime.upper() != "BAD") 4441 datetime = QDateTime::fromString(filetime, Qt::TextDate); 4439 datetime = RemoteGetPreviewLastModified(pginfo); 4442 4440 } 4443 4441 4444 4442 return datetime; -
programs/mythbackend/playbacksock.h
53 53 long long time, 54 54 const QString &outputFile, 55 55 const QSize &outputSize); 56 Q StringPixmapLastModified(const ProgramInfo *pginfo);56 QDateTime PixmapLastModified(const ProgramInfo *pginfo); 57 57 bool CheckFile(ProgramInfo *pginfo); 58 58 59 59 bool IsBusy(int capturecardnum, -
programs/mythbackend/playbacksock.cpp
182 182 return strlist; 183 183 } 184 184 185 Q StringPlaybackSock::PixmapLastModified(const ProgramInfo *pginfo)185 QDateTime PlaybackSock::PixmapLastModified(const ProgramInfo *pginfo) 186 186 { 187 187 QStringList strlist = QString("QUERY_PIXMAP_LASTMODIFIED"); 188 188 pginfo->ToStringList(strlist); 189 189 190 190 SendReceiveStringList(strlist); 191 191 192 return strlist[0]; 192 QDateTime datetime; 193 if (!strlist.empty() && strlist[0] != "BAD") 194 { 195 uint timet = strlist[0].toUInt(); 196 datetime.setTime_t(timet); 197 } 198 return datetime; 193 199 } 194 200 195 201 bool PlaybackSock::CheckFile(ProgramInfo *pginfo) -
programs/mythbackend/mainserver.cpp
3890 3890 3891 3891 if (slave) 3892 3892 { 3893 Q Stringslavetime = slave->PixmapLastModified(pginfo);3893 QDateTime slavetime = slave->PixmapLastModified(pginfo); 3894 3894 slave->DownRef(); 3895 3895 3896 strlist += slavetime; 3896 strlist = (slavetime.isValid()) ? 3897 QString::number(slavetime.toTime_t()) : "BAD"; 3898 3897 3899 SendResponse(pbssock, strlist); 3898 3900 delete pginfo; 3899 3901 return; … … 3923 3925 if (finfo.exists()) 3924 3926 { 3925 3927 lastmodified = finfo.lastModified(); 3926 strlist = lastmodified.toString(f);3928 strlist = QString::number(lastmodified.toTime_t()); 3927 3929 } 3928 3930 else 3929 3931 strlist = "BAD";