uifw/AvKon/src/AknVolumePopup.cpp
branchRCL_3
changeset 56 d48ab3b357f1
parent 55 aecbbf00d063
child 72 a5e7a4f63858
equal deleted inserted replaced
55:aecbbf00d063 56:d48ab3b357f1
   380     TInt sliderType = reader.ReadInt16();
   380     TInt sliderType = reader.ReadInt16();
   381     if ( sliderType == EAknSliderWithFeedbackStyle )
   381     if ( sliderType == EAknSliderWithFeedbackStyle )
   382         {
   382         {
   383         TInt feedbackStyle = (TAknFeedbackStyle)reader.ReadInt16();
   383         TInt feedbackStyle = (TAknFeedbackStyle)reader.ReadInt16();
   384         iFlags = reader.ReadInt16();
   384         iFlags = reader.ReadInt16();
       
   385         reader.Rewind( 4 ); // Rewind to the beginning, then construct slider.
   385         }
   386         }
   386     else
   387     else
   387         {
   388         {
   388         iFlags = sliderType;
   389         iFlags = sliderType;
   389         }
   390         }
   519             iExt->VolumeControl()->SetContainerWindowL(*this);
   520             iExt->VolumeControl()->SetContainerWindowL(*this);
   520         iExt->iSliderControl->ConstructFromResourceL(this, 0, reader);
   521         iExt->iSliderControl->ConstructFromResourceL(this, 0, reader);
   521         iExt->TryLoadDefaultSliderVolumeBitmap();
   522         iExt->TryLoadDefaultSliderVolumeBitmap();
   522         iExt->iSliderControl->ReportMarkerDragEvent( ETrue );
   523         iExt->iSliderControl->ReportMarkerDragEvent( ETrue );
   523         iExt->iSliderControl->SuppressDrawing( ETrue );
   524         iExt->iSliderControl->SuppressDrawing( ETrue );
   524        }           
   525         }
   525     else
   526     else
   526         {
   527         {
   527         iExt->iSliderControl = new( ELeave )CAknSlider;
   528         iExt->iSliderControl = new( ELeave )CAknSlider;
   528         iExt->iSliderControl->SetBackground( this );
   529         iExt->iSliderControl->SetBackground( this );
   529 
   530 
  1446             }
  1447             }
  1447         } 
  1448         } 
  1448    
  1449    
  1449     if ( iVisible )
  1450     if ( iVisible )
  1450         {
  1451         {
  1451         SetVisibilityL( ETrue );
  1452         TRAP_IGNORE(SetVisibilityL( ETrue ));
  1452         DrawDeferred();
  1453         DrawDeferred();
  1453         }
  1454         }
  1454     }
  1455     }
  1455 
  1456 
  1456 // ----------------------------------------------------------------------------
  1457 // ----------------------------------------------------------------------------
  1716 // ---------------------------------------------------------------------------
  1717 // ---------------------------------------------------------------------------
  1717 //    
  1718 //    
  1718 EXPORT_C void CAknVolumePopup::UseMutedIcon( TBool aFlag )
  1719 EXPORT_C void CAknVolumePopup::UseMutedIcon( TBool aFlag )
  1719     {
  1720     {
  1720     iExt->iUseMutedIcon = aFlag;
  1721     iExt->iUseMutedIcon = aFlag;
  1721     CreateSpeakerL();
  1722     TRAP_IGNORE(CreateSpeakerL());
  1722     }
  1723     }
  1723 
  1724 
  1724 // ---------------------------------------------------------------------------
  1725 // ---------------------------------------------------------------------------
  1725 // CAknVolumePopup::SetSpeakerMuted
  1726 // CAknVolumePopup::SetSpeakerMuted
  1726 // ---------------------------------------------------------------------------
  1727 // ---------------------------------------------------------------------------