/* gpakeyexpireop.h - The GpaKeyExpireOperation object. * Copyright (C) 2003, Miguel Coca. * * This file is part of GPA * * GPA 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 of the License, or * (at your option) any later version. * * GPA 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 */ #ifndef GPA_KEY_EXPIRE_OP_H #define GPA_KEY_EXPIRE_OP_H #include #include #include "gpa.h" #include "gpakeyop.h" /* GObject stuff */ #define GPA_KEY_EXPIRE_OPERATION_TYPE (gpa_key_expire_operation_get_type ()) #define GPA_KEY_EXPIRE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_EXPIRE_OPERATION_TYPE, GpaKeyExpireOperation)) #define GPA_KEY_EXPIRE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEY_EXPIRE_OPERATION_TYPE, GpaKeyExpireOperationClass)) #define GPA_IS_KEY_EXPIRE_ENCRYPT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_EXPIRE_OPERATION_TYPE)) #define GPA_IS_KEY_EXPIRE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_EXPIRE_OPERATION_TYPE)) #define GPA_KEY_EXPIRE_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEY_EXPIRE_OPERATION_TYPE, GpaKeyExpireOperationClass)) typedef struct _GpaKeyExpireOperation GpaKeyExpireOperation; typedef struct _GpaKeyExpireOperationClass GpaKeyExpireOperationClass; struct _GpaKeyExpireOperation { GpaKeyOperation parent; int modified_keys; GDate *date; }; struct _GpaKeyExpireOperationClass { GpaKeyOperationClass parent_class; /* Signals the new expiration date for a key */ void (*new_expiration) (GpaKeyExpireOperation *op, gpgme_key_t key, GDate *date); }; GType gpa_key_expire_operation_get_type (void) G_GNUC_CONST; /* API */ /* Creates a new key deletion operation. */ GpaKeyExpireOperation* gpa_key_expire_operation_new (GtkWidget *window, GList *keys); #endif