--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/idlefw/tsrc/devicestatusplugin/mt_devstaplg/CContentCache.h Thu Aug 19 10:13:44 2010 +0300
@@ -0,0 +1,61 @@
+/*
+* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+
+#ifndef C_CONTENTCACHE_H
+#define C_CONTENTCACHE_H
+
+class CContentCache : public CBase
+ {
+ public:
+ ~CContentCache()
+ {
+ delete iText;
+ delete iData;
+ }
+
+ HBufC* iText;
+ HBufC8* iData;
+ TBool iClean;
+ TInt iResource;
+ TInt iIndex;
+ TInt iId;
+ };
+
+
+LOCAL_C CContentCache* GetContent( RPointerArray<CContentCache>& aArray, TInt aId, TBool aClean = EFalse )
+ {
+ const TInt count( aArray.Count() );
+ for( TInt i( 0 ); i < count; i++ )
+ {
+ if( aArray[i]->iId == aId )
+ {
+ if( !aClean && aArray[i]->iClean)
+ {
+ continue;
+ }
+ return aArray[i];
+ }
+ }
+
+ return NULL;
+ }
+
+
+#endif // C_CONTENTCACHE_H
+
+// End of file