remotemgmt_plat/diagnostics_plugin_utility_api/inc/diaglogeventeraserobserver.h
branchRCL_3
changeset 26 19bba8228ff0
parent 0 b497e44ab2fc
equal deleted inserted replaced
25:b183ec05bd8c 26:19bba8228ff0
       
     1 /*
       
     2 * Copyright (c) 2007 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:  This is the header for the Diagnostics Logs Event Eraser
       
    15 *                 Observer class, which clients implement to receive events
       
    16 *                 from the Event Eraser.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef DIAGLOGEVENTERASEROBSERVER_H
       
    22 #define DIAGLOGEVENTERASEROBSERVER_H
       
    23 
       
    24 // Forward Declarations
       
    25 class CLogEvent;
       
    26 
       
    27 /**
       
    28 * Diagnostics Plugin Log Event Eraser Observer
       
    29 *   
       
    30 * This is a pure virtual class that clients of the Event Eraser must implement
       
    31 * to receive callbacks from the Log Event Eraser.
       
    32 */
       
    33 class MDiagLogEventEraserObserver
       
    34     {
       
    35 
       
    36 public: // New functions
       
    37 
       
    38     /**
       
    39     * This function is called to check if the log event needs to be deleted.
       
    40     *
       
    41     * @param aEvent The event to check.
       
    42     * @return ETrue if the log event should be deleted, EFalse otherwise.
       
    43     */
       
    44     virtual TBool IsEventToBeDeleted( const CLogEvent& aEvent ) = 0;
       
    45     
       
    46     /**
       
    47     * This function is called to notify that the erase operation is complete.
       
    48     *
       
    49     * @param aError Error code to indicate erase failure, or KErrNone.
       
    50     */           
       
    51     virtual void CompleteEventEraseL( TInt aError ) = 0;
       
    52 
       
    53     };
       
    54 
       
    55 #endif // DIAGLOGEVENTERASEROBSERVER_H