1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
/*
* gnome-keyring
*
* Copyright (C) 2008 Stefan Walter
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser 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 __GCR_IMPORT_DIALOG_H__
#define __GCR_IMPORT_DIALOG_H__
#include "gcr.h"
#include "gp11/gp11.h"
#include <gtk/gtk.h>
#define GCR_TYPE_IMPORT_DIALOG (_gcr_import_dialog_get_type ())
#define GCR_IMPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_IMPORT_DIALOG, GcrImportDialog))
#define GCR_IMPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_IMPORT_DIALOG, GcrImportDialogClass))
#define GCR_IS_IMPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_IMPORT_DIALOG))
#define GCR_IS_IMPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_IMPORT_DIALOG))
#define GCR_IMPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_IMPORT_DIALOG, GcrImportDialogClass))
typedef struct _GcrImportDialog GcrImportDialog;
typedef struct _GcrImportDialogClass GcrImportDialogClass;
typedef struct _GcrImportDialogPrivate GcrImportDialogPrivate;
struct _GcrImportDialog {
GtkDialog parent;
GcrImportDialogPrivate *pv;
};
struct _GcrImportDialogClass {
GtkDialogClass parent_class;
};
GType _gcr_import_dialog_get_type (void);
GcrImportDialog* _gcr_import_dialog_new (void);
gboolean _gcr_import_dialog_run (GcrImportDialog *self,
GtkWindow *parent);
GP11Slot* _gcr_import_dialog_get_selected_slot (GcrImportDialog *self);
void _gcr_import_dialog_set_selected_slot (GcrImportDialog *self,
GP11Slot *slot);
void _gcr_import_dialog_show_selected_slot (GcrImportDialog *self);
void _gcr_import_dialog_hide_selected_slot (GcrImportDialog *self);
const gchar* _gcr_import_dialog_get_password (GcrImportDialog *self);
void _gcr_import_dialog_set_password (GcrImportDialog *self,
const gchar *password);
void _gcr_import_dialog_show_password (GcrImportDialog *self);
void _gcr_import_dialog_hide_password (GcrImportDialog *self);
const gchar* _gcr_import_dialog_get_primary_text (GcrImportDialog *self);
void _gcr_import_dialog_set_primary_text (GcrImportDialog *self,
const gchar *text);
const gchar* _gcr_import_dialog_get_secondary_text (GcrImportDialog *self);
void _gcr_import_dialog_set_secondary_text (GcrImportDialog *self,
const gchar *text);
#endif /* __GCR_IMPORT_DIALOG_H__ */
|