[maemo-developers] Fremantle: Opening URLs and local files
From: Faheem Pervez trippin1 at gmail.comDate: Thu Sep 17 19:02:37 EEST 2009
- Previous message: Fremantle: Opening URLs and local files
- Next message: Fremantle: Opening URLs and local files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>
- Previous message: Fremantle: Opening URLs and local files
- Next message: Fremantle: Opening URLs and local files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
