+ initialize: function(parentElement, windowClass, uiName, options) {
+ this.parent(parentElement, windowClass, uiName, options);
+
+ this.soundInited = false;
+ this.soundReady = false;
+
+ this.setBeepOnMention(this.uiOptions.BEEP_ON_MENTION);
+ },
+ soundInit: function() {
+ if(this.soundInited)
+ return;
+ if(!$defined(Browser.Plugins.Flash) || Browser.Plugins.Flash.version < 8)
+ return;
+ this.soundInited = true;
+
+ this.soundPlayer = new qwebirc.sound.SoundPlayer();
+ this.soundPlayer.addEvent("ready", function() {
+ this.soundReady = true;
+ }.bind(this));
+ this.soundPlayer.go();
+ },
+ setBeepOnMention: function(value) {
+ if(value)
+ this.soundInit();
+ this.beepOnMention = value;
+ },
+ beep: function() {
+ if(!this.soundReady || !this.beepOnMention)
+ return;
+
+ this.soundPlayer.beep();
+ }
+});
+
+qwebirc.ui.QuakeNetUI = new Class({
+ Extends: qwebirc.ui.SoundUI,