zeroconf/zeroconfsharing/cfileparser.h
changeset 21 ff5174af067c
equal deleted inserted replaced
14:da856f45b798 21:ff5174af067c
       
     1 /*
       
     2 * Copyright (c) 2001-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef FILEPARSER_H
       
    19 #define FILEPARSER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <f32file.h> 
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  *  CFileParser
       
    30  * 
       
    31  */
       
    32 class CFileParser : public CBase
       
    33     {
       
    34 public:
       
    35     
       
    36     enum TMediaType{
       
    37             EPhotos,
       
    38             EMusic,
       
    39             EVideos,
       
    40             ENone
       
    41         };
       
    42     enum TFileReadPos{
       
    43         EStartOfGrp,
       
    44         EEndOfGrp
       
    45     };
       
    46    
       
    47     ~CFileParser();
       
    48 
       
    49     static CFileParser* NewL();
       
    50 
       
    51     static CFileParser* NewLC();    
       
    52 
       
    53     void ParseFile(const TDesC& aFileName,const TDesC& aPhotoFile,const TDesC& aMusicFile,const TDesC& aVideoFile);
       
    54     
       
    55     void SetMediaType(TMediaType aType);
       
    56     
       
    57     CFileParser::TMediaType GetMediaType();   
       
    58     
       
    59 
       
    60 private:
       
    61 
       
    62     CFileParser();
       
    63 
       
    64     void ConstructL();
       
    65    
       
    66 private:
       
    67     RFs iFileServ;
       
    68     TMediaType iCurMediaType; 
       
    69     TBool iStart;
       
    70 
       
    71     };
       
    72 
       
    73 #endif // FILEPARSER_H