svnno****@sourc*****
svnno****@sourc*****
2008年 1月 5日 (土) 00:12:54 JST
Revision: 307 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=307 Author: flyson Date: 2008-01-05 00:12:53 +0900 (Sat, 05 Jan 2008) Log Message: ----------- "b2rIGlobalService:quit" notify 通知をで b2rServer 終了 Modified Paths: -------------- trunk/bbs2chreader/components/b2rServer.js -------------- next part -------------- Modified: trunk/bbs2chreader/components/b2rServer.js =================================================================== --- trunk/bbs2chreader/components/b2rServer.js 2008-01-04 14:55:42 UTC (rev 306) +++ trunk/bbs2chreader/components/b2rServer.js 2008-01-04 15:12:53 UTC (rev 307) @@ -214,13 +214,9 @@ switch(aTopic){ case "app-startup": os.addObserver(this, "network:offline-status-changed", false); - os.addObserver(this, "final-ui-startup", false); - os.addObserver(this, "xpcom-shutdown", false); + os.addObserver(this, "b2rIGlobalService:startup", false); + os.addObserver(this, "b2rIGlobalService:quit", false); break; - case "final-ui-startup": - os.removeObserver(this, "final-ui-startup"); - this.start(); - break; case "network:offline-status-changed": if(aData == "online"){ this.start(); @@ -228,9 +224,13 @@ this.stop(); } break; - case "xpcom-shutdown": + case "b2rIGlobalService:startup": + os.removeObserver(this, "b2rIGlobalService:startup"); + this.start(); + break; + case "b2rIGlobalService:quit": this.stop(); - os.removeObserver(this, "xpcom-shutdown"); + os.removeObserver(this, "b2rIGlobalService:quit"); os.removeObserver(this, "network:offline-status-changed"); break; } @@ -333,12 +333,8 @@ case "app-startup": os.addObserver(this, "network:offline-status-changed", false); os.addObserver(this, "b2rIGlobalService:startup", false); - os.addObserver(this, "xpcom-shutdown", false); + os.addObserver(this, "b2rIGlobalService:quit", false); break; - case "b2rIGlobalService:startup": - os.removeObserver(this, "b2rIGlobalService:startup"); - this.start(); - break; case "network:offline-status-changed": if(aData == "online"){ this.start(); @@ -346,9 +342,13 @@ this.stop(); } break; - case "xpcom-shutdown": + case "b2rIGlobalService:startup": + os.removeObserver(this, "b2rIGlobalService:startup"); + this.start(); + break; + case "b2rIGlobalService:quit": this.stop(); - os.removeObserver(this, "xpcom-shutdown"); + os.removeObserver(this, "b2rIGlobalService:quit"); os.removeObserver(this, "network:offline-status-changed"); break; }