iaupdate/IAD/engine/controller/inc/iaupdatefwversionfilehandler.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2009 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 IAUPDATE_FWVERSION_FILEHANDLER
       
    19 #define IAUPDATE_FWVERSION_FILEHANDLER
       
    20 
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <s32strm.h>
       
    24 #include <e32cmn.h>
       
    25 #include <f32file.h>
       
    26 #include <e32const.h>
       
    27 
       
    28 NONSHARABLE_CLASS( CIAUpdateFwVersionFileHandler ) : public CBase 
       
    29     {
       
    30 
       
    31 public:
       
    32 
       
    33     static CIAUpdateFwVersionFileHandler* NewL();
       
    34 
       
    35     static CIAUpdateFwVersionFileHandler* NewLC();
       
    36     
       
    37     virtual ~CIAUpdateFwVersionFileHandler();
       
    38     
       
    39            
       
    40     HBufC* FwVersionL();
       
    41     
       
    42     void SetFwVersionL( const TDesC& aFwVersion );
       
    43     
       
    44     
       
    45 private:
       
    46 
       
    47     CIAUpdateFwVersionFileHandler();
       
    48     
       
    49     // Prevent these if not implemented
       
    50     CIAUpdateFwVersionFileHandler( const CIAUpdateFwVersionFileHandler& aObject );
       
    51     CIAUpdateFwVersionFileHandler& operator =( const CIAUpdateFwVersionFileHandler& aObject );
       
    52     
       
    53     void ConstructL();
       
    54 
       
    55     void InternalizeL( RReadStream& aStream );
       
    56 
       
    57     void ExternalizeL( RWriteStream& aStream );
       
    58 
       
    59     void ReadControllerDataL();
       
    60 
       
    61     void WriteControllerDataL();
       
    62 
       
    63 private: // data
       
    64 
       
    65     // file server session
       
    66     RFs iFsSession;
       
    67     
       
    68     // controller data file path
       
    69     TFileName iPath;
       
    70        
       
    71     HBufC* iFwVersion;
       
    72  
       
    73     };
       
    74         
       
    75 #endif // IAUPDATE_FWVERSION_FILEHANDLER
       
    76