mtpfws/mtpfw/dataproviders/dputility/src/cmtpgetinterdependentpropdesc.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 
       
    18 #include <mtp/mtpdatatypeconstants.h>
       
    19 #include <mtp/cmtptypeinterdependentpropdesc.h>
       
    20 #include "cmtpgetinterdependentpropdesc.h"
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25 Two-phase construction method
       
    26 @param aFramework	The data provider framework
       
    27 @param aConnection	The connection from which the request comes
       
    28 @return a pointer to the created request processor object
       
    29 */  
       
    30 EXPORT_C MMTPRequestProcessor* CMTPGetInterDependentPropDesc::NewL(MMTPDataProviderFramework& aFramework,
       
    31 														MMTPConnection& aConnection)
       
    32 	{
       
    33 	CMTPGetInterDependentPropDesc* self = new (ELeave) CMTPGetInterDependentPropDesc(aFramework, aConnection);
       
    34 	return self;	
       
    35 	}
       
    36 
       
    37 /**
       
    38  Destructor
       
    39 */
       
    40 EXPORT_C CMTPGetInterDependentPropDesc::~CMTPGetInterDependentPropDesc()
       
    41 	{
       
    42 	delete iDataset;
       
    43 	}
       
    44 
       
    45 /**
       
    46 Standard c++ constructor
       
    47 @param aFramework	The data provider framework
       
    48 @param aConnection	The connection from which the request comes
       
    49 */
       
    50 CMTPGetInterDependentPropDesc::CMTPGetInterDependentPropDesc(MMTPDataProviderFramework& aFramework,
       
    51 															MMTPConnection& aConnection)
       
    52 	:CMTPRequestProcessor(aFramework, aConnection, 0, NULL)														
       
    53 	{
       
    54 	}
       
    55 
       
    56 
       
    57 /**
       
    58  GetInterDependentPropDesc request handler
       
    59 */
       
    60 void CMTPGetInterDependentPropDesc::ServiceL()
       
    61 	{
       
    62 	// Clear the data set.
       
    63 	delete iDataset;
       
    64 	iDataset = NULL;
       
    65 	iDataset = CMTPTypeInterdependentPropDesc::NewL();
       
    66     
       
    67 	// Send the dataset.
       
    68 	SendDataL(*iDataset);
       
    69 	}
       
    70 	
       
    71