72 bool ok = false; |
73 bool ok = false; |
73 |
74 |
74 mLoader->load(DOCML_BT_RECV_PRGRS_DIALOG, &ok); |
75 mLoader->load(DOCML_BT_RECV_PRGRS_DIALOG, &ok); |
75 if(ok) |
76 if(ok) |
76 { |
77 { |
77 mDialog = qobject_cast<HbDialog*>(mLoader->findWidget("senddialog")); |
78 mDialog = qobject_cast<HbDialog*>(mLoader->findWidget("receiveProgressDialog")); |
78 mHeading = qobject_cast<HbLabel*>(mLoader->findWidget("heading")); |
79 mHeading = qobject_cast<HbLabel*>(mLoader->findWidget("receiveProgressHeading")); |
79 |
80 |
80 mFileName = qobject_cast<HbLabel*>(mLoader->findWidget("fileName")); |
81 mFileName = qobject_cast<HbLabel*>(mLoader->findWidget("fileName")); |
81 mFileSize = qobject_cast<HbLabel*>(mLoader->findWidget("fileSize")); |
82 mFileSize = qobject_cast<HbLabel*>(mLoader->findWidget("fileSize")); |
82 mFileCount = qobject_cast<HbLabel*>(mLoader->findWidget("fileCount_label")); |
83 mFileCount = qobject_cast<HbLabel*>(mLoader->findWidget("fileCount")); |
83 mFileCount->setVisible(false); |
84 mFileCount->setVisible(false); |
84 |
85 |
85 //TODO - set icon based on the file icon. |
86 //TODO - set icon based on the file icon. |
86 |
87 |
87 mHide = qobject_cast<HbAction*>(mLoader->findObject("hideaction")); |
88 mHide = qobject_cast<HbAction*>(mLoader->findObject("hideAction")); |
88 mCancel = qobject_cast<HbAction*>(mLoader->findObject("cancelaction")); |
89 mCancel = qobject_cast<HbAction*>(mLoader->findObject("cancelAction")); |
89 |
90 |
90 mProgressBar = qobject_cast<HbProgressBar*>(mLoader->findWidget("horizontalProgressBar")); |
91 mProgressBar = qobject_cast<HbProgressBar*>(mLoader->findWidget("receiveProgressBar")); |
91 |
92 |
92 int dialogType = parameters.value(QString::number(TBluetoothDialogParams::EDialogTitle)).toInt(); |
93 int dialogType = parameters.value(QString::number(TBluetoothDialogParams::EDialogTitle)).toInt(); |
93 switch(dialogType) |
94 switch(dialogType) |
94 { |
95 { |
95 case TBluetoothDialogParams::EReceive: |
96 case TBluetoothDialogParams::EReceive: |