~ubuntu-branches/ubuntu/oneiric/evince/oneiric-updates

1.1.10 by Sebastien Bacher
Import upstream version 0.7.1
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
1.6.3 by Sebastian Dröge
Import upstream version 2.30.1
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.1.10 by Sebastien Bacher
Import upstream version 0.7.1
22
 */
23
1.1.40 by Didier Roche
Import upstream version 2.25.90
24
#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
25
#error "Only <evince-document.h> can be included directly."
26
#endif
27
1.1.10 by Sebastien Bacher
Import upstream version 0.7.1
28
#ifndef EV_DOCUMENT_SECURITY_H
29
#define EV_DOCUMENT_SECURITY_H
30
31
#include <glib-object.h>
32
#include <glib.h>
33
#include <gdk/gdk.h>
34
35
#include "ev-document.h"
36
37
G_BEGIN_DECLS
38
39
40
#define EV_TYPE_DOCUMENT_SECURITY		  (ev_document_security_get_type ())
41
#define EV_DOCUMENT_SECURITY(o)			  (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_SECURITY, EvDocumentSecurity))
1.7.1 by Frederic Peters
Import upstream version 3.0.0
42
#define EV_DOCUMENT_SECURITY_IFACE(k)	  	  (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_SECURITY, EvDocumentSecurityInterface))
1.1.10 by Sebastien Bacher
Import upstream version 0.7.1
43
#define EV_IS_DOCUMENT_SECURITY(o)		  (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_SECURITY))
44
#define EV_IS_DOCUMENT_SECURITY_IFACE(k)	  (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_SECURITY))
1.7.1 by Frederic Peters
Import upstream version 3.0.0
45
#define EV_DOCUMENT_SECURITY_GET_IFACE(inst) 	  (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_SECURITY, EvDocumentSecurityInterface))
46
47
typedef struct _EvDocumentSecurity          EvDocumentSecurity;
48
typedef struct _EvDocumentSecurityInterface EvDocumentSecurityInterface;
49
50
struct _EvDocumentSecurityInterface
1.1.10 by Sebastien Bacher
Import upstream version 0.7.1
51
{
52
	GTypeInterface base_iface;
53
54
	/* Methods  */
55
	gboolean             (* has_document_security) (EvDocumentSecurity *document_security);
56
	void                 (* set_password)          (EvDocumentSecurity *document_security,
57
							const char         *password);
58
};
59
60
GType    ev_document_security_get_type              (void);
61
gboolean ev_document_security_has_document_security (EvDocumentSecurity *document_security);
62
void     ev_document_security_set_password          (EvDocumentSecurity *document_security,
63
						     const char         *password);
64
65
G_END_DECLS
66
67
#endif