Le lundi 06 octobre 2008 à 07:15 -0600, Francis E Reyes a écrit : > Could someone tell me how I could go about registering a plugin (say > the weather plugin) as a service provider (appears under the service > menu). > > The tutorial treats it as a frontend and thus does not appear with the > rest of elisa. >
You are confused by the component naming ;) A service_provider in Elisa is a bit like a daemon in UNIX terminology. It's doing things on the background and can be started/stopped (ex: http server, ...). The current weather plugin ships a resource_provider. Resource_providers in elisa are usually integrated in the UI using controllers. So if you want a "weather" menu in the services Elisa menu, you need to hook a decorator on the controller mapped to the services menu. That decorator will add the new menu entry. Then when you activate that menu, a new controller would be created, making use of the resource_provider to display its data using widgets. There are various examples of this pattern for instance the DAAP plugin or the iPod plugin... > Thanks > > FR > > --------------------------------------------- > Francis Reyes M.Sc. > 215 UCB > University of Colorado at Boulder > > gpg --keyserver pgp.mit.edu --recv-keys 67BA8D5D > > 8AE2 F2F4 90F7 9640 28BC 686F 78FD 6669 67BA 8D5D
