libraries/iosrv/server/null.cpp
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // null.cpp
       
     2 // 
       
     3 // Copyright (c) 2006 - 2010 Accenture. All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the "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 // Accenture - Initial contribution
       
    11 //
       
    12 
       
    13 #include "null.h"
       
    14 #include "log.h"
       
    15 
       
    16 CIoNull* CIoNull::NewLC()
       
    17 	{
       
    18 	CIoNull* self = new(ELeave) CIoNull();
       
    19 	LOG(CIoLog::Printf(_L("Null 0x%08x created"), self));
       
    20 	CleanupClosePushL(*self);
       
    21 	return self;
       
    22 	}
       
    23 
       
    24 CIoNull::~CIoNull()
       
    25 	{
       
    26 	}
       
    27 
       
    28 TBool CIoNull::IsType(RIoHandle::TType aType) const
       
    29 	{
       
    30 	return ((aType == RIoHandle::EEndPoint) || (aType == RIoHandle::ENull));
       
    31 	}
       
    32 
       
    33 void CIoNull::IorepReadL(MIoReader&)
       
    34 	{
       
    35 	User::Leave(KErrEof);
       
    36 	}
       
    37 
       
    38 void CIoNull::IowepWriteL(MIoWriter& aWriter)
       
    39 	{
       
    40 	aWriter.IowComplete(KErrNone);
       
    41 	}
       
    42 
       
    43 void CIoNull::IowepWriteCancel(MIoWriter&)
       
    44 	{
       
    45 	}
       
    46 
       
    47 CIoNull::CIoNull()
       
    48 	{
       
    49 	}
       
    50