browserutilities/favouritesengine/ClientServer/inc/FavouritesUtil.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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 the License "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 *      Declaration of class FavouritesUtil.
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef FAVOURITES_UTIL_H
       
    22 #define FAVOURITES_UTIL_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 class RWriteStream;
       
    29 class RReadStream;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * Static utility functions.
       
    35 */
       
    36 NONSHARABLE_CLASS(FavouritesUtil)
       
    37     {
       
    38 
       
    39     public:     // Streaming
       
    40 
       
    41         /**
       
    42         * Externalize integer array into a stream.
       
    43         * @param aArray Array to externalize.
       
    44         * @param aStream The stream to externalize to.
       
    45         */
       
    46         static void ExternalizeL
       
    47             ( const CArrayFix<TInt>& aArray, RWriteStream& aStream );
       
    48 
       
    49         /**
       
    50         * Internalize integer array from a stream. Existing data is kept,
       
    51         * new ones appended.
       
    52         * @param aArray Array to internalize.
       
    53         * @param aStream The stream to externalize from.
       
    54         */
       
    55         static void InternalizeL
       
    56             ( CArrayFix<TInt>& aArray, RReadStream& aStream );
       
    57 
       
    58         /**
       
    59         * Checks weather a backup operation is in progress or not.
       
    60         * @return ETrue if backup is in progress.
       
    61         */
       
    62         static TBool IsBackupInProgressL();
       
    63 
       
    64     };
       
    65 
       
    66 #endif
       
    67 
       
    68 // End of File