brandingserver/bsserver/cbsibywriter.h
changeset 0 e6b17d312c8b
child 21 cfd5c2994f10
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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:  Writes IBY files
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CBSIBYWRITER_H
       
    20 #define CBSIBYWRITER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class RFs;
       
    25 
       
    26 /**
       
    27  *  Writes IBY files
       
    28  *
       
    29  *  @lib
       
    30  *  @since S60 v3.2
       
    31  */
       
    32 class CBSIBYWriter : public CBase
       
    33 {
       
    34 public:
       
    35 
       
    36     static CBSIBYWriter* NewL();
       
    37 
       
    38     static CBSIBYWriter* NewLC();
       
    39 
       
    40     ~CBSIBYWriter();
       
    41 
       
    42     /**
       
    43      * Initialize IBY file
       
    44      *
       
    45      * @param aFs file system handle
       
    46      * @param aFileName Full name of the iby file
       
    47      * @since S60 3.2
       
    48      * @return none
       
    49      */
       
    50     void InitIbyFileL( RFs& aFs, const TDesC& aFileName );
       
    51 
       
    52     /**
       
    53      * File item included in IBY file
       
    54      *
       
    55      * @since S60 3.2
       
    56      * @param aSrc source file
       
    57      * @param aDest destination file
       
    58      * @return none
       
    59      */
       
    60     void SetFileItemL( const TDesC& aSrc, const TDesC& aDest );
       
    61 
       
    62     /**
       
    63      * Writes Iby file from given file items
       
    64      *
       
    65      * @since S60 3.2
       
    66      * @param aFs file system handle
       
    67      * @param aFileName Full name of the iby file
       
    68      * @return none
       
    69      */
       
    70     void WriteIBYFileL( RFs& aFs, const TDesC& aFileName );
       
    71 
       
    72 private:
       
    73 
       
    74     CBSIBYWriter();
       
    75 
       
    76     void ConstructL();
       
    77 
       
    78 private: // Data
       
    79 
       
    80     // Own. Source path array
       
    81     RPointerArray<HBufC8> iSourcePath;
       
    82 
       
    83     // Own. Source files
       
    84     RPointerArray<HBufC8> iSourceFiles;
       
    85 
       
    86     // Own. Destination files
       
    87     RPointerArray<HBufC8> iDestinations;
       
    88     
       
    89     // Own. Iby file name
       
    90     HBufC* iIbyFile;
       
    91 };
       
    92 
       
    93 #endif //CBSIBYWRITER_H