[Bbs2ch-cvs 212] [194] bbs2ch:thread: と bbs2ch : board-rss の廃止

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2007年 8月 10日 (金) 01:01:33 JST


Revision: 194
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=194
Author:   flyson
Date:     2007-08-10 01:01:33 +0900 (Fri, 10 Aug 2007)

Log Message:
-----------
bbs2ch:thread: と bbs2ch:board-rss の廃止

Removed Paths:
-------------
    trunk/bbs2chreader/chrome/content/bbs2chreader/board-rss.js
    trunk/bbs2chreader/chrome/content/bbs2chreader/thread.js
    trunk/bbs2chreader/components/nsBbs2chChannel.js

Deleted: trunk/bbs2chreader/chrome/content/bbs2chreader/board-rss.js
===================================================================
--- trunk/bbs2chreader/chrome/content/bbs2chreader/board-rss.js	2007-08-09 15:59:51 UTC (rev 193)
+++ trunk/bbs2chreader/chrome/content/bbs2chreader/board-rss.js	2007-08-09 16:01:33 UTC (rev 194)
@@ -1,58 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is bbs2chreader.
- *
- * The Initial Developer of the Original Code is
- * flyson.
- * Portions created by the Initial Developer are Copyright (C) 2004
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *    flyson <flyso****@users*****>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-
-function Bbs2chBoardRss(){
-}
-
-Bbs2chBoardRss.prototype = {
-
-	init: function(aChannel){
-		var rss = <rss version="0.91">
-			<channel>
-				<item>
-					<title>ライブブックマーク連携は廃止されました</title>
-					<link>about:blank</link>
-				</item>
-			</channel>
-		</rss>;
-		var respondStr = rss.toXMLString();
-		aChannel.requestRespond(respondStr, respondStr.length);
-		aChannel.requestEnd();
-	}
-
-}
\ No newline at end of file

Deleted: trunk/bbs2chreader/chrome/content/bbs2chreader/thread.js
===================================================================
--- trunk/bbs2chreader/chrome/content/bbs2chreader/thread.js	2007-08-09 15:59:51 UTC (rev 193)
+++ trunk/bbs2chreader/chrome/content/bbs2chreader/thread.js	2007-08-09 16:01:33 UTC (rev 194)
@@ -1,80 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is bbs2chreader.
- *
- * The Initial Developer of the Original Code is
- * flyson.
- * Portions created by the Initial Developer are Copyright (C) 2004
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *    flyson <flyso****@users*****>
- *    Nazo <loves****@hotma*****>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-
-function Bbs2chThread(){
-}
-
-Bbs2chThread.prototype = {
-
-	init: function(aChannel){
-			// スレッドの URL
-		var threadURLSpec = aChannel.URI.spec.replace(/^bbs2ch:thread:/, "");
-
-
-		var bbs2chService = Components.classes["@mozilla.org/bbs2ch-service;1"]
-					.getService(Components.interfaces.nsIBbs2chService);
-		var serverURL = "./thread/" + threadURLSpec;
-		serverURL = bbs2chService.serverURL.resolve(serverURL);
-
-		var html = <html>
-			<head>
-				<title>{threadURLSpec}</title>
-			</head>
-			<body>
-				<h2>スレッド表示の URL は変更されました</h2>
-				<ul style="font-size:small;">
-					<li id="newURL">æ–°URL : <a href={serverURL}>{serverURL}</a></li>
-					<li style="color:#999;">æ—§URL : bbs2ch:thread:{threadURLSpec}</li>
-				</ul>
-
-				<p style="font-size:small; border:1px solid #666; background-color:#EEE; margin:2em; padding:1em;">
-					bbs2chreader 0.4 から 2ch スレッドを開く URL が変更されました。
-					いままで version 0.2 をお使いになっていた方は、一度
-					<a href="http://bbs2ch.sourceforge.jp/?page=0%2E4%B0%DC%B9%D4%A5%AC%A5%A4%A5%C9">0.4 移行ガイド</a>
-					をお読みください。
-				</p>
-			</body>
-		</html>;
-
-		var respondStr =  html.toXMLString();
-		aChannel.requestRespond(respondStr, respondStr.length);
-		aChannel.requestEnd();
-	}
-
-}
\ No newline at end of file

