equal
deleted
inserted
replaced
170 // by default use selected items |
170 // by default use selected items |
171 QList<int> listIndices = mMainView.listSelectionIndexes(); |
171 QList<int> listIndices = mMainView.listSelectionIndexes(); |
172 if (listIndices.count() > 0) |
172 if (listIndices.count() > 0) |
173 { |
173 { |
174 QString message = QString("Stop %1 selections?").arg( listIndices.count() ); |
174 QString message = QString("Stop %1 selections?").arg( listIndices.count() ); |
175 HbMessageBox::question(message, this, SLOT(StopLoadYesNoDialogClosed(HbAction *))); |
175 HbMessageBox::question(message, this, SLOT(StopLoadYesNoDialogClosed(HbAction *)), HbMessageBox::Yes|HbMessageBox::No); |
176 } |
176 } |
177 else{ |
177 else{ |
178 TInt currentItemIndex = mMainView.currentItemIndex(); |
178 TInt currentItemIndex = mMainView.currentItemIndex(); |
179 if (mEngine->LoadItemCount() > currentItemIndex && currentItemIndex >= 0) |
179 if (mEngine->LoadItemCount() > currentItemIndex && currentItemIndex >= 0) |
180 { |
180 { |
181 QString message("Stop highlighted selections?"); |
181 QString message("Stop highlighted selections?"); |
182 HbMessageBox::question(message, this, SLOT(StopLoadYesNoDialogClosed(HbAction *))); |
182 HbMessageBox::question(message, this, SLOT(StopLoadYesNoDialogClosed(HbAction *)), HbMessageBox::Yes|HbMessageBox::No); |
183 } |
183 } |
184 } |
184 } |
185 return true; |
185 return true; |
186 } |
186 } |
187 |
187 |
350 return attributes; |
350 return attributes; |
351 } |
351 } |
352 |
352 |
353 // --------------------------------------------------------------------------- |
353 // --------------------------------------------------------------------------- |
354 |
354 |
355 void EngineWrapper::setCpuLoadAttributes(CPULoadAttributes attributes) |
355 void EngineWrapper::setCpuLoadAttributes(const CPULoadAttributes& attributes) |
356 { |
356 { |
357 TCPULoadAttributes tCpuLoadAttributes; |
357 TCPULoadAttributes tCpuLoadAttributes; |
358 |
358 |
359 tCpuLoadAttributes.iId = attributes.mId; |
359 tCpuLoadAttributes.iId = attributes.mId; |
360 tCpuLoadAttributes.iPriority = attributes.mPriority; |
360 tCpuLoadAttributes.iPriority = attributes.mPriority; |
404 return attributes; |
404 return attributes; |
405 } |
405 } |
406 |
406 |
407 // --------------------------------------------------------------------------- |
407 // --------------------------------------------------------------------------- |
408 |
408 |
409 void EngineWrapper::setMemoryEatAttributes(MemoryEatAttributes attributes) |
409 void EngineWrapper::setMemoryEatAttributes(const MemoryEatAttributes& attributes) |
410 { |
410 { |
411 TMemoryEatAttributes tMemoryEatAttributes = mEngine->GetMemoryEatAttributes();//TMemoryEatAttributes tMemoryEatAttributes; |
411 TMemoryEatAttributes tMemoryEatAttributes = mEngine->GetMemoryEatAttributes();//TMemoryEatAttributes tMemoryEatAttributes; |
412 |
412 |
413 tMemoryEatAttributes.iId = attributes.mId; |
413 tMemoryEatAttributes.iId = attributes.mId; |
414 tMemoryEatAttributes.iPriority = attributes.mPriority; |
414 tMemoryEatAttributes.iPriority = attributes.mPriority; |
454 return attributes; |
454 return attributes; |
455 } |
455 } |
456 |
456 |
457 // --------------------------------------------------------------------------- |
457 // --------------------------------------------------------------------------- |
458 |
458 |
459 void EngineWrapper::setPhoneCallAttributes(PhoneCallAttributes attributes) |
459 void EngineWrapper::setPhoneCallAttributes(const PhoneCallAttributes& attributes) |
460 { |
460 { |
461 TPhoneCallAttributes tPhoneCallAttributes = mEngine->GetPhoneCallAttributes(); //TPhoneCallAttributes tPhoneCallAttributes; |
461 TPhoneCallAttributes tPhoneCallAttributes = mEngine->GetPhoneCallAttributes(); //TPhoneCallAttributes tPhoneCallAttributes; |
462 |
462 |
463 tPhoneCallAttributes.iId = attributes.mId; |
463 tPhoneCallAttributes.iId = attributes.mId; |
464 tPhoneCallAttributes.iPriority = attributes.mPriority; |
464 tPhoneCallAttributes.iPriority = attributes.mPriority; |
481 NetConnAttributes attributes; |
481 NetConnAttributes attributes; |
482 |
482 |
483 attributes.mId = tNetConnAttributes.iId; |
483 attributes.mId = tNetConnAttributes.iId; |
484 attributes.mPriority = tNetConnAttributes.iPriority; |
484 attributes.mPriority = tNetConnAttributes.iPriority; |
485 |
485 |
486 TBuf<128> dest; |
486 attributes.mDestination = QString::fromUtf16(tNetConnAttributes.iDestination.Ptr(), tNetConnAttributes.iDestination.Length()); |
487 dest.Copy(tNetConnAttributes.iDestination); |
|
488 attributes.mDestination = QString((QChar*)dest.Ptr(), dest.Length()); |
|
489 |
487 |
490 attributes.mIdle = tNetConnAttributes.iIdle; |
488 attributes.mIdle = tNetConnAttributes.iIdle; |
491 attributes.mRandomVariance = tNetConnAttributes.iRandomVariance; |
489 attributes.mRandomVariance = tNetConnAttributes.iRandomVariance; |
492 return attributes; |
490 return attributes; |
493 } |
491 } |
494 |
492 |
495 // --------------------------------------------------------------------------- |
493 // --------------------------------------------------------------------------- |
496 |
494 |
497 void EngineWrapper::setNetConnAttributes(NetConnAttributes attributes) |
495 void EngineWrapper::setNetConnAttributes(const NetConnAttributes& attributes) |
498 { |
496 { |
499 TNetConnAttributes tNetConnAttributes = mEngine->GetNetConnAttributes(); //TNetConnAttributes tNetConnAttributes; |
497 TNetConnAttributes tNetConnAttributes = mEngine->GetNetConnAttributes(); //TNetConnAttributes tNetConnAttributes; |
500 |
498 |
501 tNetConnAttributes.iId = attributes.mId; |
499 tNetConnAttributes.iId = attributes.mId; |
502 tNetConnAttributes.iPriority = attributes.mPriority; |
500 tNetConnAttributes.iPriority = attributes.mPriority; |
524 return attributes; |
522 return attributes; |
525 } |
523 } |
526 |
524 |
527 // --------------------------------------------------------------------------- |
525 // --------------------------------------------------------------------------- |
528 |
526 |
529 void EngineWrapper::setKeyPressAttributes(KeyPressAttributes attributes) |
527 void EngineWrapper::setKeyPressAttributes(const KeyPressAttributes& attributes) |
530 { |
528 { |
531 TKeyPressAttributes tKeyPressAttributes = mEngine->GetKeyPressAttributes(); //TKeyPressAttributes tKeyPressAttributes; |
529 TKeyPressAttributes tKeyPressAttributes = mEngine->GetKeyPressAttributes(); //TKeyPressAttributes tKeyPressAttributes; |
532 |
530 |
533 tKeyPressAttributes.iId = attributes.mId; |
531 tKeyPressAttributes.iId = attributes.mId; |
534 tKeyPressAttributes.iPriority = attributes.mPriority; |
532 tKeyPressAttributes.iPriority = attributes.mPriority; |
552 return attributes; |
550 return attributes; |
553 } |
551 } |
554 |
552 |
555 // --------------------------------------------------------------------------- |
553 // --------------------------------------------------------------------------- |
556 |
554 |
557 void EngineWrapper::setPointerEventAttributes(PointerEventAttributes attributes) |
555 void EngineWrapper::setPointerEventAttributes(const PointerEventAttributes& attributes) |
558 { |
556 { |
559 TPointerEventAttributes tPointerEventAttributes = mEngine->GetPointerEventAttributes();//TPointerEventAttributes tPointerEventAttributes; |
557 TPointerEventAttributes tPointerEventAttributes = mEngine->GetPointerEventAttributes();//TPointerEventAttributes tPointerEventAttributes; |
560 |
558 |
561 tPointerEventAttributes.iId = attributes.mId; |
559 tPointerEventAttributes.iId = attributes.mId; |
562 tPointerEventAttributes.iPriority = attributes.mPriority; |
560 tPointerEventAttributes.iPriority = attributes.mPriority; |
588 return attributes; |
586 return attributes; |
589 } |
587 } |
590 |
588 |
591 // --------------------------------------------------------------------------- |
589 // --------------------------------------------------------------------------- |
592 |
590 |
593 void EngineWrapper::setMessageAttributes(MessageAttributes attributes) |
591 void EngineWrapper::setMessageAttributes(const MessageAttributes& attributes) |
594 { |
592 { |
595 TMessageAttributes tMessageAttributes = mEngine->GetMessageAttributes();//TMessageAttributes tMessageAttributes; |
593 TMessageAttributes tMessageAttributes = mEngine->GetMessageAttributes();//TMessageAttributes tMessageAttributes; |
596 |
594 |
597 tMessageAttributes.iId = attributes.mId; |
595 tMessageAttributes.iId = attributes.mId; |
598 tMessageAttributes.iMessageType = attributes.mMessageType; |
596 tMessageAttributes.iMessageType = attributes.mMessageType; |
627 return attributes; |
625 return attributes; |
628 } |
626 } |
629 |
627 |
630 // --------------------------------------------------------------------------- |
628 // --------------------------------------------------------------------------- |
631 |
629 |
632 void EngineWrapper::setApplicationsAttributes(ApplicationsAttributes attributes) |
630 void EngineWrapper::setApplicationsAttributes(const ApplicationsAttributes& attributes) |
633 { |
631 { |
634 TApplicationsAttributes tApplicationsAttributes = mEngine->GetApplicationsAttributes(); //TApplicationsAttributes tApplicationsAttributes; |
632 TApplicationsAttributes tApplicationsAttributes = mEngine->GetApplicationsAttributes(); //TApplicationsAttributes tApplicationsAttributes; |
635 |
633 |
636 tApplicationsAttributes.iId = attributes.mId; |
634 tApplicationsAttributes.iId = attributes.mId; |
637 tApplicationsAttributes.iPriority = attributes.mPriority; |
635 tApplicationsAttributes.iPriority = attributes.mPriority; |
662 return attributes; |
660 return attributes; |
663 } |
661 } |
664 |
662 |
665 // --------------------------------------------------------------------------- |
663 // --------------------------------------------------------------------------- |
666 |
664 |
667 void EngineWrapper::setPhotoCaptureAttributes(PhotoCaptureAttributes attributes) |
665 void EngineWrapper::setPhotoCaptureAttributes(const PhotoCaptureAttributes& attributes) |
668 { |
666 { |
669 TPhotoCaptureAttributes tPhotoCaptureAttributes; |
667 TPhotoCaptureAttributes tPhotoCaptureAttributes; |
670 |
668 |
671 tPhotoCaptureAttributes.iId = attributes.mId; |
669 tPhotoCaptureAttributes.iId = attributes.mId; |
672 tPhotoCaptureAttributes.iPriority = attributes.mPriority; |
670 tPhotoCaptureAttributes.iPriority = attributes.mPriority; |
687 |
685 |
688 attributes.mId = tBluetoothAttributes.iId; |
686 attributes.mId = tBluetoothAttributes.iId; |
689 attributes.mPriority = tBluetoothAttributes.iPriority; |
687 attributes.mPriority = tBluetoothAttributes.iPriority; |
690 attributes.mIdle = tBluetoothAttributes.iIdle; |
688 attributes.mIdle = tBluetoothAttributes.iIdle; |
691 attributes.mRandomVariance = tBluetoothAttributes.iRandomVariance; |
689 attributes.mRandomVariance = tBluetoothAttributes.iRandomVariance; |
692 return attributes; |
690 attributes.mBluetoothSupported = tBluetoothAttributes.iBluetoothSupported ? true : false; |
693 } |
691 return attributes; |
694 |
692 } |
695 // --------------------------------------------------------------------------- |
693 |
696 |
694 // --------------------------------------------------------------------------- |
697 void EngineWrapper::setBluetoothAttributes(BluetoothAttributes attributes) |
695 |
|
696 void EngineWrapper::setBluetoothAttributes(const BluetoothAttributes& attributes) |
698 { |
697 { |
699 TBluetoothAttributes tBluetoothAttributes; |
698 TBluetoothAttributes tBluetoothAttributes; |
700 |
699 |
701 tBluetoothAttributes.iId = attributes.mId; |
700 tBluetoothAttributes.iId = attributes.mId; |
702 tBluetoothAttributes.iPriority = attributes.mPriority; |
701 tBluetoothAttributes.iPriority = attributes.mPriority; |