equal
deleted
inserted
replaced
543 TTime now; |
543 TTime now; |
544 now.HomeTime(); |
544 now.HomeTime(); |
545 // TTimeIntervalYears years(5); |
545 // TTimeIntervalYears years(5); |
546 // now += years; |
546 // now += years; |
547 |
547 |
548 _LIT(KSqlStatement, "select filename from shows where downloadstate=%d and deletedate < \"%Ld\""); |
548 _LIT(KSqlStatement, "select filename from shows where downloadstate=%d and deletedate != 0 and deletedate < \"%Ld\""); |
549 iSqlBuffer.Format(KSqlStatement, EDownloaded, now.Int64()); |
549 iSqlBuffer.Format(KSqlStatement, EDownloaded, now.Int64()); |
550 |
550 |
551 sqlite3_stmt *st; |
551 sqlite3_stmt *st; |
552 |
552 |
553 int rc = sqlite3_prepare16_v2(&iDB, (const void*) iSqlBuffer.PtrZ(), -1, |
553 int rc = sqlite3_prepare16_v2(&iDB, (const void*) iSqlBuffer.PtrZ(), -1, |
1479 } |
1479 } |
1480 |
1480 |
1481 EXPORT_C void CShowEngine::UpdateShowL(CShowInfo& aInfo) |
1481 EXPORT_C void CShowEngine::UpdateShowL(CShowInfo& aInfo) |
1482 { |
1482 { |
1483 DBUpdateShowL(aInfo); |
1483 DBUpdateShowL(aInfo); |
|
1484 |
|
1485 // hack to ensure change in playstate is stored for the show actively downloading |
|
1486 if (iShowDownloading && iShowDownloading->Uid() == aInfo.Uid()) |
|
1487 { |
|
1488 iShowDownloading->SetPlayState(aInfo.PlayState()); |
|
1489 } |
1484 } |
1490 } |
1485 |
1491 |
1486 EXPORT_C CMetaDataReader& CShowEngine::MetaDataReader() |
1492 EXPORT_C CMetaDataReader& CShowEngine::MetaDataReader() |
1487 { |
1493 { |
1488 return *iMetaDataReader; |
1494 return *iMetaDataReader; |