sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __LOGCLIENTCHANGEOBSERVER_H__ sl@0: #define __LOGCLIENTCHANGEOBSERVER_H__ sl@0: sl@0: // System includes sl@0: #include sl@0: sl@0: /** sl@0: Constants sl@0: @publishedAll sl@0: */ sl@0: const TUid KLogClientChangeEventLogCleared = { 0x101F8C4F }; sl@0: const TUid KLogClientChangeEventRefreshView = { 0x1020601B }; sl@0: sl@0: /** sl@0: This class allows a client of the log engine to observe specific change sl@0: events within a given view. sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: class MLogClientChangeObserver sl@0: { sl@0: public: sl@0: /** Handle a global change within the logs database sl@0: sl@0: This method is called when a generic event occurs within the log database. sl@0: Such events are not specific to a view (see MLogViewChangeObserver for view sl@0: specific events). sl@0: sl@0: @param aChangeType The uid corresponding to the type of event which sl@0: occurred. sl@0: @param aChangeParam1 A context-specific change paramater which can be sl@0: interpreted based on the change type. sl@0: @param aChangeParam2 A context-specific change paramater which can be sl@0: interpreted based on the change type. sl@0: @param aChangeParam3 A context-specific change paramater which can be sl@0: interpreted based on the change type. sl@0: sl@0: A list of change types and their associated parameters follows: sl@0: sl@0: KLogClientChangeEventLogCleared - no parameters. This event occurs when sl@0: the log database is cleared. sl@0: KLogClientChangeEventRefreshView - no parameters. This event occurs when sl@0: the client needs to refresh their view. For example, this occurs after the sl@0: log database has been restored from a backup. */ sl@0: virtual void HandleLogClientChangeEventL(TUid aChangeType, TInt aChangeParam1, TInt aChangeParam2, TInt aChangeParam3) = 0; sl@0: sl@0: private: sl@0: IMPORT_C virtual void MLogClientChangeObserver_Reserved1(); sl@0: IMPORT_C virtual void MLogClientChangeObserver_Reserved2(); sl@0: }; sl@0: sl@0: sl@0: #endif