Support opening the Maemo browser for URLs
[maepad.git] / src / appdata.h
blobf678ac46136032b2ffa5c4ee57402418bd385bcb
1 /*
2 * This file is part of maemopad+
5 * This software is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1 of
8 * the License, or (at your option) any later version.
10 * This software is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this software; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18 * 02110-1301 USA
22 #ifndef MAEMOPAD_APPDATA_H
23 #define MAEMOPAD_APPDATA_H
25 #include <libosso.h>
26 #include <gconf/gconf-client.h>
27 #include <config.h>
29 #include <hildon/hildon.h>
31 typedef struct _AppData AppData;
33 struct _AppData
35 HildonProgram *app; /* handle to application */
36 osso_context_t *osso; /* handle to osso */
37 GConfClient* gconf;
39 HildonStackableWindow* main_view; /* list of nodes */
40 HildonStackableWindow* node_view; /* node view */
43 #define MAEPAD_GCONF_LAST_DOCUMENT "/apps/maepad/general/lastdocument"
45 /* App-specific logging and debugging output */
47 #define MAEPAD_LOG_DOMAIN "MaePad"
49 #define maepad_debug(...) g_log(MAEPAD_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__)
50 #define maepad_message(...) g_log(MAEPAD_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, __VA_ARGS__)
51 #define maepad_warning(...) g_log(MAEPAD_LOG_DOMAIN, G_LOG_LEVEL_WARNING, __VA_ARGS__)
53 #endif