meetingrequest/mrurlparserplugin/inc/mesmrurlparserplugin.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:39:21 +0200
changeset 0 8466d47a6819
child 16 4ce476e64c59
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2008-2009 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 URL Parser plug-in
*
*/


#ifndef MESMRURLPARSERPLUGIN_H
#define MESMRURLPARSERPLUGIN_H



class CPosLandmark;

/**
 *  MESMRUrlParserPlugin defines the interface for Location URL Parser
 *
 */
class MESMRUrlParserPlugin
    {

public:
    /**
     * Finds location URL from given text input
     *
     * @param aText text where URL is searched from
     * @param aUrl points to founded URL after execution
     * @return URL start position in aText, if not found returns KErrNotFound
     */
    virtual TInt FindLocationUrl( const TDesC& aText, TPtrC& aUrl ) = 0;

    /**
     * Creates location URL from landmark object
     *
     * @param aLandmark contains landmark object that is parsed to location URL
     * @return pointer to created location URL
     */
    virtual HBufC* CreateUrlFromLandmarkL( const CPosLandmark& aLandmark ) = 0;
    
    /**
     * Creates landmark object from location URL
     *
     * @param aUrl contains location URL from which landmark is created
     * @return pointer to created landmark object
     */
    virtual CPosLandmark* CreateLandmarkFromUrlL( const TDesC& aUrl ) = 0;    

protected:
    
   /**
    * Destructor.
    */
    virtual ~MESMRUrlParserPlugin(){}
    };

#endif //   MESMRURLPARSERPLUGIN_H