connectivitymodules/SeCon/services/pcd/inc/sconsbeclient.h
changeset 40 b63e67867dcd
parent 19 2691f6aa1921
equal deleted inserted replaced
39:9905f7d46607 40:b63e67867dcd
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    31 NONSHARABLE_CLASS ( CSConSBEClient ) : public CActive
    31 NONSHARABLE_CLASS ( CSConSBEClient ) : public CActive
    32     {
    32     {
    33     public:
    33     public:
    34         /**
    34         /**
    35          * Two-phase constructor
    35          * Two-phase constructor
    36          * @param aMaxObjectSize Max object size
       
    37          * @param aFs aReference to RFs connection.
    36          * @param aFs aReference to RFs connection.
    38          * @return CSConSBEClient instance
    37          * @return CSConSBEClient instance
    39          */
    38          */
    40         static CSConSBEClient* NewL( const TInt aMaxObjectSize, RFs& aFs );
    39         static CSConSBEClient* NewL( RFs& aFs );
    41         /**
    40         /**
    42          * Destructor
    41          * Destructor
    43          * @return none
    42          * @return none
    44          */
    43          */
    45         ~CSConSBEClient();
    44         ~CSConSBEClient();
    94         void SupplyData( TRequestStatus& aStatus, CSConTask*& aTask );
    93         void SupplyData( TRequestStatus& aStatus, CSConTask*& aTask );
    95     
    94     
    96     private:
    95     private:
    97         /**
    96         /**
    98          * Constructor
    97          * Constructor
    99          * @paran aMaxObjectSize Max object size
       
   100          * @param aFs aReference to RFs connection.
    98          * @param aFs aReference to RFs connection.
   101          * @return none
    99          * @return none
   102          */
   100          */
   103         CSConSBEClient( const TInt aMaxObjectSize, RFs& aFs );
   101         CSConSBEClient( RFs& aFs );
   104         
   102         
   105         /**
   103         /**
   106          * Implementation of CActive::DoCancel()
   104          * Implementation of CActive::DoCancel()
   107          * @return none
   105          * @return none
   108          */
   106          */
   136         /**
   134         /**
   137          * Executes RequestData task
   135          * Executes RequestData task
   138          * @return KErrNone if no erros. Else system wide error codes.
   136          * @return KErrNone if no erros. Else system wide error codes.
   139          */
   137          */
   140         TInt ProcessRequestDataL();
   138         TInt ProcessRequestDataL();
   141         /**
   139 		/**
       
   140 		 * Request data to iDataBuffer
       
   141 		 * @return none
       
   142 		 */
       
   143 		void RequestDataL( CSBGenericTransferType& aGenericTransferType );
       
   144 		/**
   142          * Executes GetDataOwnerStatus task
   145          * Executes GetDataOwnerStatus task
   143          * @return none
   146          * @return none
   144          */
   147          */
   145         void ProcessGetDataOwnerStatusL();
   148         void ProcessGetDataOwnerStatusL();
   146         /**
   149         /**
   151         /**
   154         /**
   152          * Maps TInt drive number to TDriveNumber
   155          * Maps TInt drive number to TDriveNumber
   153          * @param aDrive Drive number as TInt
   156          * @param aDrive Drive number as TInt
   154          * @return drive number as TDriveNumber
   157          * @return drive number as TDriveNumber
   155          */
   158          */
   156         TDriveNumber GetDriveNumber( const TInt& aDrive ) const;
   159         TDriveNumber GetDriveNumber( TInt aDrive ) const;
   157         /**
   160         /**
   158          * Filters the drive list
   161          * Filters the drive list
   159          * @param aDriveList Drive list to be filtered
   162          * @param aDriveList Drive list to be filtered
   160          * @return none
   163          * @return none
   161          */     
   164          */     
   207          * Gets Java dataowner size
   210          * Gets Java dataowner size
   208          * @param aJavaHash Java hash value
   211          * @param aJavaHash Java hash value
   209          * @param TDriveList drives to include
   212          * @param TDriveList drives to include
   210          * @return dataowner data size in specified drives
   213          * @return dataowner data size in specified drives
   211          */
   214          */
   212         TUint JavaDataSizeL( const TDesC& aJavaHash, const TDriveList& aDriveList ) const;
   215          TUint JavaDataSizeL( const TDesC& aJavaHash, const TDriveList& aDriveList ) const;
   213         
   216          
   214     private:
   217 	private:
   215         CSBEClient*                     iSBEClient;
   218 		CSBEClient*						iSBEClient;
   216         TRequestStatus*                 iCallerStatus;
   219 		TRequestStatus* 				iCallerStatus;
   217         TBool                           iProcessComplete;
   220 		CSConTask*						iCurrentTask;
   218         TInt                            iProcessIndex;
   221 		TBool							iBURModeNormal;
   219         TInt                            iMaxObjectSize;
   222 		TBool                           iRestoreMode;
   220         
   223 		RFs&                            iFs;
   221         CSConTask*                      iCurrentTask;
   224 		TBool                           iAllSnapshotsSuppliedCalled;
   222         TInt                            iDataPos;
   225 		TBool                           iLastChunk;
   223         TBool                           iDataLeft;
   226 		CBufFlat*                       iDataBuffer;
   224         TPtrC8                          iDataPtr;
   227 		TInt                            iDataBufferSize;
   225         TBool                           iLastChunk;
   228 	};
   226         TBool                           iBURModeNormal;
       
   227         TBool                           iRestoreMode;
       
   228         RFs&                            iFs;
       
   229         TBool                           iAllSnapshotsSuppliedCalled;
       
   230     };
       
   231 
   229 
   232 #endif
   230 #endif
   233 
   231 
   234 // End of file
   232 // End of file