mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbauxiliary.cpp
branchRCL_3
changeset 66 1f1dad4af8f8
parent 56 2cbbefa9af78
equal deleted inserted replaced
60:bdd9da0d70fe 66:1f1dad4af8f8
   109 //
   109 //
   110 TTime CMPXDbAuxiliary::LastRefreshedTimeL()
   110 TTime CMPXDbAuxiliary::LastRefreshedTimeL()
   111     {
   111     {
   112     MPX_FUNC("CMPXDbAuxiliary::LastRefreshedTimeL");
   112     MPX_FUNC("CMPXDbAuxiliary::LastRefreshedTimeL");
   113 
   113 
   114     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime())); 
   114     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime));
   115     CleanupClosePushL(recordset);
   115     CleanupClosePushL(recordset);
   116 
   116 
   117     if (recordset.Next() != KSqlAtRow)
   117     if (recordset.Next() != KSqlAtRow)
   118         {
   118         {
   119         User::Leave(KErrCorrupt);
   119         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         {