1 /*******************************************************************************
2 * Copyright (c) 2007-2008 INdT.
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU Lesser General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
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 Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 ============================================================================
23 Description : CPP Hello World
24 ============================================================================
32 #include <glibmm/i18n.h> /* Must be after <iostream> */
36 int main(int argc, char *argv[])
38 /* i18n initialization */
39 bindtextdomain(GETTEXT_PACKAGE, HELLOWORLD_LOCALEDIR);
40 bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
41 textdomain(GETTEXT_PACKAGE);
43 /* Initialize gtkmm and checks the arguments passed to your application */
44 Gtk::Main main_loop(&argc, &argv);
46 /* Initialize the hildonmm libraries */
49 /* Initialize libosso environment */
50 osso_context_t* osso_context = osso_initialize("maevies", "0.1", TRUE, 0);
52 std::cerr << "osso_initialize() failed." << std::endl;
54 /* Set the application name */
55 Glib::set_application_name(PACKAGE_STRING);
57 /* Create an object for the main Window and attach it to the program */
59 Hildon::Program::get_instance()->add_window(window);
61 /* Begin the main application */
62 main_loop.run(window);
64 /* Clean the libosso environment */
65 osso_deinitialize(osso_context);