mtpfws/mtpfw/dataproviders/dputility/inc/cmtpsvcgetstorageinfo.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     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 // mw/remoteconn/mtpfws/mtpfw/dataproviders/dputility/inc/cmtpsvcgetstorageinfo.h
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19  */
       
    20 
       
    21 #ifndef __CMTPSVCGETSTORAGEINFO_H__
       
    22 #define __CMTPSVCGETSTORAGEINFO_H__
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "mtpdebug.h"
       
    26 
       
    27 class MMTPServiceDataProvider;
       
    28 class CMTPTypeStorageInfo;
       
    29 
       
    30 /** 
       
    31 Implements the service data provider GetStorageInfo request processor.
       
    32 @internalComponent
       
    33 */
       
    34 class CMTPSvcGetStorageInfo : public CMTPRequestProcessor
       
    35 	{
       
    36 public:
       
    37 	IMPORT_C static MMTPRequestProcessor* NewL(
       
    38 									MMTPDataProviderFramework& aFramework, 
       
    39 									MMTPConnection& aConnection, 
       
    40 									MMTPServiceDataProvider& aDataProvider);
       
    41 	IMPORT_C ~CMTPSvcGetStorageInfo();
       
    42 
       
    43 private:
       
    44 	CMTPSvcGetStorageInfo(
       
    45 					MMTPDataProviderFramework& aFramework, 
       
    46 					MMTPConnection& aConnection, 
       
    47 					MMTPServiceDataProvider& aDataProvider);
       
    48 	void ConstructL();
       
    49 	
       
    50 	//from CMTPRequestProcessor
       
    51 	virtual void ServiceL();
       
    52 	TMTPResponseCode CheckRequestL();
       
    53 	//helper
       
    54 	void SetStorageDescriptionL();
       
    55 	void SetVolumeIdentifierL();
       
    56 	void SetMaxCapacityL();
       
    57 	void SetFreeSpaceInBytesL();
       
    58 
       
    59 private:
       
    60 	CMTPTypeStorageInfo*         iStorageInfo;
       
    61 	MMTPServiceDataProvider&     iDataProvider;
       
    62 	/**
       
    63 	FLOGGER debug trace member variable.
       
    64 	*/
       
    65 	__FLOG_DECLARATION_MEMBER_MUTABLE;
       
    66 	};
       
    67 
       
    68 #endif // __CMTPSVCGETSTORAGEINFO_H__