Back to index

bamf  0.2.120
bamf-application.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2010 Canonical Ltd.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of either or both of the following licenses:
00006  *
00007  * 1) the GNU Lesser General Public License version 3, as published by the
00008  * Free Software Foundation; and/or
00009  * 2) the GNU Lesser General Public License version 2.1, as published by
00010  * the Free Software Foundation.
00011  *
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranties of
00014  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00015  * PURPOSE.  See the applicable version of the GNU Lesser General Public
00016  * License for more details.
00017  *
00018  * You should have received a copy of both the GNU Lesser General Public
00019  * License version 3 and version 2.1 along with this program.  If not, see
00020  * <http://www.gnu.org/licenses/>
00021  *
00022  * Authored by: Jason Smith <jason.smith@canonical.com>
00023  *              Neil Jagdish Patel <neil.patel@canonical.com>
00024  *
00025  */
00026 
00027 #ifndef _BAMF_APPLICATION_H_
00028 #define _BAMF_APPLICATION_H_
00029 
00030 #include <glib-object.h>
00031 #include <libbamf/bamf-view.h>
00032 
00033 G_BEGIN_DECLS
00034 
00035 #define BAMF_TYPE_APPLICATION (bamf_application_get_type ())
00036 
00037 #define BAMF_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
00038         BAMF_TYPE_APPLICATION, BamfApplication))
00039 
00040 #define BAMF_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
00041         BAMF_TYPE_APPLICATION, BamfApplicationClass))
00042 
00043 #define BAMF_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
00044         BAMF_TYPE_APPLICATION))
00045 
00046 #define BAMF_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
00047         BAMF_TYPE_APPLICATION))
00048 
00049 #define BAMF_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
00050         BAMF_TYPE_APPLICATION, BamfApplicationClass))
00051 
00052 typedef struct _BamfApplication        BamfApplication;
00053 typedef struct _BamfApplicationClass   BamfApplicationClass;
00054 typedef struct _BamfApplicationPrivate BamfApplicationPrivate;
00055 
00056 struct _BamfApplication
00057 {
00058   BamfView parent;
00059 
00060   BamfApplicationPrivate *priv;
00061 };
00062 
00063 struct _BamfApplicationClass
00064 {
00065   BamfViewClass parent_class;
00066 
00067   /*< private >*/
00068   void (*_application_padding1) (void);
00069   void (*_application_padding2) (void);
00070   void (*_application_padding3) (void);
00071   void (*_application_padding4) (void);
00072   void (*_application_padding5) (void);
00073   void (*_application_padding6) (void);
00074 };
00075 
00076 GType             bamf_application_get_type             (void) G_GNUC_CONST;
00077 
00088 const gchar     * bamf_application_get_application_type (BamfApplication *application);
00089 
00099 const gchar     * bamf_application_get_desktop_file     (BamfApplication *application);
00100 
00109 GList * bamf_application_get_windows (BamfApplication *application);
00110 
00119 GArray * bamf_application_get_xids (BamfApplication *application);
00120 
00129 gboolean bamf_application_get_show_menu_stubs (BamfApplication *application);
00130 
00131 G_END_DECLS
00132 
00133 #endif