xdmprotocols/XcapProtocol/XcapCache/Server/inc/XcapCacheIndexAdmin.h
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     1 /*
       
     2 * Copyright (c) 2005 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:   CXcapCacheIndexAdmin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XCAPCACHEINDEXADMIN_H__
       
    22 #define __XCAPCACHEINDEXADMIN_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <s32file.h>
       
    27 #include "CommonDefines.h"
       
    28 
       
    29 //CONSTANTS
       
    30 
       
    31 //FORWARD DECLARATIONs
       
    32 class CXcapCacheIndexTableEntry;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 NONSHARABLE_CLASS( CXcapCacheIndexAdmin ) : public CBase                         
       
    36     {
       
    37     public:             // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * Returns the MIME type of the messages
       
    41         * @return TPtrC8 The MIME type of the messages
       
    42         */
       
    43         static CXcapCacheIndexAdmin* NewL();
       
    44 
       
    45         /**
       
    46         * Returns the MIME type of the messages
       
    47         * @return TPtrC8 The MIME type of the messages
       
    48         */
       
    49         void UpdateIndexTableL( TInt aIndex, const TCacheEntryInfo* aStorageHeader );
       
    50 
       
    51         /**
       
    52         * Returns the MIME type of the messages
       
    53         * @return TPtrC8 The MIME type of the messages
       
    54         */
       
    55         CXcapCacheIndexTableEntry* FindL( TInt& aTableIndex,
       
    56                                           const TDesC8& aRootUri,
       
    57                                           const TDesC& aDocumentUri );
       
    58 
       
    59         /**
       
    60         * Returns the MIME type of the messages
       
    61         * @return TPtrC8 The MIME type of the messages
       
    62         */
       
    63         TInt ReadIndexL( const CXcapCacheIndexTableEntry& aEntry );
       
    64 
       
    65         /**
       
    66         * Returns the MIME type of the messages
       
    67         * @return TPtrC8 The MIME type of the messages
       
    68         */
       
    69         void RemoveTableIndex( TInt aIndex );
       
    70 
       
    71         /**
       
    72         * Returns the MIME type of the messages
       
    73         * @return TPtrC8 The MIME type of the messages
       
    74         */
       
    75         void StoreIndexTableL();
       
    76 
       
    77         /**
       
    78         * Returns the MIME type of the messages
       
    79         * @return TPtrC8 The MIME type of the messages
       
    80         */
       
    81         ~CXcapCacheIndexAdmin();
       
    82 
       
    83     private:
       
    84         
       
    85         /**
       
    86         * Returns the MIME type of the messages
       
    87         * @return TPtrC8 The MIME type of the messages
       
    88         */
       
    89         void ConstructL();
       
    90 
       
    91         /**
       
    92         * Returns the MIME type of the messages
       
    93         * @return TPtrC8 The MIME type of the messages
       
    94         */
       
    95         CXcapCacheIndexAdmin();
       
    96         
       
    97         /**
       
    98         * Returns the MIME type of the messages
       
    99         * @return TPtrC8 The MIME type of the messages
       
   100         */
       
   101         RFile InitialisePageFileL();
       
   102         
       
   103         /**
       
   104         * Returns the MIME type of the messages
       
   105         * @return TPtrC8 The MIME type of the messages
       
   106         */
       
   107         void ReadEntriesL( TPtr8& aDataDesc );
       
   108         
       
   109         /**
       
   110         * Returns the MIME type of the messages
       
   111         * @return TPtrC8 The MIME type of the messages
       
   112         */
       
   113         CXcapCacheIndexTableEntry* ParseOneEntryL( const TDesC8& aEntryData );
       
   114 
       
   115     private:            // Data
       
   116         
       
   117         RPointerArray<CXcapCacheIndexTableEntry>        iEntryList;
       
   118     };
       
   119 
       
   120 #endif
       
   121 
       
   122 // End of File