examples/RemoteConn/MtpDataProviderExample/src/cmtprequestunknown.cpp

00001 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 //
00015 
00016 
00017 #include <mtp/tmtptyperequest.h>
00018 #include "cmtprequestunknown.h"
00019 
00026 MMTPExampleDpRequestProcessor* CMTPRequestUnknown::NewL( 
00027                                             MMTPDataProviderFramework& aFramework,
00028                                             MMTPConnection& aConnection)
00029     {
00030     CMTPRequestUnknown* self = new (ELeave) CMTPRequestUnknown(aFramework, aConnection);
00031     return self;
00032     }
00033 
00037 CMTPRequestUnknown::~CMTPRequestUnknown()
00038     {
00039         
00040     }
00041 
00045 CMTPRequestUnknown::CMTPRequestUnknown(
00046                                     MMTPDataProviderFramework& aFramework,
00047                                     MMTPConnection& aConnection)
00048     :CMTPExampleDpRequestProcessor(aFramework, aConnection, 0, NULL)
00049     {
00050     }
00051     
00055 void CMTPRequestUnknown::ServiceL()    
00056     {
00057     SendResponseL(EMTPRespCodeOperationNotSupported);   
00058     }
00059 
00066 TBool CMTPRequestUnknown::Match(const TMTPTypeRequest& /*aRequest*/, MMTPConnection& /*aConnection*/) const
00067     {
00068     return ETrue;   
00069     }
00070 
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079     
00080 
00081     
00082 
00083 
00084     
00085 
00086     
00087 
00088 
00089 
00090 
00091 
00092 
00093 
00094 

Generated on Thu Jan 21 10:33:00 2010 for TB10.1 Example Applications by  doxygen 1.5.3