contacts_plat/predictivesearch_algorithm_api/inc/CPcsPlugin.inl
branchRCL_3
changeset 63 f4a778e096c2
child 64 c1e8ba0c2b16
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contacts_plat/predictivesearch_algorithm_api/inc/CPcsPlugin.inl	Wed Sep 01 12:29:52 2010 +0100
@@ -0,0 +1,71 @@
+/*
+* Copyright (c) 2006-2007 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:  ECom Predictive search interface definition
+*
+*/
+
+
+// INCLUDE FILES
+#include <ecom/ecom.h>
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// ----------------------------------------------------------------------------
+// CPcsPlugin::NewL
+// Two phase construction
+// ----------------------------------------------------------------------------
+inline CPcsPlugin* CPcsPlugin::NewL( TUid aImpUid )
+{
+        
+	CPcsPlugin* self = CPcsPlugin::NewLC( aImpUid );	
+	CleanupStack::Pop();
+		
+	return self;
+}
+
+// ----------------------------------------------------------------------------
+// CPcsPlugin::NewLC
+// Two phase construction
+// ----------------------------------------------------------------------------
+inline CPcsPlugin* CPcsPlugin::NewLC( TUid aImpUid )
+{
+        
+	TAny* implementation = REComSession::CreateImplementationL ( aImpUid,
+	    _FOFF ( CPcsPlugin, iDtor_ID_Key ) );
+	CPcsPlugin* self = REINTERPRET_CAST( CPcsPlugin*, implementation );
+	self->iPluginId = aImpUid;
+	CleanupStack::PushL( self );
+	
+	return self;
+}
+
+// ----------------------------------------------------------------------------
+// CPcsPlugin::ConstructL
+// Destructor
+// ----------------------------------------------------------------------------
+inline CPcsPlugin::~CPcsPlugin()
+{
+    REComSession::DestroyedImplementation ( iDtor_ID_Key );
+
+}
+
+// ----------------------------------------------------------------------------
+// CPcsPlugin::PluginId
+// Returns the plugin id
+// ----------------------------------------------------------------------------
+inline TUid CPcsPlugin::PluginId() const
+{  
+    return iPluginId;
+}
+