[maemo-developers] Fremantle: Opening URLs and local files
From: Till Harbaum / Lists lists at harbaum.orgDate: Thu Sep 17 21:52:24 EEST 2009
- Previous message: Fremantle: Opening URLs and local files
- Next message: open source licensing of maemo 5 example code MIT vs GPL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, i am using tablet-browser-interface which imho exists for exactly this purpose: #include <tablet-browser-interface.h> osso_rpc_run_with_defaults(my_osso_context, "osso_browser", OSSO_BROWSER_OPEN_NEW_WINDOW_REQ, NULL, DBUS_TYPE_STRING, my_url, DBUS_TYPE_BOOLEAN, FALSE, DBUS_TYPE_INVALID); Till Am Donnerstag 17 September 2009 schrieb Faheem Pervez: > Hi, > > I'm a libosso whore so this is how I do it: > > #include <libosso.h> > > osso_context_t* osso_context; > osso_rpc_t* osso_retval = { 0 }; > char *open = "http://www.google.com"; > > osso_context = osso_initialize ("com.what.ever", "0.9.9", FALSE, NULL); > osso_rpc_run(osso_context, "com.nokia.osso_browser", > "/com/nokia/osso_browser", "com.nokia.osso_browser", > "open_new_window", osso_retval, DBUS_TYPE_STRING, open, > DBUS_TYPE_INVALID); > osso_deinitialize(osso_context); > > "open_new_window" does what it says on the tin: a new window is opened > with the URL supplied. You can also substitute that for "load_url" > which will, depending if a window is already open, a) load the link > given into a browser that is already open OR b) open a new window with > the link given. > > I've been naughty here and have hardcoded the method names etc. but > these are all defined in /usr/include/tablet-browser-interface.h > > And, yes, this works under Fremantle. ;) > > Best Regards, > Faheem > > On Thu, Sep 17, 2009 at 11:15 AM, Thomas Perl <th.perl at gmail.com> wrote: > > Hello! > > > > Is there a command-line utility that can be used or a D-Bus call? If so, > > where is the D-Bus call documented (sample code would be enough ;). > > > > Thanks, > > Thomas > > _______________________________________________ > > maemo-developers mailing list > > maemo-developers at maemo.org > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers >
- Previous message: Fremantle: Opening URLs and local files
- Next message: open source licensing of maemo 5 example code MIT vs GPL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]