Back to index

bamf  0.2.120
bamf-legacy-window-test.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010 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  *
00018  */
00019 
00020 
00021 #ifndef __BAMFMOCKWINDOW_H__
00022 #define __BAMFMOCKWINDOW_H__
00023 
00024 #include <stdlib.h>
00025 #include <glib.h>
00026 #include <glib-object.h>
00027 #include "bamf-application.h"
00028 #include "bamf-window.h"
00029 #include "bamf-legacy-window.h"
00030 
00031 #define BAMF_TYPE_LEGACY_WINDOW_TEST (bamf_legacy_window_test_get_type ())
00032 
00033 #define BAMF_LEGACY_WINDOW_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
00034        BAMF_TYPE_LEGACY_WINDOW_TEST, BamfLegacyWindowTest))
00035 
00036 #define BAMF_LEGACY_WINDOW_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
00037        BAMF_TYPE_LEGACY_WINDOW_TEST, BamfLegacyWindowTestClass))
00038 
00039 #define BAMF_IS_LEGACY_WINDOW_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
00040        BAMF_TYPE_LEGACY_WINDOW_TEST))
00041 
00042 #define BAMF_IS_LEGACY_WINDOW_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
00043        BAMF_TYPE_LEGACY_WINDOW_TEST))
00044 
00045 #define BAMF_LEGACY_WINDOW_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
00046        BAMF_TYPE_LEGACY_WINDOW_TEST, BamfLegacyWindowTestClass))
00047 
00048 typedef struct _BamfLegacyWindowTest        BamfLegacyWindowTest;
00049 typedef struct _BamfLegacyWindowTestClass   BamfLegacyWindowTestClass;
00050 
00051 struct _BamfLegacyWindowTest
00052 {
00053   BamfLegacyWindow parent;
00054   guint32 xid;
00055   gint    pid;
00056   char * name;
00057   char * klass;
00058   char * exec;
00059   char * application_id;
00060   char * unique_bus_name;
00061   char * dbus_menu_object_path;
00062   gboolean needs_attention;
00063   gboolean is_desktop;
00064   gboolean is_skip;
00065   gboolean is_active;
00066   GdkRectangle geometry;
00067   BamfWindowMaximizationType maximized;
00068 };
00069 
00070 struct _BamfLegacyWindowTestClass
00071 {
00072   /*< private >*/
00073   BamfLegacyWindowClass parent_class;
00074 
00075   void (*_test_padding1) (void);
00076   void (*_test_padding2) (void);
00077   void (*_test_padding3) (void);
00078   void (*_test_padding4) (void);
00079   void (*_test_padding5) (void);
00080   void (*_test_padding6) (void);
00081 };
00082 
00083 GType       bamf_legacy_window_test_get_type (void) G_GNUC_CONST;
00084 
00085 gint
00086 bamf_legacy_window_test_get_pid (BamfLegacyWindow *legacy_window);
00087 
00088 guint32
00089 bamf_legacy_window_test_get_xid (BamfLegacyWindow *legacy_window);
00090 
00091 void
00092 bamf_legacy_window_test_set_attention (BamfLegacyWindowTest *self, gboolean val);
00093 
00094 gboolean
00095 bamf_legacy_window_test_needs_attention (BamfLegacyWindow *legacy_window);
00096 
00097 void
00098 bamf_legacy_window_test_set_active (BamfLegacyWindowTest *self, gboolean val);
00099 
00100 gboolean
00101 bamf_legacy_window_test_is_active (BamfLegacyWindow *legacy_window);
00102 
00103 void
00104 bamf_legacy_window_test_set_desktop (BamfLegacyWindowTest *self, gboolean val);
00105 
00106 gboolean
00107 bamf_legacy_window_test_is_desktop (BamfLegacyWindow *legacy_window);
00108 
00109 void
00110 bamf_legacy_window_test_set_skip (BamfLegacyWindowTest *self, gboolean val);
00111 
00112 gboolean
00113 bamf_legacy_window_test_is_skip_tasklist (BamfLegacyWindow *legacy_window);
00114 
00115 void
00116 bamf_legacy_window_test_set_name (BamfLegacyWindowTest *self, char *val);
00117 
00118 void
00119 bamf_legacy_window_test_set_geometry (BamfLegacyWindowTest *self, int x, int y,
00120                                                              int width, int height);
00121 
00122 void
00123 bamf_legacy_window_test_set_maximized (BamfLegacyWindowTest *self,
00124                                        BamfWindowMaximizationType maximized);
00125 
00126 void
00127 bamf_legacy_window_test_set_application_id (BamfLegacyWindowTest *self, const char *id);
00128 
00129 void
00130 bamf_legacy_window_test_set_unique_bus_name (BamfLegacyWindowTest *self, const char *bus_name);
00131 
00132 void
00133 bamf_legacy_window_test_set_dbus_menu_object_path (BamfLegacyWindowTest *self, const char *object_path);
00134 
00135 void
00136 bamf_legacy_window_test_close (BamfLegacyWindowTest *self);
00137 
00138 BamfLegacyWindowTest *
00139 bamf_legacy_window_test_new (guint32 xid, gchar *name, gchar *klass, gchar *exec);
00140 
00141 #endif