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 __LOGSERVDATABASECHANGEINTERFACE_H__ sl@0: #define __LOGSERVDATABASECHANGEINTERFACE_H__ sl@0: sl@0: #include "LogServDatabaseChangeObserver.h" sl@0: #include "LogChangeDefinition.h" sl@0: sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: // -----> MLogServDatabaseChangeInterface (header) sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: /** sl@0: @internalComponent sl@0: */ sl@0: class MLogServDatabaseChangeInterface sl@0: { sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: public: // ENUMERATIONS sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: public: // FROM MLogServDatabaseChangeInterface sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: /** sl@0: * Submit some contextual information to the change interface so that it can sl@0: * intelligently notify observers about a batch of updates sl@0: */ sl@0: virtual void DCISubmitChangedEventContextL(TLogDatabaseChangeType aType, TLogId aEventId) = 0; sl@0: sl@0: /** sl@0: * Submit some global information about a change. This isn't specific to an event sl@0: * but may include changes such as 'a backup is starting/ending' or 'the log sl@0: * has been cleared' etc. sl@0: */ sl@0: virtual void DCISubmitGlobalChangeContextL(TUid aChangeType, TInt aContextParam1 = 0, TInt aContextParam2 = 0, TInt aContextParam3 = 0) = 0; sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: public: // FROM MLogServDatabaseChangeInterface sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: /** sl@0: * Request change notifications sl@0: */ sl@0: virtual void DCIRequestChangeNotificationsL(MLogServDatabaseChangeObserver& aObserver) = 0; sl@0: sl@0: /** sl@0: * Cancel change notification request sl@0: */ sl@0: virtual void DCIRequestChangeNotificationsCancel(MLogServDatabaseChangeObserver& aObserver) = 0; sl@0: }; sl@0: sl@0: sl@0: #endif