Deleted: trunk/bbs2chreader/components/nsBbs2chChannel.js
===================================================================
--- trunk/bbs2chreader/components/nsBbs2chChannel.js	2007-08-09 15:59:51 UTC (rev 193)
+++ trunk/bbs2chreader/components/nsBbs2chChannel.js	2007-08-09 16:01:33 UTC (rev 194)
@@ -1,218 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is bbs2chreader.
- *
- * The Initial Developer of the Original Code is
- * flyson.
- * Portions created by the Initial Developer are Copyright (C) 2004
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *    flyson <flyso****@users*****>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-
-function nsBbs2chChannel(){
-}
-
-nsBbs2chChannel.prototype = {
-	QueryInterface: function(aIID){
-		if(aIID.equals(Components.interfaces.nsIBbs2chChannel))  return this;
-		if(aIID.equals(Components.interfaces.nsIChannel))  return this;
-		if(aIID.equals(Components.interfaces.nsIRequest))  return this;
-		if(aIID.equals(Components.interfaces.nsISupports)) return this;
-
-		throw Components.results.NS_ERROR_NO_INTERFACE;
-	},
-
-	URI: null,
-	originalURI: null,
-	contentCharset: "iso-8859-1",
-	contentType: "text/plain",
-	contentLength: -1,
-	loadFlags: null,
-	loadGroup: null,
-	name: null,
-	status: Components.results.NS_OK,
-	notificationCallbacks: null,
-	owner: null,
-
-	isPending: function(){
-		return this._isPending;
-	},
-
-	resume: function(){
-		throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
-	},
-
-	suspend: function(){
-		throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
-	},
-
-	open: function(){
-		throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
-	},
-
-	asyncOpen: function(aStreamListener, aContext){
-		this._streamListener = aStreamListener;
-		this._context = aContext;
-		if(this.loadGroup) this.loadGroup.addRequest(this, null);
-
-
-			// 呼び出し元のスレッド処理後にスタート
-		var timer = Components.classes["@mozilla.org/timer;1"]
-						.createInstance(Components.interfaces.nsITimer);
-		var timerCallback = {};
-		timerCallback._context = this;
-		timerCallback.observe = function(aTimer){
-			var context = this._context;
-			context.requestStart();
-			context._observer.init(context);
-		}
-		timer.init(timerCallback, 0, timer.TYPE_ONE_SHOT);
-	},
-
-	cancel: function(aStatus){
-		if(this._isPending){
-			this._isPending = false;
-
-			this._streamListener.onStopRequest(this, this._context, aStatus);
-
-			if(this.loadGroup){
-				try{
-					this.loadGroup.removeRequest(this, null, aStatus);
-				}catch(ex){}
-			}
-		}
-		this.status = aStatus;
-	},
-
-	init: function(aURI, aContentType, aContentCharset, aObserver){
-		this.URI = aURI;
-		this.originalURI = aURI;
-		this.name = aURI.spec;
-		this.contentType = aContentType;
-		this.contentCharset = aContentCharset;
-
-		this._observer = aObserver;
-		this._isPending = true;
-	},
-
-	requestStart: function(){
-		this._stringStream = Components.classes["@mozilla.org/io/string-input-stream;1"]
-					.createInstance(Components.interfaces.nsIStringInputStream);
-		this._currentSize = 0;
-		this._streamListener.onStartRequest(this, this._context);
-	},
-
-	requestRespond: function(aData, aDataLength){
-		this._stringStream.setData(aData, aDataLength);
-		this._streamListener.onDataAvailable(this, this._context,
-					this._stringStream, this._currentSize, aDataLength);
-		this._currentSize += aDataLength;
-	},
-
-	requestEnd: function(){
-		this._streamListener.onStopRequest(this, this._context, Components.results.NS_OK);
-		if(this.loadGroup){
-			try{
-				this.loadGroup.removeRequest(this, null, Components.results.NS_OK);
-			}catch(ex){}
-		}
-		this._stringStream.close();
-		this._stringStream = null;
-		this._streamListener = null;
-		this._context = null;
-		this._observer = null;
-		this.notificationCallbacks = null;
-		this._isPending = false;
-	}
-
-}
-
-
-
-
-// ********** ********* Component Registration ********** **********
-
-
-var Factory = {
-
-	createInstance: function (aOuter, aIID){
-		if(aOuter != null)
-			throw Components.results.NS_ERROR_NO_AGGREGATION;
-
-		if(aIID.equals(Components.interfaces.nsIBbs2chChannel))
-			return new nsBbs2chChannel();
-		if(aIID.equals(Components.interfaces.nsISupports))
-			return new nsBbs2chChannel();
-
-		throw Components.results.NS_ERROR_INVALID_ARG;
-	}
-
-}
-
-var Module = {
-
-	CONTRACTID: "@mozilla.org/bbs2ch-channel;1",
-	CID: Components.ID("{3478e4a6-fc01-4247-9e6b-af76c5a57db5}"),
-	CNAME: "nsBbs2chChannel js component",
-
-
-	registerSelf: function(aCompMgr, aFileSpec, aLocation, aType){
-		aCompMgr = aCompMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);
-		aCompMgr.registerFactoryLocation(this.CID, this.CNAME, this.CONTRACTID,
-											aFileSpec, aLocation, aType);
-	},
-
-
-	unregisterSelf: function(aCompMgr, aFileSpec, aLocation){
-		aCompMgr = aCompMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);
-	},
-
-
-	getClassObject: function(aCompMgr, aCID, aIID){
-		if(aCID.equals(this.CID))
-			return Factory;
-
-		if(!aIID.equals(Components.interfaces.nsIFactory))
-			throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
-		
-		throw Components.results.NS_ERROR_NO_INTERFACE;
-	},
-
-
-	canUnload: function(aCompMgr){
-		return true;
-	}
-
-}
-
-
-function NSGetModule(aCompMgr, aFileSpec){
-	return Module;
-}
\ No newline at end of file




bbs2ch-cvs メーリングリストの案内
Zurück zum Archiv-Index