searchui/searchapp/inc/srchuiresultviewerplugin.inl
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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:      inline method defination for class CSrchUiResultViewerPlugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 //System Includes
       
    24 #include <ecom.h>
       
    25 #include <e32cmn.h>
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 	
       
    30 // -----------------------------------------------------------------------------
       
    31 // CSrchUiResultViewerPlugin::NewL
       
    32 // Ecom interface static factory method implementation.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CSrchUiResultViewerPlugin* CSrchUiResultViewerPlugin::NewL( TUid aImpUid)
       
    36     {
       
    37     CSrchUiResultViewerPlugin* self = CSrchUiResultViewerPlugin::NewLC( aImpUid );	
       
    38     CleanupStack::Pop();
       
    39     return self;
       
    40     }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // CSrchUiResultViewerPlugin::NewLC
       
    44 // Ecom interface static factory method implementation.
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 CSrchUiResultViewerPlugin* CSrchUiResultViewerPlugin::NewLC( TUid aImpUid)
       
    48     {
       
    49     TAny* implementation = REComSession::CreateImplementationL ( aImpUid, 
       
    50                      _FOFF ( CSrchUiResultViewerPlugin, iDtor_ID_Key ) );	
       
    51     
       
    52     CSrchUiResultViewerPlugin* self = 
       
    53                REINTERPRET_CAST( CSrchUiResultViewerPlugin*, implementation );
       
    54     
       
    55     self->iPluginId = aImpUid;
       
    56 
       
    57     CleanupStack::PushL( self );
       
    58     return self;
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // CSrchUiResultViewerPlugin::~CSrchUiResultViewerPlugin
       
    63 // Destructor
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 /*
       
    67 CSrchUiResultViewerPlugin::~CSrchUiResultViewerPlugin()
       
    68     {
       
    69       REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    70     // REComSession::Close();
       
    71     }
       
    72 */
       
    73 // -----------------------------------------------------------------------------
       
    74 // CSrchUiResultViewerPlugin::ListAllImplementationsL
       
    75 // Other Items are mentioned in the Header
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 inline void CSrchUiResultViewerPlugin::ListAllImplementationsL( 
       
    79 			RImplInfoPtrArray& aImplInfoArray )
       
    80     {
       
    81   	TUid KSrchUiResultEcomInterfaceUidAsTUid;
       
    82     KSrchUiResultEcomInterfaceUidAsTUid.iUid = 0x1028240E;
       
    83     REComSession::ListImplementationsL( KSrchUiResultEcomInterfaceUidAsTUid,
       
    84     		 aImplInfoArray );
       
    85     }
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 // CSrchUiResultViewerPlugin::PluginId
       
    89 // Other Items are mentioned in the Header 
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 TUid CSrchUiResultViewerPlugin::PluginId() const
       
    93     {
       
    94     return iPluginId;
       
    95     }
       
    96 
       
    97 
       
    98 // -----------------------------------------------------------------------------
       
    99 // CSrchUiResultViewerPlugin::PluginId
       
   100 // Other Items are mentioned in the Header 
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 CAknViewAppUi* CSrchUiResultViewerPlugin::AppUi()
       
   104 {
       
   105     return iAppUi;
       
   106 }
       
   107