2 * This file is part of hildon-libs
4 * Copyright (C) 2006 Nokia Corporation, all rights reserved.
6 * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
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
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.
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
25 #ifndef __HILDON_PROGRAM_H__
26 #define __HILDON_PROGRAM_H__
28 #include<glib-object.h>
29 #include"hildon-window.h"
32 typedef struct _HildonProgram HildonProgram;
33 typedef struct _HildonProgramClass HildonProgramClass;
35 #define HILDON_TYPE_PROGRAM (hildon_program_get_type())
36 #define HILDON_PROGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, \
37 HILDON_TYPE_PROGRAM, \
39 #define HILDON_IS_PROGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, \
43 #define hildon_program_new hildon_program_get_instance
52 struct _HildonProgramClass
56 /* Padding for future extension */
57 void (*_hildon_reserved1)(void);
58 void (*_hildon_reserved2)(void);
59 void (*_hildon_reserved3)(void);
60 void (*_hildon_reserved4)(void);
65 hildon_program_get_type (void);
70 hildon_program_get_instance (void);
73 hildon_program_add_window (HildonProgram *self, HildonWindow *window);
76 hildon_program_remove_window (HildonProgram *self, HildonWindow *window);
79 hildon_program_set_can_hibernate (HildonProgram *self, gboolean killable);
82 hildon_program_get_can_hibernate (HildonProgram *self);
85 hildon_program_set_common_menu (HildonProgram *self, GtkMenu *menu);
88 hildon_program_get_common_menu (HildonProgram *self);
91 hildon_program_set_common_toolbar (HildonProgram *self, GtkToolbar *toolbar);
94 hildon_program_get_common_toolbar (HildonProgram *self);
97 hildon_program_get_is_topmost (HildonProgram *self);
100 #endif /* __HILDON_PROGRAM_H__ */