diff -r 91746b151f97 -r 997690c3397a btobexprofiles/obexsendservices/obexservicesendutils/inc/BTServiceStarter.h --- a/btobexprofiles/obexsendservices/obexservicesendutils/inc/BTServiceStarter.h Fri Jun 11 13:48:51 2010 +0300 +++ b/btobexprofiles/obexsendservices/obexservicesendutils/inc/BTServiceStarter.h Wed Jun 23 18:23:52 2010 +0300 @@ -29,9 +29,6 @@ #include #include #include -#include -#include -#include // DATA TYPES @@ -54,7 +51,6 @@ class CObexUtilsUiLayer; class MBTServiceProgressGetter; class CBTSController; -class CBTSProgressTimer; const TUint KBTSdpObjectPush = 0x1105; @@ -83,7 +79,8 @@ * @param aGetter A pointer to a progess status getter object. * @return None. */ - virtual void LaunchProgressNoteL( MBTServiceProgressGetter* aGetter, TInt aTotalSize, TInt aFileCount ) = 0; + //todo reusing the second param aTotalsize to aFileCount as it wass no longer used check it being used in other places + virtual void LaunchProgressNoteL( MBTServiceProgressGetter* aGetter, TInt aFileCount) = 0; /** @@ -93,21 +90,12 @@ */ virtual void UpdateProgressNoteL(TInt aFileSize,TInt aFileIndex, const TDesC& aFileName ) = 0; - - /** - * Informs the observer that a progress note should be shown. - * @param aGetter A pointer to a progess status getter object. - * @return None. - */ - virtual void UpdateProgressInfoL() = 0; - - /** * Informs the observer that a confirmation query for sending - * should be shouwn for BIP sendign + * should be shouwn for BIP sending * @return */ - virtual TInt LaunchConfirmationQuery(TInt aResouceId)=0; + virtual void LaunchConfirmationQuery(const TDesC& aConfirmText)=0; /** * Informs the observer that a connect is timedout @@ -126,9 +114,7 @@ public MObexUtilsDialogObserver, public MObexUtilsProgressObserver, public MBTEngSdpResultReceiver, - public MBTEngSettingsObserver, - public MHbDeviceProgressDialogObserver, - public MHbDeviceDialogObserver + public MBTEngSettingsObserver { public: // Constructors and destructor @@ -170,9 +156,11 @@ * From MBTServiceObserver A progress note should be shown. * @param aGetter A pointer to a progess status getter object. * @param aTotalSize Max size of the progress bar. + * @param aFileCount Total Number of files to be sent * @return None. */ - void LaunchProgressNoteL( MBTServiceProgressGetter* aGetter, TInt aTotalSize, TInt aFileCount ); + //todo reuse the second param as it is no longer used check it being used in other places + void LaunchProgressNoteL( MBTServiceProgressGetter* aGetter, TInt aFileCount); /** @@ -184,32 +172,15 @@ */ void UpdateProgressNoteL(TInt aFileSize,TInt aFileIndex, const TDesC& aFileName ); - /** - * From MBTServiceObserver Updating progress note info about the progress percentage - * @return None. - */ - void UpdateProgressInfoL(); /** * From MObexUtilsWaitDialogObserver The wait note has been dismissed. * @param aButtonId The button id that was used to dismiss the dialog. * @return None. */ - void DialogDismissed( TInt aButtonId ); + void DialogDismissed(TInt aButtonId); /** - * From MHbDeviceProgressDialogObserver - * - */ - void ProgressDialogCancelled(const CHbDeviceProgressDialogSymbian * aDialog); - - /** - * From MHbDeviceProgressDialogObserver - * - */ - void ProgressDialogClosed(const CHbDeviceProgressDialogSymbian * aDialog ) ; - - /** * From MObexUtilsProgressObserver request for number of bytes sent * @Param None. * @return Number of bytes sent. @@ -223,6 +194,13 @@ */ TInt LaunchConfirmationQuery(TInt aResourceId); + + /** + * From MBTServiceObserver A confirmation query for BIP + * profile should be shown. + */ + void LaunchConfirmationQuery(const TDesC& aConfirmText); + /** * From MBTServiceObserver a connect request is timedout * @return @@ -449,9 +427,6 @@ */ void TurnBTPowerOnL( const TBTPowerStateValue aState ); - void DataReceived(CHbSymbianVariantMap& aData); - - void DeviceDialogClosed(TInt aCompletionCode); private: // Data definitions enum TBTServiceStarterState @@ -468,7 +443,7 @@ CBTDevice* iDevice; CBTEngDiscovery* iBTEngDiscovery; CBTServiceParameterList* iList; - // CObexUtilsDialog* iDialog; + CObexUtilsDialog* iDialog; CBTSController* iController; TBTServiceType iService; @@ -493,11 +468,6 @@ TBool iFeatureManagerInitialized; TBool iTriedBIP; TBool iTriedOPP; - CHbDeviceDialogSymbian *iDeviceDialog; - CHbDeviceProgressDialogSymbian *iProgressDialog; - TInt iFileCount; - TInt iFileIndex; - CBTSProgressTimer *iProgressTimer; }; #endif // BT_SERVICE_CONTROLLER_H