diff -r 000000000000 -r 8466d47a6819 meetingrequest/mrgui/inc/mesmrlocationplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meetingrequest/mrgui/inc/mesmrlocationplugin.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,68 @@ +/* +* Copyright (c) 2008-2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Interface definition for Location integration plug-in +* +*/ + + +#ifndef MESMRLOCATIONPLUGIN_H +#define MESMRLOCATIONPLUGIN_H + + +#include + +/** + * MESMRLocationPlugin defines the interface for accessing location service provider + * from ESMR GUI. + */ + +class MESMRLocationPlugin + { + +public: + + /** + * Shows map on the screen and asks user to select a position. + * The function returns immediately and the selection is provided + * to the caller via MESMRLocationPluginObserver interface. + * + * @param aSearchQuery Text to show as default address + * @param aLocationUrl URL containing coordinates for maps focus + */ + virtual void SelectFromMapL( const TDesC& aSearchQuery, const TDesC& aLocationUrl ) = 0; + + /** + * Shows map on the screen. User may edit the search string and search + * the position from the map, but the selection is not provided to the + * caller + * + * @param aSearchQuery Text to show as default address + */ + virtual void SearchFromMapL( const TDesC& aSearchQuery ) = 0; + + /** + * Shows map on the screen focused on the given location. + * + * @param aLocationUrl URL containing coordinates for maps focus + */ + virtual void ShowOnMapL( const TDesC& aLocationUrl ) = 0; + +protected: + + virtual ~MESMRLocationPlugin() {} + + }; + +#endif // MESMRLOCATIONPLUGIN_H +