logsui/EngineInc/MLogsEventArray.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Abstract interface for Event arrays
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __MLogsEventArray_H__
       
    21 #define __MLogsEventArray_H__
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 // FORWARD DECLARATION
       
    26 
       
    27 // CLASS DECLARATION
       
    28 class MLogsEvent;
       
    29 
       
    30 
       
    31 class MLogsEventArray
       
    32     {
       
    33 	public:
       
    34     
       
    35         virtual ~MLogsEventArray() {};
       
    36 
       
    37     public:		// Straight encapsulation of CArrayFixFlat
       
    38         virtual TInt Count() const =0;
       
    39         virtual const MLogsEvent& At( TInt aIndex ) const =0;
       
    40         virtual       MLogsEvent& At( TInt aIndex ) =0;
       
    41         virtual void AppendL( const MLogsEvent& aEvent ) =0;
       
    42         virtual void Delete( TInt aIndex ) =0;
       
    43 		virtual void Reset() =0;
       
    44 		virtual void Compress() =0;
       
    45 
       
    46 	public:		// convenience methods
       
    47 		inline const MLogsEvent& operator[]( TInt aIndex ) const
       
    48             { return At( aIndex ); }
       
    49         inline MLogsEvent& operator[](TInt aIndex)
       
    50             { return At( aIndex ); }
       
    51 
       
    52     };
       
    53 
       
    54 #endif
       
    55 
       
    56 // End of File  __MLogsEventArray_H_