hti/HtiCommPlugins/HtiIPCommPlugin/src/HtiIPCommEcomPlugin.cpp
branchRCL_3
changeset 19 07b41fa8d1dd
parent 18 3406c99bc375
child 20 ca8a1b6995f6
--- a/hti/HtiCommPlugins/HtiIPCommPlugin/src/HtiIPCommEcomPlugin.cpp	Thu Jul 15 20:25:38 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-/*
-* Copyright (c) 2009 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 plugin for communication over IP port
-*
-*/
-
-
-// INCLUDE FILES
-#include "HtiIPCommEcomPlugin.h"
-#include <HtiLogging.h>
-
-CHtiIPCommEcomPlugin* CHtiIPCommEcomPlugin::NewL()
-    {
-    CHtiIPCommEcomPlugin* self = new (ELeave) CHtiIPCommEcomPlugin();
-    CleanupStack::PushL( self );
-    self->ConstructL();
-    CleanupStack::Pop( self );
-    return self;
-    }
-
-CHtiIPCommEcomPlugin::CHtiIPCommEcomPlugin()
-    {
-    }
-
-CHtiIPCommEcomPlugin::~CHtiIPCommEcomPlugin()
-    {
-    iHtiIPCommServer.Close();
-    }
-
-void CHtiIPCommEcomPlugin::ConstructL()
-    {
-    TInt err = iHtiIPCommServer.Connect();
-    if ( err )
-        {
-        HTI_LOG_FORMAT( "error connecting to HtiIPCommServer %d", err );
-        User::Leave( err );
-        }
-    }
-
-void CHtiIPCommEcomPlugin::Receive( TDes8& aRawdataBuf, TRequestStatus& aStatus )
-    {
-    iHtiIPCommServer.Receive( aRawdataBuf, aStatus );
-    }
-
-void CHtiIPCommEcomPlugin::Send( const TDesC8& aRawdataBuf, TRequestStatus& aStatus )
-    {
-    iHtiIPCommServer.Send( aRawdataBuf, aStatus );
-    }
-
-void CHtiIPCommEcomPlugin::CancelReceive()
-    {
-    iHtiIPCommServer.CancelReceive();
-    }
-
-void CHtiIPCommEcomPlugin::CancelSend()
-    {
-    iHtiIPCommServer.CancelSend();
-    }
-
-TInt CHtiIPCommEcomPlugin::GetSendBufferSize()
-    {
-    return iHtiIPCommServer.GetSendBufferSize();
-    }
-
-TInt CHtiIPCommEcomPlugin::GetReceiveBufferSize()
-    {
-    return iHtiIPCommServer.GetReceiveBufferSize();
-    }
-
-