meetingrequest/mrurlparserplugin/inc/mesmrurlparserplugin.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Interface definition for Location URL Parser plug-in
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MESMRURLPARSERPLUGIN_H
       
    20 #define MESMRURLPARSERPLUGIN_H
       
    21 
       
    22 
       
    23 
       
    24 class CPosLandmark;
       
    25 
       
    26 /**
       
    27  *  MESMRUrlParserPlugin defines the interface for Location URL Parser
       
    28  *
       
    29  */
       
    30 class MESMRUrlParserPlugin
       
    31     {
       
    32 
       
    33 public:
       
    34     /**
       
    35      * Finds location URL from given text input
       
    36      *
       
    37      * @param aText text where URL is searched from
       
    38      * @param aUrl points to founded URL after execution
       
    39      * @return URL start position in aText, if not found returns KErrNotFound
       
    40      */
       
    41     virtual TInt FindLocationUrl( const TDesC& aText, TPtrC& aUrl ) = 0;
       
    42 
       
    43     /**
       
    44      * Creates location URL from landmark object
       
    45      *
       
    46      * @param aLandmark contains landmark object that is parsed to location URL
       
    47      * @return pointer to created location URL
       
    48      */
       
    49     virtual HBufC* CreateUrlFromLandmarkL( const CPosLandmark& aLandmark ) = 0;
       
    50     
       
    51     /**
       
    52      * Creates landmark object from location URL
       
    53      *
       
    54      * @param aUrl contains location URL from which landmark is created
       
    55      * @return pointer to created landmark object
       
    56      */
       
    57     virtual CPosLandmark* CreateLandmarkFromUrlL( const TDesC& aUrl ) = 0;    
       
    58 
       
    59 protected:
       
    60     
       
    61    /**
       
    62     * Destructor.
       
    63     */
       
    64     virtual ~MESMRUrlParserPlugin(){}
       
    65     };
       
    66 
       
    67 #endif //   MESMRURLPARSERPLUGIN_H