natplugins/natptraversalcontroller/tsrc/ut_NatTraversalController/src/ccrlfsenderstub.cpp
changeset 0 1bce908db942
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/natplugins/natptraversalcontroller/tsrc/ut_NatTraversalController/src/ccrlfsenderstub.cpp	Tue Feb 02 01:04:58 2010 +0200
@@ -0,0 +1,72 @@
+/*
+* Copyright (c) 2005 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: 
+*
+*/
+
+
+#include "CCRLFSenderStub.h"
+
+// -----------------------------------------------------------------------------
+// CCRLFSenderStub::CCRLFSenderStub
+// -----------------------------------------------------------------------------
+//
+CCRLFSenderStub::CCRLFSenderStub(
+    MNATBindingRefresherObserver& aObserver )
+    : CCRLFSender( aObserver )
+    {
+    }
+
+// -----------------------------------------------------------------------------
+// CCRLFSenderStub::~CCRLFSenderStub
+// -----------------------------------------------------------------------------
+//
+CCRLFSenderStub::~CCRLFSenderStub()
+    {
+    Cancel();
+    }
+
+// -----------------------------------------------------------------------------
+// CCRLFSenderStub::HasSocket
+// -----------------------------------------------------------------------------
+//
+TBool CCRLFSenderStub::HasSocket(const RSocket& /*aSocket*/) const
+    {
+    return EFalse;
+    }
+
+// -----------------------------------------------------------------------------
+// CCRLFSenderStub::DoCancel
+// From CActive
+// -----------------------------------------------------------------------------
+//
+void CCRLFSenderStub::DoCancel()
+    {
+    if (iStatus == KRequestPending)
+        {
+        TRequestStatus* status = &iStatus;
+        User::RequestComplete(status,KErrCancel);
+        }
+    }
+
+// -----------------------------------------------------------------------------
+// CCRLFSenderStub::Send
+// -----------------------------------------------------------------------------
+//
+void CCRLFSenderStub::Send(const TDesC8& /*aData*/)
+    {
+    iStatus = KRequestPending;
+    }
+
+// End of File