Reworked track settings.
[demorecorder] / src / Utilities.vala
1 /*  Demo Recorder for MAEMO 5
2 *   Copyright (C) 2010 Dru Moore <usr@dru-id.co.uk>
3 *   This program is free software; you can redistribute it and/or modify
4 *   it under the terms of the GNU General Public License version 2,
5 *   or (at your option) any later version, as published by the Free
6 *   Software Foundation
7 *
8 *   This program is distributed in the hope that it will be useful,
9 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
10 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 *   GNU General Public License for more details
12 *
13 *   You should have received a copy of the GNU General Public
14 *   License along with this program; if not, write to the
15 *   Free Software Foundation, Inc.,
16 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 */
18 namespace IdWorks {
19
20 public static class Utilities {
21
22   
23   public static Osso.Rpc open_url(string url) {
24     Osso.Context osso_context = new Osso.Context("DemoRecorder", "0.1", false, null);
25     Osso.Rpc ret;
26     osso_context.rpc_run("com.nokia.osso_browser",
27                          "/com/nokia/osso_browser",
28                          "com.nokia.osso_browser",
29                          "open_new_window",
30                          out ret, DBus.RawType.STRING, url);
31                          osso_context = null;
32     return ret;
33   }
34   
35 }
36   
37 }