diff -r 9fdd9acc0f5a -r 29d06ba03163 mypackage_wrt/Bugzilla.js --- a/mypackage_wrt/Bugzilla.js Fri May 07 14:27:09 2010 +0100 +++ b/mypackage_wrt/Bugzilla.js Mon May 10 09:27:55 2010 +0100 @@ -20,6 +20,7 @@ var features_presenter; var proposed_presenter; var mybuilds; +var mercurial_reader = null; // Bugzilla access @@ -32,9 +33,9 @@ this.ProposedButton = new NavigationButton (1,"right.gif", proposedtext); this.featuresButton = new NavigationButton (1,"right.gif", featurestext); this.BuildButton = new NavigationButton (1,"right.gif", "Package Build Results"); + this.MercurialButton = new NavigationButton (1,"right.gif", "Latest Changes in Hg"); this.ForumButton = new NavigationButton (1,"right.gif", "My Discussion Forum"); - var self = this; @@ -73,6 +74,15 @@ }); this.addControl(this.BuildButton); + + + this.MercurialButton.addEventListener("ActionPerformed", function(){ + self.readmercurial(); + }); + + this.addControl(this.MercurialButton); + + this.ForumButton.addEventListener("ActionPerformed", function(){ self.readforum(); }); @@ -99,7 +109,7 @@ self.features(); mylabel.setText(Packageid); mybuilds.update(true); - } + } } //http://developer.symbian.org/bugs/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&content=test&field-1-0-0=bug_status&field-1-1-0=product&field-1-2-0=content&product=classicui&query_format=specific&remaction=&type-1-0-0=anyexact&type-1-1-0=anyexact&type-1-2-0=matches&value-1-0-0=UNCONFIRMED%2CNEW%2CASSIGNED&value-1-1-0=classicui&value-1-2-0=test&title=Bug%20List&ctype=atom @@ -208,6 +218,20 @@ } } + +BugzillaSearchPanel.prototype.readmercurial = function() { + + if (!mercurialUrl) { + PackageMercurialUrl(); + } + + var title = "Mercurial FCL " + Packageid; + + mercurial_reader = new RssReader(title, mercurialPackageUrl, new MercurialFeedPresenter(null), this, parseRepoFeed); + debuglog.debug ("accessing mercurial package url: "+ mercurialPackageUrl); + mercurial_reader.show(); + +} function parseBugzillaFeed(broker, responseStatus, xmlDoc) { if (responseStatus == 200 && xmlDoc != null) { // node ref for iterating