equal
deleted
inserted
replaced
248 deviceDialog.waitForClosed(); |
248 deviceDialog.waitForClosed(); |
249 // Get data the dialog sent |
249 // Get data the dialog sent |
250 QVariantMap data = deviceDialog.receivedData(); |
250 QVariantMap data = deviceDialog.receivedData(); |
251 \endcode |
251 \endcode |
252 |
252 |
253 \sa HbDeviceDialogPlugin |
253 \sa HbDeviceDialogPlugin, CHbDeviceDialogSymbian |
254 */ |
254 */ |
255 |
255 |
256 /*! |
256 /*! |
257 \enum HbDeviceDialog::DeviceDialogError |
257 \enum HbDeviceDialog::DeviceDialogError |
258 Defines device dialog error codes and ranges. |
258 Defines device dialog error codes and ranges. |
344 #else |
344 #else |
345 #include "hbdevicedialogwin32_p.h" |
345 #include "hbdevicedialogwin32_p.h" |
346 #endif // defined(Q_OS_SYMBIAN) |
346 #endif // defined(Q_OS_SYMBIAN) |
347 |
347 |
348 /*! |
348 /*! |
349 Constructor. |
349 Constructs HbDeviceDialog. |
350 |
350 |
351 \param f Contains the construct flags. See DeviceDialogFlag |
351 \param f Contains the construct flags. See DeviceDialogFlag |
352 \param parent The parent pointer. |
352 \param parent Parent pointer. |
353 |
353 |
354 HbDeviceDialog can be allocated on the stack if no signals are to be connected. The Device dialog |
354 HbDeviceDialog can be allocated on the stack if no signals are to be connected. The Device dialog |
355 service keeps dialogs launched when the object goes out of scope. If any signals |
355 service keeps dialogs launched when the object goes out of scope. If any signals |
356 are connected, the device dialog service will clean all dialogs launched when the instance is |
356 are connected, the device dialog service will clean all dialogs launched when the instance is |
357 deleted. In this case the object must remain in existence until the dialog widget is |
357 deleted. In this case the object must remain in existence until the dialog widget is |
364 d->q_ptr = this; |
364 d->q_ptr = this; |
365 d->init(f); |
365 d->init(f); |
366 } |
366 } |
367 |
367 |
368 /*! |
368 /*! |
369 Constructor required by the shared d-pointer paradigm. |
369 Constructs HbDeviceDialog. Allows class derivation by shared d-pointer paradigm. |
370 */ |
370 */ |
371 HbDeviceDialog::HbDeviceDialog(HbDeviceDialogPrivate &dd, DeviceDialogFlags f, QObject *parent) : |
371 HbDeviceDialog::HbDeviceDialog(HbDeviceDialogPrivate &dd, DeviceDialogFlags f, QObject *parent) : |
372 QObject(parent), d_ptr(&dd) |
372 QObject(parent), d_ptr(&dd) |
373 { |
373 { |
374 Q_D(HbDeviceDialog); |
374 Q_D(HbDeviceDialog); |
375 d->q_ptr = this; |
375 d->q_ptr = this; |
376 d->init(f); |
376 d->init(f); |
377 } |
377 } |
378 |
378 |
379 /*! |
379 /*! |
380 Destructor. |
380 Destructs HbDeviceDialog. The sialog launched by show() is closed if deviceDialogClosed() |
|
381 or dataReceived() signals are connected to by an application. Otherwise the dialog is |
|
382 left executing and should close itself by timeout. |
381 */ |
383 */ |
382 HbDeviceDialog::~HbDeviceDialog() |
384 HbDeviceDialog::~HbDeviceDialog() |
383 { |
385 { |
384 delete d_ptr; |
386 delete d_ptr; |
385 } |
387 } |