equal
deleted
inserted
replaced
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
66 case CDbDatabase::EUpdateStats: |
66 case CDbDatabase::EUpdateStats: |
67 return 1; |
67 return 1; |
68 case CDbDatabase::ESize: |
68 case CDbDatabase::ESize: |
69 case CDbDatabase::EUsage: |
69 case CDbDatabase::EUsage: |
70 { |
70 { |
71 TInt size; |
71 TInt size = -1; |
72 TInt r=STATIC_CAST(CFileStore&,Store()).File().Size(size); |
72 TInt r=STATIC_CAST(CFileStore&,Store()).File().Size(size); |
73 if (r<0) |
73 if (r<0) |
74 return r; |
74 return r; |
75 if (aProperty==CDbDatabase::ESize) |
75 if (aProperty==CDbDatabase::ESize) |
76 return size; |
76 return size; |