servicediscoveryandcontrol/pnp/test/upnp/upnpdescription/inc/parsehandlerbase.inl
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 void CParseHandlerBase::ParseStartElementL(const RTagInfo& /*aElement*/, const RAttributeArray& /*aAttributes*/)
       
    17 	{
       
    18 	// not expecting a start tag
       
    19 	User::Leave(KErrCorrupt);
       
    20 	}
       
    21 	
       
    22 void CParseHandlerBase::ParseEndElementL(const RTagInfo& /*aElement*/)
       
    23 	{
       
    24 	// not expecting an end tag
       
    25 	User::Leave(KErrCorrupt);
       
    26 	}
       
    27 	
       
    28 void CParseHandlerBase::ParseContentL(const TDesC8& /*aBytes*/)
       
    29 	{
       
    30 	// ignore content, probably just tabs and white space	
       
    31 	}
       
    32 void CParseHandlerBase::ParsePrefixL(const RString& /*aPrefix*/, const RString& /*aUri*/)
       
    33 	{
       
    34 	// not expecting anything here
       
    35 	}
       
    36 
       
    37 void CParseHandlerBase::OnStartDocumentL(const RDocumentParameters& /*aDocParam*/, TInt aErrorCode)
       
    38 	{
       
    39 	User::LeaveIfError(aErrorCode);
       
    40 	}
       
    41 
       
    42 void CParseHandlerBase::OnEndDocumentL(TInt aErrorCode)
       
    43 	{
       
    44 	User::LeaveIfError(aErrorCode);
       
    45 	}
       
    46 
       
    47 void CParseHandlerBase::OnEndPrefixMappingL(const RString& /*aPrefix*/, TInt aErrorCode)
       
    48 	{
       
    49 	User::LeaveIfError(aErrorCode);
       
    50 	
       
    51 	// Do nothing
       
    52 	
       
    53 	}
       
    54 
       
    55 void CParseHandlerBase::OnIgnorableWhiteSpaceL(const TDesC8& /*aBytes*/, TInt aErrorCode)
       
    56 	{
       
    57 	User::LeaveIfError(aErrorCode);
       
    58 	// Don't care about ignorable white space
       
    59 	}
       
    60 
       
    61 void CParseHandlerBase::OnSkippedEntityL(const RString& /*aName*/, TInt aErrorCode)
       
    62 	{
       
    63 	User::LeaveIfError(aErrorCode);
       
    64 	}
       
    65 
       
    66 void CParseHandlerBase::OnProcessingInstructionL(const TDesC8& /*aTarget*/, const TDesC8& /*aData*/, TInt aErrorCode)
       
    67 	{
       
    68 	User::LeaveIfError(aErrorCode);
       
    69 	}
       
    70 
       
    71 void CParseHandlerBase::OnError(TInt aErrorCode)
       
    72 	{
       
    73 	User::LeaveIfError( aErrorCode );
       
    74 	}
       
    75 
       
    76 TAny* CParseHandlerBase::GetExtendedInterface(const TInt32 /*aUid*/)
       
    77 	{
       
    78 	// we don't support any extended interfaces
       
    79 	return NULL;
       
    80 	}
       
    81 
       
    82