]> www.fi.muni.cz Git - evince.git/blob - libdocument/ev-document-security.h
Reorganize source tree.
[evince.git] / libdocument / ev-document-security.h
1 /* ev-document-security.h
2  *  this file is part of evince, a gnome pdf viewer
3  * 
4  * Copyright (C) 2005 Red Hat, Inc.
5  *
6  * Author:
7  *   Jonathan Blandford <jrb@alum.mit.edu>
8  *
9  * Evince is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Evince is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef EV_DOCUMENT_SECURITY_H
25 #define EV_DOCUMENT_SECURITY_H
26
27 #include <glib-object.h>
28 #include <glib.h>
29 #include <gdk/gdk.h>
30
31 #include "ev-document.h"
32
33 G_BEGIN_DECLS
34
35
36 #define EV_TYPE_DOCUMENT_SECURITY                 (ev_document_security_get_type ())
37 #define EV_DOCUMENT_SECURITY(o)                   (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_SECURITY, EvDocumentSecurity))
38 #define EV_DOCUMENT_SECURITY_IFACE(k)             (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_SECURITY, EvDocumentSecurityIface))
39 #define EV_IS_DOCUMENT_SECURITY(o)                (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_SECURITY))
40 #define EV_IS_DOCUMENT_SECURITY_IFACE(k)          (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_SECURITY))
41 #define EV_DOCUMENT_SECURITY_GET_IFACE(inst)      (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_SECURITY, EvDocumentSecurityIface))
42
43 typedef struct _EvDocumentSecurity      EvDocumentSecurity;
44 typedef struct _EvDocumentSecurityIface EvDocumentSecurityIface;
45
46 struct _EvDocumentSecurityIface
47 {
48         GTypeInterface base_iface;
49
50         /* Methods  */
51         gboolean             (* has_document_security) (EvDocumentSecurity *document_security);
52         void                 (* set_password)          (EvDocumentSecurity *document_security,
53                                                         const char         *password);
54 };
55
56 GType    ev_document_security_get_type              (void);
57 gboolean ev_document_security_has_document_security (EvDocumentSecurity *document_security);
58 void     ev_document_security_set_password          (EvDocumentSecurity *document_security,
59                                                      const char         *password);
60
61 G_END_DECLS
62
63 #endif