gfxconversion/mifconv/inc/mifconv_bitmapconverter.h
branchRCL_3
changeset 9 1f6339ced17d
parent 0 f453ebb75370
child 21 3c7c70c864cb
equal deleted inserted replaced
4:23f0e6a5b752 9:1f6339ced17d
    58      * Removes temporary files from the file system.
    58      * Removes temporary files from the file system.
    59      */
    59      */
    60 	virtual void CleanupTempFiles();
    60 	virtual void CleanupTempFiles();
    61 
    61 
    62     /**
    62     /**
    63      * Runs external bmconv application, which builds the .mbm file.     
    63      * Runs external bmconv application, which builds the .mbm file.
       
    64      * @param bmconvPath location of bmconv
    64      */
    65      */
    65     void RunBmconv();
    66     void RunExternalBmconv( const MifConvString& aBmconvPath );
    66 
    67        
       
    68     /**
       
    69      * Check first from argument manager if palette name has been given.
       
    70      * If not, use default palette file name.
       
    71      */
       
    72     const MifConvString MifConvBitmapConverter::GetPaletteFileName();
       
    73     
       
    74     /**
       
    75      * Returns defaulta palette file name.
       
    76      * @param aBuf used to return the reference constant.
       
    77      */
       
    78     const MifConvString& DefaultPaletteFileName(MifConvString& aBuf);
       
    79     
    67     /**
    80     /**
    68      * Creates and initializes the temporary file.     
    81      * Creates and initializes the temporary file.     
    69      */
    82      */
    70     void InitTempFile();
    83     void InitTempFile();
    71 
    84 
    72     /**
    85     /**
    73      * Add bitmap file to the temporary file
    86      * Add bitmap file to the temporary file
    74      * @param stream file stream for temporary file
    87      * @param stream file stream for temporary file
    75      * @param bmpFile Source file object representing the bitmap file.
    88      * @param bmpFile Source file object representing the bitmap file.
    76      */
    89      */
    77     void AppendBmpToTempFile(fstream& stream, const MifConvSourceFile& bmpFile);
    90     void AppendBmpToTempFile(fstream& aStream, const MifConvSourceFile& aBmpFile);
    78 
    91 
    79     /**
       
    80      * Returns the default path for the external bmconv executable.
       
    81      * @return Default bmconv path.
       
    82      */
       
    83     const MifConvString& GetDefaultBmConvPath();
       
    84 private:
    92 private:
    85     
    93         
    86     MifConvString iTempDir;
    94     MifConvString iTempDir;
    87     MifConvString iTempFilename;
    95     MifConvString iTempFilename;
    88     MifConvString iDefaultBmConvPath;
       
    89     MifConvString iTargetFilename;
    96     MifConvString iTargetFilename;
    90 };
    97 };
    91 
    98 
    92 
    99 
    93 #endif
   100 #endif