meetingrequest/mrurlparserplugin/inc/cmrurlparserextension.h
author Simon Howkins <simonh@symbian.org>
Thu, 25 Nov 2010 12:13:04 +0000
branchRCL_3
changeset 83 31a5fbf5db1d
parent 16 4ce476e64c59
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2008-2010 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:  Parser class for parsing landmarks to url and vice versa
*
*/

#ifndef CMRURLPARSEREXTENSION_H
#define CMRURLPARSEREXTENSION_H

#include "e32base.h"

class CPosLandmark;

/**
 *  Parser class for parsing URL to landmark and vice versa
 *
 */
class CMRUrlParserExtension : public CBase
    {

public:

    static CMRUrlParserExtension* NewL();
    static CMRUrlParserExtension* NewLC();


   /**
    * Destructor.
    */
    virtual ~CMRUrlParserExtension();

    /**
     * Finds location URL from given text input
     *
     * @param aText text where URL is searched from
     * @param aUrl points to founded URL after execution
     * @param aPos on return URL start position.
     * @leave KErrNotFound/KErrArgument or other
     *         unexpected Symbian wide errorcode
     */
    void FindLocationUrlL( const TDesC& aText, TPtrC& aUrl, TInt& aPos );

    /**
     * Creates landmark object from location URL
     * May leave with KErrNotFound/KErrArgument or other Symbian wide errorcode
     *
     * @param aUrl contains location URL from which landmark is created
     * @return pointer to created landmark object, caller takes ownership
     */
    CPosLandmark* CreateLandmarkFromUrlL( const TDesC& aUrl );

private:

    CMRUrlParserExtension();

private: // data

    };


#endif // CMRURLPARSEREXTENSION_H