1 /* gpaexportserverop.h - The GpaExportServerOperation object.
2  *	Copyright (C) 2003, Miguel Coca.
3  *
4  * This file is part of GPA
5  *
6  * GPA is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * GPA is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19  */
20 
21 #ifndef GPA_EXPORT_SERVER_OP_H
22 #define GPA_EXPORT_SERVER_OP_H
23 #ifdef ENABLE_KEYSERVER_SUPPORT
24 
25 #include "gpa.h"
26 #include <glib.h>
27 #include <glib-object.h>
28 #include "gpaexportop.h"
29 
30 /* GObject stuff */
31 #define GPA_EXPORT_SERVER_OPERATION_TYPE	  (gpa_export_server_operation_get_type ())
32 #define GPA_EXPORT_SERVER_OPERATION(obj)	  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_EXPORT_SERVER_OPERATION_TYPE, GpaExportServerOperation))
33 #define GPA_EXPORT_SERVER_OPERATION_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_EXPORT_SERVER_OPERATION_TYPE, GpaExportServerOperationClass))
34 #define GPA_IS_EXPORT_SERVER_OPERATION(obj)	  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_EXPORT_SERVER_OPERATION_TYPE))
35 #define GPA_IS_EXPORT_SERVER_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_EXPORT_SERVER_OPERATION_TYPE))
36 #define GPA_EXPORT_SERVER_OPERATION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_EXPORT_SERVER_OPERATION_TYPE, GpaExportServerOperationClass))
37 
38 typedef struct _GpaExportServerOperation GpaExportServerOperation;
39 typedef struct _GpaExportServerOperationClass GpaExportServerOperationClass;
40 
41 struct _GpaExportServerOperation {
42   GpaExportOperation parent;
43 
44   gchar *server;
45 };
46 
47 struct _GpaExportServerOperationClass {
48   GpaExportOperationClass parent_class;
49 
50 };
51 
52 GType gpa_export_server_operation_get_type (void) G_GNUC_CONST;
53 
54 /* API */
55 
56 /* Creates a new export to file operation.
57  */
58 GpaExportServerOperation*
59 gpa_export_server_operation_new (GtkWidget *window, GList *keys);
60 
61 #endif /*ENABLE_KEYSERVER_SUPPORT*/
62 #endif /*GPA_EXPORT_SERVER_OP_H*/
63