Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCOptions::PreviewSoundFile ( eUserSound  usersound  )  [private]

Definition at line 954 of file dcoptions.cpp.

Referenced by slotPreviewSoundFileConnect(), slotPreviewSoundFileDisconnect(), slotPreviewSoundFileFirstReceive(), slotPreviewSoundFileReceive(), and slotPreviewSoundFileSend().

{
      QString file="";

      switch(usersound)
      {
            case eusCONNECT:
                  file = LineEdit_SOUNDFILECONNECT->text();
                  break;
            case eusDISCONNECT:
                  file = LineEdit_SOUNDFILEDISCONNECT->text();
                  break;
            case eusSEND:
                  file = LineEdit_SOUNDFILESEND->text();
                  break;
            case eusRECEIVE:
                  file = LineEdit_SOUNDFILERECEIVE->text();
                  break;
            case eusFIRSTRECEIVE:
                  file = LineEdit_SOUNDFILEFIRSTRECEIVE->text();
                  break;
            default:
                  break;
      }

      g_pConfig->PlaySound( file.ascii() );
}


Generated by  Doxygen 1.6.0   Back to index