diff options
author | Alberto Garcia <agarcia@igalia.com> | 2009-04-30 13:10:26 +0200 |
---|---|---|
committer | Alberto Garcia <agarcia@igalia.com> | 2009-04-30 13:33:58 +0200 |
commit | 69a11338fe0cc36a868e5812b590f5437622988a (patch) | |
tree | abd1efc835e7e30f7799eac64ff45405f1624528 /hildon/hildon-program.h | |
parent | 8a970bcc0a22925ed90b869c8f7c1ba521e189ac (diff) |
Renamed src/ to hildon/
* src/
* Makefile.am
* configure.ac
* doc/Makefile.am
* doc/hildon.types
* po/POTFILES.in:
Renamed src/ to hildon/
* examples/*.c
* debian/changelog
* debian/rules:
Include <hildon/hildon.h> directly in all examples.
Diffstat (limited to 'hildon/hildon-program.h')
-rw-r--r-- | hildon/hildon-program.h | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/hildon/hildon-program.h b/hildon/hildon-program.h new file mode 100644 index 0000000..a4d3210 --- /dev/null +++ b/hildon/hildon-program.h @@ -0,0 +1,133 @@ +/* + * This file is a part of hildon + * + * Copyright (C) 2006 Nokia Corporation, all rights reserved. + * + * Contact: Rodrigo Novo <rodrigo.novo@nokia.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * as published by the Free Software Foundation; version 2.1 of + * the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef __HILDON_PROGRAM_H__ +#define __HILDON_PROGRAM_H__ + +#include <glib-object.h> + +#include "hildon-window.h" +#include "hildon-stackable-window.h" + +G_BEGIN_DECLS + +typedef struct _HildonProgram HildonProgram; + +typedef struct _HildonProgramClass HildonProgramClass; + +#define HILDON_TYPE_PROGRAM \ + (hildon_program_get_type()) + +#define HILDON_PROGRAM(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + HILDON_TYPE_PROGRAM, HildonProgram)) + +#define HILDON_PROGRAM_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_CAST ((obj), \ + HILDON_TYPE_PROGRAM, HildonProgramClass)) + +#define HILDON_IS_PROGRAM(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_PROGRAM)) + +#define HILDON_IS_PROGRAM_CLASS(klass) \ + (G_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_PROGRAM)) + +#define HILDON_PROGRAM_GET_CLASS(obj) \ + ((HildonProgramClass *) G_OBJECT_GET_CLASS(obj)) + +struct _HildonProgram +{ + GObject parent; +}; + +struct _HildonProgramClass +{ + GObjectClass parent; + + /* Padding for future extension */ + void (*_hildon_reserved1)(void); + void (*_hildon_reserved2)(void); + void (*_hildon_reserved3)(void); + void (*_hildon_reserved4)(void); +}; + +GType G_GNUC_CONST +hildon_program_get_type (void); + +HildonProgram* +hildon_program_get_instance (void); + +void +hildon_program_add_window (HildonProgram *self, + HildonWindow *window); + +void +hildon_program_remove_window (HildonProgram *self, + HildonWindow *window); + +void +hildon_program_set_can_hibernate (HildonProgram *self, + gboolean can_hibernate); + +gboolean +hildon_program_get_can_hibernate (HildonProgram *self); + +void +hildon_program_set_common_menu (HildonProgram *self, + GtkMenu *menu); + +GtkMenu* +hildon_program_get_common_menu (HildonProgram *self); + +void +hildon_program_set_common_app_menu (HildonProgram *self, + HildonAppMenu *menu); + +HildonAppMenu* +hildon_program_get_common_app_menu (HildonProgram *self); + +void +hildon_program_set_common_toolbar (HildonProgram *self, + GtkToolbar *toolbar); + +GtkToolbar* +hildon_program_get_common_toolbar (HildonProgram *self); + +gboolean +hildon_program_get_is_topmost (HildonProgram *self); + +#ifndef HILDON_DISABLE_DEPRECATED +HildonStackableWindow * +hildon_program_pop_window_stack (HildonProgram *self); + +HildonStackableWindow * +hildon_program_peek_window_stack (HildonProgram *self); + +void +hildon_program_go_to_root_window (HildonProgram *self); +#endif /* HILDON_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __HILDON_PROGRAM_H__ */ |