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