os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServDatabaseChangeInterface.h
First public contribution.
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __LOGSERVDATABASECHANGEINTERFACE_H__
17 #define __LOGSERVDATABASECHANGEINTERFACE_H__
19 #include "LogServDatabaseChangeObserver.h"
20 #include "LogChangeDefinition.h"
23 /////////////////////////////////////////////////////////////////////////////////////////
24 // -----> MLogServDatabaseChangeInterface (header)
25 /////////////////////////////////////////////////////////////////////////////////////////
29 class MLogServDatabaseChangeInterface
31 /////////////////////////////////////////////////////////////////////////////////////////
32 public: // ENUMERATIONS
33 /////////////////////////////////////////////////////////////////////////////////////////
35 /////////////////////////////////////////////////////////////////////////////////////////
36 public: // FROM MLogServDatabaseChangeInterface
37 /////////////////////////////////////////////////////////////////////////////////////////
40 * Submit some contextual information to the change interface so that it can
41 * intelligently notify observers about a batch of updates
43 virtual void DCISubmitChangedEventContextL(TLogDatabaseChangeType aType, TLogId aEventId) = 0;
46 * Submit some global information about a change. This isn't specific to an event
47 * but may include changes such as 'a backup is starting/ending' or 'the log
48 * has been cleared' etc.
50 virtual void DCISubmitGlobalChangeContextL(TUid aChangeType, TInt aContextParam1 = 0, TInt aContextParam2 = 0, TInt aContextParam3 = 0) = 0;
52 /////////////////////////////////////////////////////////////////////////////////////////
53 public: // FROM MLogServDatabaseChangeInterface
54 /////////////////////////////////////////////////////////////////////////////////////////
57 * Request change notifications
59 virtual void DCIRequestChangeNotificationsL(MLogServDatabaseChangeObserver& aObserver) = 0;
62 * Cancel change notification request
64 virtual void DCIRequestChangeNotificationsCancel(MLogServDatabaseChangeObserver& aObserver) = 0;