localconnectivityservice/obexsendservices/obexservicesendutils/inc/BTServiceStarter.h
equal
deleted
inserted
replaced
27 |
27 |
28 #include <btengdiscovery.h> |
28 #include <btengdiscovery.h> |
29 #include <btengsettings.h> |
29 #include <btengsettings.h> |
30 #include <obexutilsdialog.h> |
30 #include <obexutilsdialog.h> |
31 #include <msvapi.h> |
31 #include <msvapi.h> |
|
32 #include <hbdevicedialogsymbian.h> |
32 #include <hb/hbwidgets/hbdeviceprogressdialogsymbian.h> |
33 #include <hb/hbwidgets/hbdeviceprogressdialogsymbian.h> |
|
34 #include <hbsymbianvariant.h> |
33 |
35 |
34 // DATA TYPES |
36 // DATA TYPES |
35 |
37 |
36 enum TBTServiceProfile |
38 enum TBTServiceProfile |
37 { |
39 { |
50 |
52 |
51 // FORWARD DECLARATIONS |
53 // FORWARD DECLARATIONS |
52 class CObexUtilsUiLayer; |
54 class CObexUtilsUiLayer; |
53 class MBTServiceProgressGetter; |
55 class MBTServiceProgressGetter; |
54 class CBTSController; |
56 class CBTSController; |
|
57 class CBTSProgressTimer; |
55 |
58 |
56 |
59 |
57 const TUint KBTSdpObjectPush = 0x1105; |
60 const TUint KBTSdpObjectPush = 0x1105; |
58 const TUint KBTSdpBasicImaging = 0x111b; |
61 const TUint KBTSdpBasicImaging = 0x111b; |
59 const TUint KBTSdpBasicPrinting = 0x1120; |
62 const TUint KBTSdpBasicPrinting = 0x1120; |
78 /** |
81 /** |
79 * Informs the observer that a progress note should be shown. |
82 * Informs the observer that a progress note should be shown. |
80 * @param aGetter A pointer to a progess status getter object. |
83 * @param aGetter A pointer to a progess status getter object. |
81 * @return None. |
84 * @return None. |
82 */ |
85 */ |
83 virtual void LaunchProgressNoteL( MBTServiceProgressGetter* aGetter, TInt aTotalSize ) = 0; |
86 virtual void LaunchProgressNoteL( MBTServiceProgressGetter* aGetter, TInt aTotalSize, TInt aFileCount ) = 0; |
|
87 |
|
88 |
|
89 /** |
|
90 * Informs the observer that a progress note should be shown. |
|
91 * @param aGetter A pointer to a progess status getter object. |
|
92 * @return None. |
|
93 */ |
|
94 virtual void UpdateProgressNoteL(TInt aFileSize,TInt aFileIndex, const TDesC& aFileName ) = 0; |
|
95 |
|
96 |
|
97 /** |
|
98 * Informs the observer that a progress note should be shown. |
|
99 * @param aGetter A pointer to a progess status getter object. |
|
100 * @return None. |
|
101 */ |
|
102 virtual void UpdateProgressInfoL() = 0; |
|
103 |
84 |
104 |
85 /** |
105 /** |
86 * Informs the observer that a confirmation query for sending |
106 * Informs the observer that a confirmation query for sending |
87 * should be shouwn for BIP sendign |
107 * should be shouwn for BIP sendign |
88 * @return |
108 * @return |
105 public MBTServiceObserver, |
125 public MBTServiceObserver, |
106 public MObexUtilsDialogObserver, |
126 public MObexUtilsDialogObserver, |
107 public MObexUtilsProgressObserver, |
127 public MObexUtilsProgressObserver, |
108 public MBTEngSdpResultReceiver, |
128 public MBTEngSdpResultReceiver, |
109 public MBTEngSettingsObserver, |
129 public MBTEngSettingsObserver, |
110 public MHbDeviceProgressDialogObserver |
130 public MHbDeviceProgressDialogObserver, |
|
131 public MHbDeviceDialogObserver |
111 { |
132 { |
112 public: // Constructors and destructor |
133 public: // Constructors and destructor |
113 |
134 |
114 /** |
135 /** |
115 * Two-phased constructor. |
136 * Two-phased constructor. |
149 * From MBTServiceObserver A progress note should be shown. |
170 * From MBTServiceObserver A progress note should be shown. |
150 * @param aGetter A pointer to a progess status getter object. |
171 * @param aGetter A pointer to a progess status getter object. |
151 * @param aTotalSize Max size of the progress bar. |
172 * @param aTotalSize Max size of the progress bar. |
152 * @return None. |
173 * @return None. |
153 */ |
174 */ |
154 void LaunchProgressNoteL( MBTServiceProgressGetter* aGetter, TInt aTotalSize ); |
175 void LaunchProgressNoteL( MBTServiceProgressGetter* aGetter, TInt aTotalSize, TInt aFileCount ); |
|
176 |
|
177 |
|
178 /** |
|
179 * From MBTServiceObserver Updating progress note when multiple files are sent. |
|
180 * @param aFileSize Size of the file to be send. |
|
181 * @param aFileIndex index of the file to be send. |
|
182 * @param aFileName name of the file to be send. |
|
183 * @return None. |
|
184 */ |
|
185 void UpdateProgressNoteL(TInt aFileSize,TInt aFileIndex, const TDesC& aFileName ); |
|
186 |
|
187 /** |
|
188 * From MBTServiceObserver Updating progress note info about the progress percentage |
|
189 * @return None. |
|
190 */ |
|
191 void UpdateProgressInfoL(); |
155 |
192 |
156 /** |
193 /** |
157 * From MObexUtilsWaitDialogObserver The wait note has been dismissed. |
194 * From MObexUtilsWaitDialogObserver The wait note has been dismissed. |
158 * @param aButtonId The button id that was used to dismiss the dialog. |
195 * @param aButtonId The button id that was used to dismiss the dialog. |
159 * @return None. |
196 * @return None. |
409 * Turn BT power on. |
446 * Turn BT power on. |
410 * @param aState The current BT power state. |
447 * @param aState The current BT power state. |
411 * @return None. |
448 * @return None. |
412 */ |
449 */ |
413 void TurnBTPowerOnL( const TBTPowerStateValue aState ); |
450 void TurnBTPowerOnL( const TBTPowerStateValue aState ); |
|
451 |
|
452 void DataReceived(CHbSymbianVariantMap& aData); |
|
453 |
|
454 void DeviceDialogClosed(TInt aCompletionCode); |
414 private: // Data definitions |
455 private: // Data definitions |
415 |
456 |
416 enum TBTServiceStarterState |
457 enum TBTServiceStarterState |
417 { |
458 { |
418 EBTSStarterIdle, |
459 EBTSStarterIdle, |
450 TBool iSendToBIPOnlyDevice; |
491 TBool iSendToBIPOnlyDevice; |
451 TBTActiveNotifier iActiveNotifier; |
492 TBTActiveNotifier iActiveNotifier; |
452 TBool iFeatureManagerInitialized; |
493 TBool iFeatureManagerInitialized; |
453 TBool iTriedBIP; |
494 TBool iTriedBIP; |
454 TBool iTriedOPP; |
495 TBool iTriedOPP; |
|
496 CHbDeviceDialogSymbian *iDeviceDialog; |
455 CHbDeviceProgressDialogSymbian *iProgressDialog; |
497 CHbDeviceProgressDialogSymbian *iProgressDialog; |
|
498 TInt iFileCount; |
|
499 TInt iFileIndex; |
|
500 CBTSProgressTimer *iProgressTimer; |
456 }; |
501 }; |
457 |
502 |
458 #endif // BT_SERVICE_CONTROLLER_H |
503 #endif // BT_SERVICE_CONTROLLER_H |
459 |
504 |
460 // End of File |
505 // End of File |