Aza. Will do as soon as I have something working.
Atul: on the version I have installed (latest/1.4), looking through
the source code of the setup module, I do not see a feedManager.
Instead install defaults seems to be using the linkRelCodeService. I
am using the wrong version of the extension/source?
Thank you.
Edwin
-- snippet from setup module --
__installDefaults: function installDefaults(linkRelCodeService) {
let baseLocalUri = this.getBaseUri() + "standard-feeds/";
let baseUri;
if (this.isInstalledAsXpi()) {
var STANDARD_FEEDS_PREF =
"extensions.ubiquity.standardFeedsUri";
baseUri = Application.prefs.getValue(STANDARD_FEEDS_PREF, "");
} else
baseUri = baseLocalUri;
linkRelCodeService.installDefaults(baseUri,
baseLocalUri,
this.STANDARD_FEEDS);
}
On Jan 12, 10:20 am, Aza <[email protected]> wrote:
> Edwin,
>
> If you get something working -- it would be wonderful if you could add a
> little blurb on it in the Author Tutorial.
>
> https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.1_Author_Tutorial
>
> Thanks!
>
> -- aza | ɐzɐ --
>
> On Mon, Jan 12, 2009 at 10:06 AM, Edwin Khodabakchian <
>
> [email protected]> wrote:
>
> > Thank you very much for your responsiveness and the code sample. I am
> > going to explore this today and try to build a small prototype. -Edwin
>
> > On Jan 12, 9:25 am, Atul Varma <[email protected]> wrote:
> > > Hi Edwin,
>
> > > Right now the easiest way to do this with 0.2pre is to obtain the feed
> > > manager from Ubiquity and use it to subscribe to a new feed for the
> > > user. This will probably go something like:
>
> > > var jsm = {};
> > > Components.utils.import("resource://ubiquity/modules/setup.js", jsm);
> > > jsm.UbiquitySetup.feedManager.addSubscribedFeed(feedInfo);
>
> > > For the 'feedInfo' parameter above, take a look at the code for
> > > 'installDefaults()' in default_feed_plugin.js. Let me know if you have
> > > any other questions... We'll probably provide a cleaner API for this
> > > soon too, I imagine.
>
> > > - Atul
>
> > > On 1/12/09 9:12 AM, Edwin Khodabakchian wrote:
>
> > > > Hi, My name is Edwin Khodabakchian. I am one of the contributors to
> > > > the feedly project. I am currently exploring integrating feedly with
> > > > Ubiquity and I have a question: is there an internal API for a firefox
> > > > extension to programmatically register a command? I am going to take a
> > > > look at the source but I through I might ask first.
> > > > Thank you. -Edwin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---