williamr@2: /*
williamr@2: * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). 
williamr@2: * All rights reserved.
williamr@2: * This component and the accompanying materials are made available
williamr@4: * under the terms of "Eclipse Public License v1.0"
williamr@2: * which accompanies this distribution, and is available
williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2: *
williamr@2: * Initial Contributors:
williamr@2: * Nokia Corporation - initial contribution.
williamr@2: *
williamr@2: * Contributors:
williamr@2: *
williamr@2: * Description:   TPosLmDatabaseEvent
williamr@2: *
williamr@2: */
williamr@2: 
williamr@2: 
williamr@2: 
williamr@2: #ifndef TPOSLMDATABASEEVENT_H
williamr@2: #define TPOSLMDATABASEEVENT_H
williamr@2: 
williamr@2: #include <e32def.h>
williamr@2: 
williamr@2: /**
williamr@2: *  Specifies what type of event has occured.
williamr@2: *
williamr@2: *  If there is no adequate event type to describe the event,
williamr@2: *  @p EPosLmDbUnknownEvent is specified.
williamr@2: *
williamr@2: *  @since S60 3.0
williamr@2: */
williamr@2: enum TPosLmDatabaseEventType
williamr@2:     {
williamr@2:     EPosLmDbUnknownEvent= 0,
williamr@2:     /**< Something has happened, but what happened is not specified.
williamr@2:     This event is used if there are too many events in
williamr@2:     which case the events are bundled into a single unknown event. If
williamr@2:     the client is interested in some database management information,
williamr@2:     it should be reread from the database manager. */
williamr@2:     EPosLmDbDatabaseRegistered = 100,
williamr@2:     /**< A landmark database has been registered or created. This
williamr@2:     event is also generated if a database is copied. The URI of the
williamr@2:     new database can be retrieved by calling
williamr@2:     @ref CPosLmDatabaseManager::DatabaseUriFromEventLC. */
williamr@2:     EPosLmDbDatabaseUnregistered,
williamr@2:     /**< A landmark database has been unregistered or deleted. The
williamr@2:     URI of the deleted database can be retrieved by calling
williamr@2:     @ref CPosLmDatabaseManager::DatabaseUriFromEventLC. */
williamr@2:     EPosLmDbSettingsModified,
williamr@2:     /**< Information about a database, e.g. display name has been
williamr@2:     changed. The URI of the database can be retrieved by calling
williamr@2:     @ref CPosLmDatabaseManager::DatabaseUriFromEventLC. */
williamr@2:     EPosLmDbMediaRemoved = 200,
williamr@2:     /**< Media was removed, possibly containing landmark databases. Use
williamr@2:     @ref ListDatabasesL to list the available databases. */
williamr@2:     EPosLmDbMediaInserted,
williamr@2:     /**< Media was inserted, possibly containing landmark databases.
williamr@2:     Use @ref ListDatabasesL to list the available databases. */
williamr@2:     EPosLmDbNewDefaultDbLocation = 300
williamr@2:     /**< The location of the default database has changed. The URI of
williamr@2:     the default database can be retrieved by calling
williamr@2:     @ref CPosLmDatabaseManager::DefaultDatabaseUriLC. */
williamr@2:     };
williamr@2: 
williamr@2: /**
williamr@2: *  Struct for landmark database events.
williamr@2: *
williamr@2: *  @since S60 3.0
williamr@2: */
williamr@2: struct TPosLmDatabaseEvent
williamr@2:     {
williamr@2:     TPosLmDatabaseEventType iEventType;  /**< Type of event. */
williamr@2:     TUint8 iUnused[8];                   /**< For future use. */
williamr@2:     };
williamr@2: 
williamr@2: #endif      // TPOSLMDATABASEEVENT_H
williamr@2: 
williamr@2: