2
* Copyright 2013 Canonical Ltd.
5
* Charles Kerr <charles.kerr@canonical.com>
7
* This program is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License version 3, as published
9
* by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranties of
13
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
* PURPOSE. See the GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
21
#include <glib/gi18n.h>
24
//#include "controller-ualc.h"
25
#include "controller-mock.h"
29
on_name_lost (Service * service G_GNUC_UNUSED, gpointer loop)
31
g_main_loop_quit (static_cast<GMainLoop*>(loop));
35
main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
39
/* boilerplate i18n */
40
setlocale (LC_ALL, "");
41
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
42
textdomain (GETTEXT_PACKAGE);
44
/* set up the service */
45
loop = g_main_loop_new (nullptr, false);
46
std::shared_ptr<Controller> controller (new MockController());//UbuntuAppLocController ());
47
Service service (controller);
48
service.set_name_lost_callback (on_name_lost, loop);
49
g_main_loop_run (loop);
52
g_main_loop_unref (loop);