meetingrequest/mrurlparserplugin/inc/cesmrurlparserplugin.h
branchRCL_3
changeset 25 3533d4323edc
parent 0 8466d47a6819
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     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 CESMRURLPARSERPLUGIN_H
       
    20 #define CESMRURLPARSERPLUGIN_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <ecom/ecom.h>
       
    24 #include "mruiuids.h"
       
    25 #include "mesmrurlparserplugin.h"
       
    26 
       
    27 
       
    28 
       
    29 /**
       
    30  *  CESMRUrlParserPlugin defines the interface for Location URL Parser.
       
    31  *
       
    32  */
       
    33 class CESMRUrlParserPlugin : public CBase,
       
    34                              public MESMRUrlParserPlugin
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     /**
       
    40      * Two-phased constructor
       
    41      * 
       
    42      */
       
    43     inline static CESMRUrlParserPlugin* NewL();
       
    44     
       
    45     inline virtual ~CESMRUrlParserPlugin();
       
    46 
       
    47 protected:
       
    48     
       
    49     inline CESMRUrlParserPlugin();
       
    50     
       
    51 private:    // data
       
    52 
       
    53     TUid iDtorIDKey;
       
    54     };
       
    55 
       
    56 // INLINE FUNCTIONS
       
    57 
       
    58 inline CESMRUrlParserPlugin* CESMRUrlParserPlugin::NewL()
       
    59     {
       
    60     TAny* impl = NULL;
       
    61     impl = REComSession::CreateImplementationL(
       
    62             TUid::Uid( KESMRURLParserPluginImplementationUid ),
       
    63             _FOFF( CESMRUrlParserPlugin, iDtorIDKey ));
       
    64     return reinterpret_cast< CESMRUrlParserPlugin* >( impl );
       
    65     }
       
    66 
       
    67 inline CESMRUrlParserPlugin::CESMRUrlParserPlugin()
       
    68     {   
       
    69     }
       
    70 
       
    71 inline CESMRUrlParserPlugin::~CESMRUrlParserPlugin()
       
    72     {
       
    73     REComSession::DestroyedImplementation( iDtorIDKey );
       
    74     }
       
    75 
       
    76 #endif // CESMRURLPARSERPLUGIN_H
       
    77 
       
    78 
       
    79