mpxplugins/serviceplugins/collectionplugins/mpxsqlitepodcastdbplugin/src/mpxdbauxiliary.cpp
branchRCL_3
changeset 27 2cbbefa9af78
parent 0 ff3acec5bc43
equal deleted inserted replaced
26:3de6c4cf6b67 27:2cbbefa9af78
   110 //
   110 //
   111 TTime CMPXDbAuxiliary::LastRefreshedTimeL()
   111 TTime CMPXDbAuxiliary::LastRefreshedTimeL()
   112     {
   112     {
   113     MPX_FUNC("CMPXDbAuxiliary::LastRefreshedTimeL");
   113     MPX_FUNC("CMPXDbAuxiliary::LastRefreshedTimeL");
   114 
   114 
   115     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime));
   115     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime()));
   116     CleanupClosePushL(recordset);
   116     CleanupClosePushL(recordset);
   117 
   117 
   118     if (recordset.Next() != KSqlAtRow)
   118     if (recordset.Next() != KSqlAtRow)
   119         {
   119         {
   120         User::Leave(KErrCorrupt);
   120         User::Leave(KErrCorrupt);
   193     {
   193     {
   194     MPX_FUNC("CMPXDbAuxiliary::IsRefreshedL");
   194     MPX_FUNC("CMPXDbAuxiliary::IsRefreshedL");
   195 
   195 
   196     TBool refreshed(ETrue);
   196     TBool refreshed(ETrue);
   197 
   197 
   198     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime));
   198     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime()));
   199     CleanupClosePushL(recordset);
   199     CleanupClosePushL(recordset);
   200 
   200 
   201     TInt count(0);
   201     TInt count(0);
   202     while (recordset.Next() == KSqlAtRow)
   202     while (recordset.Next() == KSqlAtRow)
   203         {
   203         {