mtpfws/mtpfw/dataproviders/devdp/inc/cmtpgetstorageinfo.h
changeset 0 d0791faffa3f
child 3 8b094906a049
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  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef __CMTPGETSTORAGEINFO_H__
       
    22 #define __CMTPGETSTORAGEINFO_H__
       
    23 
       
    24 #include <f32file.h>
       
    25 
       
    26 #include "cmtprequestprocessor.h"
       
    27 #include "rmtpframework.h"
       
    28 #include "mtpdebug.h"
       
    29 
       
    30 //forward declaration
       
    31 class CMTPTypeStorageInfo;
       
    32 
       
    33 /** 
       
    34 Defines device data provider GetStorageInfo request processor
       
    35 
       
    36 @internalTechnology
       
    37 */
       
    38 class CMTPGetStorageInfo : public CMTPRequestProcessor
       
    39 	{
       
    40 public:
       
    41 	static MMTPRequestProcessor* NewL(
       
    42 									MMTPDataProviderFramework& aFramework,
       
    43 									MMTPConnection& aConnection);	
       
    44 	~CMTPGetStorageInfo();	
       
    45 	
       
    46 private:	
       
    47 	CMTPGetStorageInfo(
       
    48 					MMTPDataProviderFramework& aFramework,
       
    49 					MMTPConnection& aConnection);
       
    50 					
       
    51 	void ConstructL();
       
    52 
       
    53 private:	//from CMTPRequestProcessor
       
    54 	virtual void ServiceL();
       
    55 
       
    56 private:
       
    57 	//helper
       
    58 	void BuildStorageInfoL();
       
    59 	void SetStorageTypeL();
       
    60 	void SetFileSystemTypeL();
       
    61 	void SetAccessCapabilityL();
       
    62 	void SetMaxCapacityL();
       
    63 	void SetFreeSpaceInBytesL();
       
    64 	void SetFreeSpaceInObjectsL();
       
    65 	void SetStorageDescriptionL();
       
    66 	void SetVolumeIdentifierL();
       
    67 	void SetupDriveVolumeInfoL();	
       
    68 		
       
    69 private:
       
    70 	/**
       
    71     FLOGGER debug trace member variable.
       
    72     */
       
    73     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    74     
       
    75 	CMTPTypeStorageInfo*		iStorageInfo;
       
    76 	TDriveInfo					iDriveInfo;
       
    77 	TVolumeInfo 				iVolumeInfo;
       
    78 	RMTPFramework               iSingletons;
       
    79 	};
       
    80 	
       
    81 #endif
       
    82