Back to index

bamf  0.2.120
bamf-control.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 
00022 #ifndef __BAMFCONTROL_H__
00023 #define __BAMFCONTROL_H__
00024 
00025 #include "bamf.h"
00026 #include <glib.h>
00027 #include <glib-object.h>
00028 #include <gio/gio.h>
00029 
00030 #define BAMF_TYPE_CONTROL                 (bamf_control_get_type ())
00031 #define BAMF_CONTROL(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_CONTROL, BamfControl))
00032 #define BAMF_IS_CONTROL(obj)                     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_CONTROL))
00033 #define BAMF_CONTROL_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_CONTROL, BamfControlClass))
00034 #define BAMF_IS_CONTROL_CLASS(klass)             (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_CONTROL))
00035 #define BAMF_CONTROL_GET_CLASS(obj)              (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_CONTROL, BamfControlClass))
00036 
00037 typedef struct _BamfControl BamfControl;
00038 typedef struct _BamfControlClass BamfControlClass;
00039 typedef struct _BamfControlPrivate BamfControlPrivate;
00040 
00041 struct _BamfControlClass
00042 {
00043   BamfDBusControlSkeletonClass parent;
00044 };
00045 
00046 struct _BamfControl
00047 {
00048   BamfDBusControlSkeleton parent;
00049 
00050   /* private */
00051   BamfControlPrivate *priv;
00052 };
00053 
00054 GType         bamf_control_get_type                     (void) G_GNUC_CONST;
00055 
00056 void          bamf_control_register_application_for_pid (BamfControl *control,
00057                                                          const char *application,
00058                                                          gint32 pid);
00059 
00060 void          bamf_control_register_tab_provider        (BamfControl *control,
00061                                                          const char *sender,
00062                                                          const char *path);
00063 
00064 void          bamf_control_insert_desktop_file          (BamfControl *control,
00065                                                          const char *path);
00066 
00067 void          bamf_control_set_approver_behavior        (BamfControl *control,
00068                                                          gint32 behavior);
00069 
00070 void          bamf_control_quit                         (BamfControl *control);
00071 
00072 BamfControl * bamf_control_get_default                  (void);
00073 
00074 #endif