mtpfws/mtpfw/dataproviders/devdp/inc/cmtpgetdevicepropdesc.h
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  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef CMTPGETDEVICEPROPDESC_H
       
    22 #define CMTPGETDEVICEPROPDESC_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "mtpdebug.h"
       
    26 #include "rmtpdevicedpsingletons.h"
       
    27 
       
    28 #include "mmtpdevdpextn.h"
       
    29 
       
    30 //#define  value for Unordered format 0 for unordered and 1 for ordered
       
    31 #define FORMAT_UNORDERED 0x00
       
    32 #define FORMAT_ORDERED 0x01
       
    33 
       
    34 //define here for supporting metadata service, not support now
       
    35 const TUint64 KUseDeviceStageH = 0;
       
    36 const TUint64 KUseDeviceStageL = 0;
       
    37 
       
    38 class CMTPTypeDevicePropDesc;
       
    39 class CRepository;
       
    40 /** 
       
    41 Implements the device data provider GetDevicePropDesc request processor.
       
    42 @internalComponent
       
    43 */
       
    44 class CMTPGetDevicePropDesc : public CMTPRequestProcessor
       
    45     {
       
    46 
       
    47 public:
       
    48 
       
    49     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);    
       
    50     ~CMTPGetDevicePropDesc();    
       
    51   //  void SetExtnDevicePropDp(MExtnDevicePropDp* aExtnDevicePropDp);
       
    52    // MExtnDevicePropDp* ExtnDevicePropDp();
       
    53 
       
    54     
       
    55 protected:    
       
    56 
       
    57     CMTPGetDevicePropDesc(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);
       
    58     void ConstructL();
       
    59     
       
    60     // From CMTPRequestProcessor
       
    61     virtual TMTPResponseCode CheckRequestL();
       
    62 public:
       
    63     TMTPTypeGuid* GetGUIDL( const TUint aKey);
       
    64     void SaveGUID( const TUint aKey, TMTPTypeGuid& aValue );
       
    65 private: // From CMTPRequestProcessor
       
    66 
       
    67     void ServiceL();
       
    68     
       
    69 	void DoCancel();
       
    70 	void RunL();
       
    71 
       
    72 private:
       
    73 
       
    74     virtual void ServiceBatteryLevelL();
       
    75     virtual void ServiceDeviceFriendlyNameL();
       
    76     virtual void ServiceSynchronisationPartnerL();
       
    77     virtual void ServiceSessionInitiatorVersionInfoL();
       
    78     virtual void ServicePerceivedDeviceTypeL();
       
    79     virtual void ServiceDateTimeL();
       
    80     virtual void ServiceDeviceIconL();
       
    81     virtual void ServiceSupportedFormatsOrderedL();
       
    82     virtual void ServiceFunctionalIDL();
       
    83     virtual void ServiceModelIDL();
       
    84     virtual void ServiceUseDeviceStageL();
       
    85     virtual void HandleExtnServiceL(TInt aPropCode, MExtnDevicePropDp* aExtnDevplugin );
       
    86 
       
    87 protected:	
       
    88 	virtual TUint8 GetFormatOrdered();
       
    89 protected: // Owned
       
    90 
       
    91  //	 MExtnDevicePropDp* iExtnDevicePropDp;
       
    92   
       
    93     /**
       
    94     The current battery level.
       
    95     */
       
    96     TUint                   iBatteryLevelValue;
       
    97     
       
    98     /**
       
    99     The device DP singletons handle.
       
   100     */
       
   101     RMTPDeviceDpSingletons  iDpSingletons;   
       
   102     
       
   103   
       
   104     
       
   105 private: // Owned.
       
   106 
       
   107     /**
       
   108     FLOGGER debug trace member variable.
       
   109     */
       
   110     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
   111     
       
   112     CMTPTypeDevicePropDesc* iPropDesc;
       
   113     TMTPTypeGuid*           iData;
       
   114     TUint32                 iPropCode;
       
   115     CRepository*            iRepository;
       
   116    //	MMTPType* mtptype;
       
   117      };
       
   118     
       
   119 #endif
       
   120