mmappcomponents/asxparser/src/asxparser.cpp
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
    13 *
    13 *
    14 * Description:  Simple v2/v3 ASX-fileparser
    14 * Description:  Simple v2/v3 ASX-fileparser
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 10.1.5.1.4 %
    18 // Version : %version: e003sa33#10.1.6 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <f32file.h>
    24 #include <f32file.h>
    25 #include <bautils.h>
    25 #include <bautils.h>
    26 #include <utf.h>
    26 #include <utf.h>
    27 #include <asxparser.h>
    27 #include <asxparser.h>
    28 
    28 
    29 #include <xml/dom/xmlengdomimplementation.h>
    29 #include <xmlengdomimplementation.h>
    30 #include <xml/dom/xmlengdomparser.h>
    30 #include <xmlengdomparser.h>
    31 #include <xml/dom/xmlengdocument.h>
    31 #include <xmlengdocument.h>
    32 #include <xml/dom/xmlengelement.h>
    32 #include <xmlengelement.h>
    33 #include <xml/dom/xmlengnodelist.h>
    33 #include <xmlengnodelist.h>
    34 
    34 
    35 #include "AsxParser_debug.h"
    35 #include "AsxParser_debug.h"
    36 
    36 
    37 // CONSTANTS
    37 // CONSTANTS
    38 #define KMaxAsxFileSize 5192
    38 #define KMaxAsxFileSize 5192
   419 //
   419 //
   420 void CAsxParser::HandleFileParsingL( RFile& aFile )
   420 void CAsxParser::HandleFileParsingL( RFile& aFile )
   421 {
   421 {
   422     iVersion = KErrNotFound;
   422     iVersion = KErrNotFound;
   423 
   423 
   424     TInt size = 0;
   424     TInt size;
   425     User::LeaveIfError( aFile.Size( size ) );
   425     User::LeaveIfError( aFile.Size( size ) );
   426 
   426 
   427     if ( size > KMaxAsxFileSize )
   427     if ( size > KMaxAsxFileSize )
   428     {
   428     {
   429         ASX_DEBUG(_L("#MP# CAsxParser::HandleFileParsingL() file size > max size"));
   429         ASX_DEBUG(_L("#MP# CAsxParser::HandleFileParsingL() file size > max size"));