/* * Copyright (C) 2003 Marco Pesenti Gritti * Copyright (C) 2003 Christian Persch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ */ #ifndef EPHY_PERMISSION_MANAGER_H #define EPHY_PERMISSION_MANAGER_H #include #include G_BEGIN_DECLS #define EPHY_TYPE_PERMISSION_MANAGER (ephy_permission_manager_get_type ()) #define EPHY_PERMISSION_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_PERMISSION_MANAGER, EphyPermissionManager)) #define EPHY_PERMISSION_MANAGER_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_PERMISSION_MANAGER, EphyPermissionManagerIface)) #define EPHY_IS_PERMISSION_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_PERMISSION_MANAGER)) #define EPHY_IS_PERMISSION_MANAGER_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_PERMISSION_MANAGER)) #define EPHY_PERMISSION_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_PERMISSION_MANAGER, EphyPermissionManagerIface)) #define EPHY_TYPE_PERMISSION_INFO (ephy_permission_info_get_type ()) #define EPHY_TYPE_PERMISSION (ephy_permission_get_type ()) #define EPT_COOKIE "cookie" #define EPT_IMAGE "image" #define EPT_POPUP "popup" typedef enum { EPHY_PERMISSION_ALLOWED, EPHY_PERMISSION_DENIED, EPHY_PERMISSION_DEFAULT } EphyPermission; typedef struct _EphyPermissionInfo EphyPermissionInfo; typedef struct EphyPermissionManager EphyPermissionManager; typedef struct EphyPermissionManagerIface EphyPermissionManagerIface; struct _EphyPermissionInfo { char *host; GQuark qtype; EphyPermission permission; }; struct EphyPermissionManagerIface { GTypeInterface base_iface; /* Signals */ void (* added) (EphyPermissionManager *manager, EphyPermissionInfo *info); void (* changed) (EphyPermissionManager *manager, EphyPermissionInfo *info); void (* deleted) (EphyPermissionManager *manager, EphyPermissionInfo *info); void (* cleared) (EphyPermissionManager *manager); /* Methods */ void (* add) (EphyPermissionManager *manager, const char *host, const char *type, EphyPermission permission); void (* remove) (EphyPermissionManager *manager, const char *host, const char *type); void (* clear) (EphyPermissionManager *manager); EphyPermission (* test) (EphyPermissionManager *manager, const char *host, const char *type); GList * (* list) (EphyPermissionManager *manager, const char *type); }; /* EphyPermissionInfo */ GType ephy_permission_get_type (void); GType ephy_permission_info_get_type (void); EphyPermissionInfo *ephy_permission_info_new (const char *host, const char *type, EphyPermission permission); EphyPermissionInfo *ephy_permission_info_copy (const EphyPermissionInfo *info); void ephy_permission_info_free (EphyPermissionInfo *info); /* EphyPermissionManager */ GType ephy_permission_manager_get_type (void); void ephy_permission_manager_add (EphyPermissionManager *manager, const char *host, const char *type, EphyPermission permission); void ephy_permission_manager_remove (EphyPermissionManager *manager, const char *host, const char *type); void ephy_permission_manager_clear (EphyPermissionManager *manager); EphyPermission ephy_permission_manager_test (EphyPermissionManager *manager, const char *host, const char *type); GList * ephy_permission_manager_list (EphyPermissionManager *manager, const char *type); G_END_DECLS #endif lue='gnome-3.22'>gnome-3.22 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Update to 1.8.0johans2009-01-043-8/+13
* Update to 1.7.1johans2008-09-013-5/+6
* Update to 1.7.0johans2008-08-103-21/+48
* - Remove duplicates from MAKE_ENV after inclusion of CC and CXX in default MA...pav2008-07-251-1/+1
* - Previous commit was brokenjohans2008-06-121-2/+3
* - Fix list of installed manpagesjohans2008-06-101-1/+2
* - Update to 1.6.0johans2008-01-07ss='insertions'>+50
* Remove trailing slash to pass make check-plistantoine2014-08-253-3/+3
* Canonicalize a few LICENSE_PERMSantoine2014-08-221-1/+1
* x11-fonts/gnu-unifont and x11-fonts/gnu-unifont-ttf: 6.3.x -> 7.0.03pi2014-08-164-16/+16
* Remove indefinite articles and trailing periods from COMMENT, plusolgeni2014-08-0813-13/+13
* In some straightforward cases, protect documentation behindadamw2014-08-042-2/+4
* - Add run-depend on fc-cache, it's called from plistamdmi32014-08-011-2/+3
* x11-fonts/proggy_fonts: support stagewg2014-07-311-3/+1
* Unbreakantoine2014-07-311-2/+2
* Convert some more USE_BZIP2 to USES=tar:bzip2adamw2014-07-304-4/+4
* Convert a bunch of USE_XZ to USES=tar:xz.adamw2014-07-301-2/+1
* Convert a bunch of USE_BZIP2 to USES=tar:bzip2adamw2014-07-302-4/+2
* Rename x11-*/ patch-xy patches to reflect the files they modify.adamw2014-07-308-19/+11
* x11-fonts/fira: update 3.110 -> 3.111robak2014-07-252-9/+9
* - Use @fcfontsdirsunpoet2014-07-232-10/+6
* - Sort BUILD_DEPENDSsunpoet2014-07-231-3/+3
* - Use @fcfontsdirsunpoet2014-07-232-9/+6
* - Fix BUILD_DEPENDSsunpoet2014-07-231-2/+3
* - Remove leading indefinite article from COMMENTsunpoet2014-07-233-23/+11
* - Remove leading indefinite article from COMMENTsunpoet2014-07-231-14/+11
* Revert updating fontsproto 2.1.3 (only works for libXfont >= 1.5)bapt2014-07-214-7/+8
* Update to 1.5.0bapt2014-07-216-613/+4
* Update to 2.1.3bapt2014-07-212-3/+3
* x11-fonts/indic-ttf: Restore missing MALAYALAM option, then clean upmarino2014-07-211-42/+20
* x11-fonts/wqy: clean up pkg-plist after stage attemptmarino2014-07-192-3/+4
* x11-fonts/alef: small fixes in Makefilepi2014-07-181-2/+3
* x11-fonts/alef: fix COMMENTpi2014-07-181-1/+1
* New port: x11-fonts/alefpi2014-07-185-0/+54
* Fix plist: add missing OTF fonts.kevlo2014-07-162-0/+29
* Noto is Google's font family that aims to support all the world's languages.kevlo2014-07-165-0/+161
* Add DOCS option to the remaining staged ports where PORTDOCS appearsadamw2014-07-162-0/+4
* x11-fonts/cyberbit-ttfonts: stage, assign maintainership to submitter, cleanupswills2014-07-166-94/+47
* Add DOCS to OPTIONS_DEFINE to ports that check for PORT_OPTIONS:MDOCS.adamw2014-07-163-0/+6
* Remove NOPORTDOCS and NOPORTEXAMPLES from unstaged ports. Stage a couple whileadamw2014-07-052-23/+15
* Remove NOPORTDOCS.adamw2014-07-051-4/+2
* - Update from 3.108 to 3.110danilo2014-07-054-22/+14
* 1: Stagify.vanilla2014-07-042-15/+4
* 1: Stagify.vanilla2014-07-042-10/+9
* Stagify, use @fcfontsdir.vanilla2014-07-042-22/+17
* Stagify, use @fcfontsdir on pkg-plist.vanilla2014-07-042-21/+6
* 1: Stagify.vanilla2014-07-042-51/+16
* 1: Stagify.vanilla2014-07-042-20/+9
* Stagify, switch to use @fontsdir.vanilla2014-07-042-12/+3