logsui/logsserviceextension/inc/tlogsextutil.h
changeset 0 e686773b3f54
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logsui/logsserviceextension/inc/tlogsextutil.h	Tue Feb 02 10:12:17 2010 +0200
@@ -0,0 +1,55 @@
+/*
+* Copyright (c) 2007 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:  Class that contains util-functions for logsserviceextension.
+*
+*/
+
+
+
+#ifndef T_TLOGSEXTUTIL_H
+#define T_TLOGSEXTUTIL_H
+
+
+class RFile;
+
+NONSHARABLE_CLASS(TLogsExtUtil) 
+    {
+  
+public:
+
+    /**
+     * This function takes a service id and a element id as input arguments
+     * and returns a file handle and bitmap ids of the requested bitmaps.
+     * 
+     * Note: Ownership of the file handle is transferred to the caller.
+     *       Remember to close the file handle.
+     *
+     * @since S60 v3.2
+     * @param aServiceId a service id
+     * @param aElementId an element id, this is the element id defined in the 
+     *        xml-sheet of the branding package, e.g."person:open:image"
+     * @param aBitmapFile a file handle to the file that contains the bitmaps
+     * @param aBitmapId a bitmap id
+     * @param aBitmapMaskId a bitmapmask id   
+     */
+    static void GetFileHandleL( 
+        const TUint32 aServiceId,
+        const TDesC8& aElementId,    
+        RFile& aBitmapFile,
+        TInt& aBitmapId,   
+        TInt& aBitmapMaskId );    
+
+    };
+        
+#endif // T_TLOGSEXTUTIL_H