2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: TPosLmDatabaseEvent
20 #ifndef TPOSLMDATABASEEVENT_H
21 #define TPOSLMDATABASEEVENT_H
26 * Specifies what type of event has occured.
28 * If there is no adequate event type to describe the event,
29 * @p EPosLmDbUnknownEvent is specified.
33 enum TPosLmDatabaseEventType
35 EPosLmDbUnknownEvent= 0,
36 /**< Something has happened, but what happened is not specified.
37 This event is used if there are too many events in
38 which case the events are bundled into a single unknown event. If
39 the client is interested in some database management information,
40 it should be reread from the database manager. */
41 EPosLmDbDatabaseRegistered = 100,
42 /**< A landmark database has been registered or created. This
43 event is also generated if a database is copied. The URI of the
44 new database can be retrieved by calling
45 @ref CPosLmDatabaseManager::DatabaseUriFromEventLC. */
46 EPosLmDbDatabaseUnregistered,
47 /**< A landmark database has been unregistered or deleted. The
48 URI of the deleted database can be retrieved by calling
49 @ref CPosLmDatabaseManager::DatabaseUriFromEventLC. */
50 EPosLmDbSettingsModified,
51 /**< Information about a database, e.g. display name has been
52 changed. The URI of the database can be retrieved by calling
53 @ref CPosLmDatabaseManager::DatabaseUriFromEventLC. */
54 EPosLmDbMediaRemoved = 200,
55 /**< Media was removed, possibly containing landmark databases. Use
56 @ref ListDatabasesL to list the available databases. */
57 EPosLmDbMediaInserted,
58 /**< Media was inserted, possibly containing landmark databases.
59 Use @ref ListDatabasesL to list the available databases. */
60 EPosLmDbNewDefaultDbLocation = 300
61 /**< The location of the default database has changed. The URI of
62 the default database can be retrieved by calling
63 @ref CPosLmDatabaseManager::DefaultDatabaseUriLC. */
67 * Struct for landmark database events.
71 struct TPosLmDatabaseEvent
73 TPosLmDatabaseEventType iEventType; /**< Type of event. */
74 TUint8 iUnused[8]; /**< For future use. */
77 #endif // TPOSLMDATABASEEVENT_H