From d8c0564edb45ed529bd07edc32345267702bdee5 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 8 Feb 2001 23:44:47 +0000 Subject: [PATCH] NOT PART OF THE BUILD. --- mailnews/base/public/nsIMsgDBView.idl | 6 +++ mailnews/base/resources/content/dbviewtest.js | 11 +++- .../base/resources/content/dbviewtest.xul | 3 ++ mailnews/base/src/nsMsgDBView.cpp | 53 +++++++++++++++++-- 4 files changed, 67 insertions(+), 6 deletions(-) diff --git a/mailnews/base/public/nsIMsgDBView.idl b/mailnews/base/public/nsIMsgDBView.idl index 1c9117f4ea3b..a230b35d1dd6 100644 --- a/mailnews/base/public/nsIMsgDBView.idl +++ b/mailnews/base/public/nsIMsgDBView.idl @@ -144,4 +144,10 @@ interface nsIMsgDBView : nsISupports void addKeys(out nsMsgKey pKeys, out long pFlags, in string pLevels, in nsMsgViewSortTypeValue sortType, in long numKeysToAdd); void sort(in nsMsgViewSortTypeValue sortType, in nsMsgViewSortOrderValue sortOrder); + + /** + * temporary, so I can test from my js + */ + void populateView(); + void dumpView(); }; diff --git a/mailnews/base/resources/content/dbviewtest.js b/mailnews/base/resources/content/dbviewtest.js index f4797bab78a2..c19a4ab91d8c 100644 --- a/mailnews/base/resources/content/dbviewtest.js +++ b/mailnews/base/resources/content/dbviewtest.js @@ -8,7 +8,6 @@ function createView() dump("dbview = " + dbview + "\n"); } - function sortDateAscending() { dbview.sort(nsMsgViewSortType.byDate,nsMsgViewSortOrder.ascending); @@ -28,3 +27,13 @@ function sortThreadedDescending() { dbview.sort(nsMsgViewSortType.byThread,nsMsgViewSortOrder.descending); } + +function dumpView() +{ + dbview.dumpView(); +} + +function populateView() +{ + dbview.populateView(); +} diff --git a/mailnews/base/resources/content/dbviewtest.xul b/mailnews/base/resources/content/dbviewtest.xul index f108ea051584..ec0dcf998e60 100644 --- a/mailnews/base/resources/content/dbviewtest.xul +++ b/mailnews/base/resources/content/dbviewtest.xul @@ -7,6 +7,9 @@