mtpfws/mtpfw/dataproviders/dputility/src/cmtprequestunknown.cpp
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-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 
       
    17 #include <mtp/tmtptyperequest.h>
       
    18 #include "cmtprequestunknown.h"
       
    19 
       
    20 /**
       
    21 Two-phase construction method
       
    22 @param aFramework	The data provider framework
       
    23 @param aConnection	The connection from which the request comes
       
    24 @return a pointer to the created request processor object
       
    25 */ 
       
    26 EXPORT_C MMTPRequestProcessor* CMTPRequestUnknown::NewL( 
       
    27 											MMTPDataProviderFramework& aFramework,
       
    28 											MMTPConnection& aConnection)
       
    29 	{
       
    30 	CMTPRequestUnknown* self = new (ELeave) CMTPRequestUnknown(aFramework, aConnection);
       
    31 	return self;
       
    32 	}
       
    33 
       
    34 /**
       
    35 Destructor
       
    36 */	
       
    37 EXPORT_C CMTPRequestUnknown::~CMTPRequestUnknown()
       
    38 	{
       
    39 		
       
    40 	}
       
    41 
       
    42 /**
       
    43 Standard c++ constructor
       
    44 */	
       
    45 EXPORT_C CMTPRequestUnknown::CMTPRequestUnknown(
       
    46 									MMTPDataProviderFramework& aFramework,
       
    47 									MMTPConnection& aConnection)
       
    48 	:CMTPRequestProcessor(aFramework, aConnection, 0, NULL)
       
    49 	{
       
    50 	}
       
    51 	
       
    52 /**
       
    53 OpenSession request handler
       
    54 */	
       
    55 EXPORT_C void CMTPRequestUnknown::ServiceL()	
       
    56 	{
       
    57 	SendResponseL(EMTPRespCodeOperationNotSupported);	
       
    58 	}
       
    59 
       
    60 /**
       
    61 Override to match both the unknown requests
       
    62 @param aRequest	The request to match
       
    63 @param aConnection The connection from which the request comes
       
    64 @return always return ETrue to process all unknown request
       
    65 */		
       
    66 EXPORT_C TBool CMTPRequestUnknown::Match(const TMTPTypeRequest& /*aRequest*/, MMTPConnection& /*aConnection*/) const
       
    67 	{
       
    68 	return ETrue;	
       
    69 	}
       
    70 
       
    71 
       
    72 
       
    73 
       
    74 
       
    75 
       
    76 
       
    77 
       
    78 
       
    79 	
       
    80 
       
    81 	
       
    82 
       
    83 
       
    84    	
       
    85 
       
    86 	
       
    87 
       
    88 
       
    89 
       
    90 
       
    91 
       
    92