From 77b87ee7b56cee4abe9046eeba65d675bd1603de Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Sat, 10 Jul 2004 22:07:39 +0000 Subject: [PATCH] Bug #250247 --> Framework work for News & Blog account settings. Add missing subscription CSS files to the branch. newsblog.js is now an account manager extension so it can overlay custom panels into the account manager. Implement "download new articles at startup". Implement Check for new articles every n minutes. Add a property on nsIMsgIncomingServer that allows the incoming server to specify the main account manager xul file that is loaded for that server instead of hard coding am-main.xul in the account manager data source. git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@159011 18797224-902f-48f8-a5cc-f745e15eee43 --- .../newsblog/content/am-newsblog.js | 35 +++++ .../newsblog/content/am-newsblog.xul | 65 +++++++++ .../extensions/newsblog/content/forumzilla.js | 78 ----------- .../newsblog/content/subscriptions.js | 39 +++--- .../newsblog/content/subscriptions.xul | 66 ++++----- .../mail/extensions/newsblog/content/utils.js | 2 +- mozilla/mail/extensions/newsblog/jar.mn | 4 + .../mail/extensions/newsblog/js/newsblog.js | 126 +++++++++++++----- .../newsblog/locale/am-newsblog.dtd | 8 ++ .../newsblog/locale/am-newsblog.properties | 2 + .../extensions/newsblog/skin/forumzilla.css | 6 - .../base/public/nsIMsgIncomingServer.idl | 2 + .../base/src/nsMsgAccountManagerDS.cpp | 27 ++-- .../base/util/nsMsgIncomingServer.cpp | 7 + .../local/src/nsMovemailIncomingServer.cpp | 7 + .../local/src/nsMovemailIncomingServer.h | 1 + .../mailnews/local/src/nsNoIncomingServer.cpp | 7 + .../mailnews/local/src/nsNoIncomingServer.h | 1 + .../local/src/nsRssIncomingServer.cpp | 50 ++++++- .../mailnews/local/src/nsRssIncomingServer.h | 2 + 20 files changed, 336 insertions(+), 199 deletions(-) create mode 100644 mozilla/mail/extensions/newsblog/content/am-newsblog.js create mode 100644 mozilla/mail/extensions/newsblog/content/am-newsblog.xul create mode 100644 mozilla/mail/extensions/newsblog/locale/am-newsblog.dtd create mode 100644 mozilla/mail/extensions/newsblog/locale/am-newsblog.properties diff --git a/mozilla/mail/extensions/newsblog/content/am-newsblog.js b/mozilla/mail/extensions/newsblog/content/am-newsblog.js new file mode 100644 index 00000000000..aa05c04a245 --- /dev/null +++ b/mozilla/mail/extensions/newsblog/content/am-newsblog.js @@ -0,0 +1,35 @@ +# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# ***** 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 News and Blogs Account Settings. +# +# Contributor(s): +# Scott MacGregor +# +# Alternatively, the contents of this file may be used under the terms of +# either of 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 onInit() +{ + // nothing to do here yet... +} diff --git a/mozilla/mail/extensions/newsblog/content/am-newsblog.xul b/mozilla/mail/extensions/newsblog/content/am-newsblog.xul new file mode 100644 index 00000000000..9bb2250f2f1 --- /dev/null +++ b/mozilla/mail/extensions/newsblog/content/am-newsblog.xul @@ -0,0 +1,65 @@ + +# ***** 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 News and Blogs Account Settings. +# +# Contributor(s): +# Scott MacGregor +# +# Alternatively, the contents of this file may be used under the terms of +# either of 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 ***** + + + + + + + +