2006-09-12 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
[hildon] / hildon-widgets / hildon-app-private.h
1 /*
2  * This file is part of hildon-libs
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License or any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25
26 #ifndef HILDON_APP_PRIVATE_H
27 #define HILDON_APP_PRIVATE_H
28
29 G_BEGIN_DECLS
30
31 enum {
32     TOPMOST_STATUS_ACQUIRE,
33     TOPMOST_STATUS_LOSE,
34     SWITCH_TO,
35     IM_CLOSE,
36     CLIPBOARD_COPY,
37     CLIPBOARD_CUT,
38     CLIPBOARD_PASTE,
39
40     HILDON_APP_LAST_SIGNAL
41 };
42
43 struct _HildonAppPrivate {
44     GList *children;
45     gchar *title;
46 #ifndef HILDON_DISABLE_DEPRECATED
47     HildonZoomLevel zoom;
48 #endif
49
50     /* Used to keep track of menu key press/release */
51     gint lastmenuclick;
52
53     gulong curr_view_id;
54     gulong view_id_counter;
55     GSList *view_ids;
56     gboolean scroll_control;
57
58     guint twoparttitle: 1;
59     guint is_topmost: 1;
60     gboolean killable;
61     gboolean autoregistration;
62
63     guint escape_timeout;
64     guint key_snooper;
65     
66     GtkUIManager *uim;
67     
68     guint active_menu_id;
69 };
70
71 typedef struct {
72   gpointer view_ptr;
73   unsigned long view_id;
74 } view_item;
75
76 G_END_DECLS
77
78 #endif /* HILDON_APP_PRIVATE_H */