gfxconversion/mifconv/inc/mifconv_bitmapconverter.h
branchRCL_3
changeset 9 1f6339ced17d
parent 0 f453ebb75370
child 21 3c7c70c864cb
--- a/gfxconversion/mifconv/inc/mifconv_bitmapconverter.h	Fri Feb 19 23:21:59 2010 +0200
+++ b/gfxconversion/mifconv/inc/mifconv_bitmapconverter.h	Mon Mar 15 12:42:44 2010 +0200
@@ -60,10 +60,23 @@
 	virtual void CleanupTempFiles();
 
     /**
-     * Runs external bmconv application, which builds the .mbm file.     
+     * Runs external bmconv application, which builds the .mbm file.
+     * @param bmconvPath location of bmconv
+     */
+    void RunExternalBmconv( const MifConvString& aBmconvPath );
+       
+    /**
+     * Check first from argument manager if palette name has been given.
+     * If not, use default palette file name.
      */
-    void RunBmconv();
-
+    const MifConvString MifConvBitmapConverter::GetPaletteFileName();
+    
+    /**
+     * Returns defaulta palette file name.
+     * @param aBuf used to return the reference constant.
+     */
+    const MifConvString& DefaultPaletteFileName(MifConvString& aBuf);
+    
     /**
      * Creates and initializes the temporary file.     
      */
@@ -74,18 +87,12 @@
      * @param stream file stream for temporary file
      * @param bmpFile Source file object representing the bitmap file.
      */
-    void AppendBmpToTempFile(fstream& stream, const MifConvSourceFile& bmpFile);
+    void AppendBmpToTempFile(fstream& aStream, const MifConvSourceFile& aBmpFile);
 
-    /**
-     * Returns the default path for the external bmconv executable.
-     * @return Default bmconv path.
-     */
-    const MifConvString& GetDefaultBmConvPath();
 private:
-    
+        
     MifConvString iTempDir;
     MifConvString iTempFilename;
-    MifConvString iDefaultBmConvPath;
     MifConvString iTargetFilename;
 };