Back to index

bamf  0.2.120
bamf-application.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010-2011 Canonical Ltd
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Authored by: Jason Smith <jason.smith@canonical.com>
00017  *              Marco Trevisan (TreviƱo) <3v1n0@ubuntu.com>
00018  *
00019  */
00020 
00021 #ifndef __BAMFAPPLICATION_H__
00022 #define __BAMFAPPLICATION_H__
00023 
00024 #include "bamf.h"
00025 #include "bamf-view.h"
00026 #include "bamf-window.h"
00027 #include <glib.h>
00028 #include <glib-object.h>
00029 
00030 #define BAMF_TYPE_APPLICATION                    (bamf_application_get_type ())
00031 #define BAMF_APPLICATION(obj)                    (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_APPLICATION, BamfApplication))
00032 #define BAMF_IS_APPLICATION(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_APPLICATION))
00033 #define BAMF_APPLICATION_CLASS(klass)            (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_APPLICATION, BamfApplicationClass))
00034 #define BAMF_IS_APPLICATION_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_APPLICATION))
00035 #define BAMF_APPLICATION_GET_CLASS(obj)          (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_APPLICATION, BamfApplicationClass))
00036 
00037 typedef struct _BamfApplication BamfApplication;
00038 typedef struct _BamfApplicationClass BamfApplicationClass;
00039 typedef struct _BamfApplicationPrivate BamfApplicationPrivate;
00040 
00041 struct _BamfApplicationClass
00042 {
00043   BamfViewClass parent;
00044 };
00045 
00046 struct _BamfApplication
00047 {
00048   BamfView parent;
00049 
00050   /* private */
00051   BamfApplicationPrivate *priv;
00052 };
00053 
00054 GType             bamf_application_get_type                   (void) G_GNUC_CONST;
00055 
00056 const char      * bamf_application_get_desktop_file           (BamfApplication *application);
00057 void              bamf_application_set_desktop_file           (BamfApplication *application,
00058                                                                const char * desktop_file);
00059 
00060 GVariant        * bamf_application_get_xids                   (BamfApplication *application);
00061 
00062 gboolean          bamf_application_manages_xid                (BamfApplication *application,
00063                                                                guint32 xid);
00064 
00065 gboolean          bamf_application_contains_similar_to_window (BamfApplication *app, 
00066                                                                BamfWindow *window);
00067 
00068 const char      * bamf_application_get_wmclass                (BamfApplication *application);
00069 void              bamf_application_set_wmclass                (BamfApplication *application,
00070                                                                const char *wmclass);
00071 
00072 BamfApplication * bamf_application_new                        (void);
00073 
00074 BamfApplication * bamf_application_new_from_desktop_file      (const char * desktop_file);
00075 gboolean          bamf_application_get_show_stubs             (BamfApplication *application);
00076 
00077 BamfApplication * bamf_application_new_from_desktop_files     (GList * desktop_files);
00078 
00079 BamfApplication * bamf_application_new_with_wmclass           (const char *wmclass);
00080 
00081 #endif