gcr-certificate-exporter.h \
gcr-certificate-basics-widget.h \
gcr-certificate-details-widget.h \
+ gcr-deprecated.h \
+ gcr-deprecated-base.h \
gcr-display-scrolled.h \
gcr-display-view.h \
gcr-failure-renderer.h \
gcr-openpgp.h \
gcr-pkcs11-renderer.h \
gcr-record.h \
+ gcr-single-collection.h \
gcr-unlock-renderer.h \
gcr-viewer-window.h \
gcr-xxx.h \
gcr_parser_get_parsed_attributes
gcr_parser_get_parsed_block
gcr_parser_get_parsed_format
+GcrParsed
+gcr_parsed_ref
+gcr_parsed_unref
+gcr_parsed_get_attributes
+gcr_parsed_get_data
+gcr_parsed_get_description
+gcr_parsed_get_format
+gcr_parsed_get_label
+gcr_parser_get_parsed
<SUBSECTION Standard>
+GCR_TYPE_PARSED
GcrParserPrivate
+gcr_parsed_get_type
GCR_PARSER
GCR_IS_PARSER
GCR_TYPE_PARSER
<SECTION>
<FILE>gcr-library</FILE>
+gcr_pkcs11_initialize
+gcr_pkcs11_initialize_async
+gcr_pkcs11_initialize_finish
gcr_pkcs11_get_modules
gcr_pkcs11_set_modules
gcr_pkcs11_add_module
gcr_simple_collection_new
gcr_simple_collection_add
gcr_simple_collection_remove
-gcr_simple_collection_contains
<SUBSECTION Standard>
gcr_simple_collection_get_type
GCR_IS_SIMPLE_COLLECTION
GcrListSelectorClass
gcr_list_selector_new
gcr_list_selector_get_collection
-gcr_list_selector_get_columns
gcr_list_selector_get_selected
gcr_list_selector_set_selected
<SUBSECTION Standard>
GcrComboSelector
GcrComboSelectorClass
gcr_combo_selector_get_collection
-gcr_combo_selector_get_columns
gcr_combo_selector_new
gcr_combo_selector_get_selected
gcr_combo_selector_set_selected
gcr_renderer_create
gcr_renderer_register
gcr_renderer_popuplate_popup
-gcr_renderer_render
gcr_renderer_render_view
gcr_renderer_emit_data_changed
gcr_renderer_register_well_known
GcrMemoryIcon
GcrMemoryIconClass
GcrMemoryIconPrivate
-GCR_ERROR
-gcr_error_get_domain
GcrOpensshPubCallback
GCR_CALLBACK_OUTPUT_STREAM
GCR_CALLBACK_OUTPUT_STREAM_CLASS
GcrCallbackOutputFunc
GcrCallbackOutputStream
GcrCallbackOutputStreamClass
+GCR_TYPE_IMPORTER_PROMPT_BEHAVIOR
+gcr_importer_prompt_behavior_get_type
</SECTION>
gcr_unlock_options_widget_get_type
gcr_viewer_get_type
gcr_viewer_widget_get_type
+gcr_viewer_window_get_type
\ No newline at end of file
gcr-unlock-renderer.c gcr-unlock-renderer.h \
gcr-viewer.c gcr-viewer.h \
gcr-viewer-widget.c gcr-viewer-widget.h \
+ gcr-viewer-window.c gcr-viewer-window.h \
$(BUILT_UI_FILES)
libgcr_base_@GCR_MAJOR@_la_CFLAGS = \
bin_PROGRAMS = gcr-viewer
gcr_viewer_SOURCES = \
- gcr-viewer-tool.c \
- gcr-viewer-window.c gcr-viewer-window.h
+ gcr-viewer-tool.c
gcr_viewer_CFLAGS = \
$(GTK_CFLAGS) \
gcr_data_error_get_type
gcr_data_format_get_type
gcr_error_get_domain
+gcr_icon_for_token_info
+gcr_importer_create_for_parsed
gcr_importer_get_parser
gcr_importer_get_prompt_behavior
gcr_importer_get_slot
-gcr_importer_create_for_parsed
gcr_importer_get_type
gcr_importer_import
gcr_importer_import_async
gcr_importer_import_finish
+gcr_importer_prompt_behavior_get_type
gcr_importer_queue_and_filter_for_parsed
gcr_importer_queue_for_parsed
gcr_importer_register
gcr_importer_register_well_known
+gcr_importer_set_parser
+gcr_importer_set_prompt_behavior
+gcr_importer_set_slot
+gcr_parsed_get_attributes
+gcr_parsed_get_data
+gcr_parsed_get_description
+gcr_parsed_get_format
+gcr_parsed_get_label
+gcr_parsed_get_type
+gcr_parsed_ref
+gcr_parsed_unref
gcr_parser_add_password
gcr_parser_format_disable
gcr_parser_format_enable
gcr_parser_format_supported
+gcr_parser_get_parsed
gcr_parser_get_parsed_attributes
gcr_parser_get_parsed_block
gcr_parser_get_parsed_description
gcr_pkcs11_get_trust_lookup_uris
gcr_pkcs11_get_trust_store_slot
gcr_pkcs11_get_trust_store_uri
+gcr_pkcs11_initialize
+gcr_pkcs11_initialize_async
+gcr_pkcs11_initialize_finish
gcr_pkcs11_set_modules
gcr_pkcs11_set_trust_lookup_uris
gcr_pkcs11_set_trust_store_uri
return g_hash_table_lookup (self->pv->selected, object) ? TRUE : FALSE;
}
-GList*
+/**
+ * gcr_collection_model_get_selected_objects:
+ * @self: the collection model
+ *
+ * Get a list of checked/selected objects.
+ *
+ * Returns: a list of selected objects, which should be freed with
+ * g_list_free().
+ */
+GList *
gcr_collection_model_get_selected_objects (GcrCollectionModel *self)
{
GHashTableIter iter;
return result;
}
+/**
+ * gcr_collection_model_set_selected_objects:
+ * @self: the collection model
+ * @selected: a list of objects to select
+ *
+ * Set the checked/selected objects.
+ */
void
-gcr_collection_model_set_selected_objects (GcrCollectionModel *self, GList *selected)
+gcr_collection_model_set_selected_objects (GcrCollectionModel *self,
+ GList *selected)
{
GHashTable *newly_selected;
GList *old_selection;
*/
/**
- * gcr_selector_new:
+ * gcr_combo_selector_new:
* @collection: The collection that contains the objects to display
*
* Create a new #GcrTreeSelector.
GcrCollection* gcr_combo_selector_get_collection (GcrComboSelector *self);
-const GcrColumn* gcr_combo_selector_get_columns (GcrComboSelector *self);
-
GObject* gcr_combo_selector_get_selected (GcrComboSelector *self);
void gcr_combo_selector_set_selected (GcrComboSelector *self,
void gcr_importer_set_parser (GcrImporter *self,
GcrParser *parser);
+GckSlot * gcr_importer_get_slot (GcrImporter *self);
+
+void gcr_importer_set_slot (GcrImporter *self,
+ GckSlot *slot);
+
+typedef enum {
+ GCR_IMPORTER_PROMPT_NEEDED,
+ GCR_IMPORTER_PROMPT_ALWAYS,
+ GCR_IMPORTER_PROMPT_NEVER
+} GcrImporterPromptBehavior;
+
+GcrImporterPromptBehavior gcr_importer_get_prompt_behavior (GcrImporter *self);
+
+void gcr_importer_set_prompt_behavior (GcrImporter *self,
+ GcrImporterPromptBehavior behavior);
+
G_END_DECLS
#endif /* GCR_DISABLE_DEPRECATED */
g_type_class_add_private (klass, sizeof (GcrImportButtonPrivate));
}
+/**
+ * gcr_import_button_new:
+ * @label: label to display on the button
+ *
+ * Create a new #GcrImportButton.
+ *
+ * Returns: a newly created #GcrImportButton
+ */
GcrImportButton*
gcr_import_button_new (const gchar *label)
{
NULL);
}
+/**
+ * gcr_import_button_add_parsed:
+ * @self: an import button
+ * @parsed: a parsed item
+ *
+ * Queue an item to import via the button
+ */
void
gcr_import_button_add_parsed (GcrImportButton *self,
GcrParsed *parsed)
GcrImportButton * gcr_import_button_new (const gchar *label);
-void gcr_import_button_add_parsed (GcrImportButton *button,
+void gcr_import_button_add_parsed (GcrImportButton *self,
GcrParsed *parsed);
G_END_DECLS
/**
* gcr_importer_queue_for_parsed:
* @importer: an importer to add additional items to
- * @parser: a parser with a parsed item to import
+ * @parsed: a parsed item to import
*
* Queues an additional item to be imported. The parsed item is represented
* by the state of the #GcrParser at the time of calling this method.
/**
* gcr_importer_queue_and_filter_for_parsed:
* @importers: a set of importers
- * @parser: a parser with a parsed item to import
+ * @parsed: a parsed item
*
* Queues an additional item to be imported in all compattible importers
* in the set. The parsed item is represented by the state of the #GcrParser
g_type_class_unref (g_type_class_ref (GCR_TYPE_PKCS11_IMPORTER));
g_type_class_unref (g_type_class_ref (GCR_TYPE_GNUPG_IMPORTER));
}
+
+#ifndef GCR_DISABLE_DEPRECATED
+
+/**
+ * gcr_importer_get_parser:
+ * @self: An importer
+ *
+ * Has no effect. Use gcr_importer_listen() instead.
+ *
+ * Returns: %NULL is always returned.
+ * Deprecated: Since 3.0.0
+ */
+GcrParser*
+gcr_importer_get_parser (GcrImporter *self)
+{
+ g_warning ("gcr_importer_get_parser() is no longer supported "
+ "Use gcr_importer_listen() instead.");
+ return NULL;
+}
+
+/**
+ * gcr_importer_set_parser:
+ * @self: An importer
+ * @parser: A parser
+ *
+ * Has no effect. Use gcr_importer_listen() instead.
+ *
+ * Deprecated: Since 3.0.0
+ */
+void
+gcr_importer_set_parser (GcrImporter *self,
+ GcrParser *parser)
+{
+ g_warning ("gcr_importer_set_parser() is no longer supported "
+ "Use gcr_importer_listen() instead.");
+}
+
+/*
+ * gcr_importer_get_slot:
+ * @self: The importer
+ *
+ * Returns %NULL.
+ *
+ * Deprecated: since 3.4.0
+ */
+GckSlot *
+gcr_importer_get_slot (GcrImporter *self)
+{
+ g_warning ("gcr_importer_get_slot() is no longer supported.");
+ return NULL;
+}
+
+/**
+ * gcr_importer_set_slot:
+ * @self: The importer
+ * @slot: The slot to import to
+ *
+ * Has no effect.
+ *
+ * Deprecated: since 3.4.0
+ */
+void
+gcr_importer_set_slot (GcrImporter *self,
+ GckSlot *slot)
+{
+ g_warning ("gcr_importer_set_slot() is no longer supported.");
+}
+
+/**
+ * gcr_importer_get_prompt_behavior:
+ * @self: The importer
+ *
+ * Returns: zero
+ *
+ * Deprecated: since 3.4.0
+ */
+GcrImporterPromptBehavior
+gcr_importer_get_prompt_behavior (GcrImporter *self)
+{
+ g_warning ("gcr_importer_get_prompt_behavior() is no longer supported.");
+ return 0;
+}
+
+/**
+ * gcr_importer_set_prompt_behavior:
+ * @self: The importer
+ * @behavior: The prompt behavior flag
+ *
+ * Has no effect.
+ *
+ * Deprecated: since 3.4.0
+ */
+void
+gcr_importer_set_prompt_behavior (GcrImporter *self,
+ GcrImporterPromptBehavior behavior)
+{
+ g_warning ("gcr_importer_set_prompt_behavior() is no longer supported.");
+}
+
+#endif /* GCR_DISABLE_DEPRECATED */
*/
/**
- * gcr_selector_new:
+ * gcr_list_selector_new:
* @collection: The collection that contains the objects to display
*
- * Create a new #GcrTreeSelector.
+ * Create a new #GcrListSelector.
*
* Returns: A newly allocated selector, which should be released with
* g_object_unref().
GcrCollection* gcr_list_selector_get_collection (GcrListSelector *self);
-const GcrColumn* gcr_list_selector_get_columns (GcrListSelector *self);
-
GList* gcr_list_selector_get_selected (GcrListSelector *self);
void gcr_list_selector_set_selected (GcrListSelector *self,
*/
/**
+ * GcrParsed:
+ *
+ * A parsed item parsed by a #GcrParser.
+ */
+
+/**
* GcrParserClass:
* @parent_class: The parent class
* @authenticate: The default handler for the authenticate signal.
return gcr_parsed_get_attributes (self->pv->parsed);
}
+/**
+ * gcr_parsed_get_attributes:
+ * @parsed: a parsed item
+ *
+ * Get the attributes which make up the parsed item.
+ *
+ * Returns: The attributes for the item. These are owned by the parsed
+ * item and should not be freed.
+ */
GckAttributes *
gcr_parsed_get_attributes (GcrParsed *parsed)
{
return gcr_parsed_get_label (self->pv->parsed);
}
+/**
+ * gcr_parsed_get_label:
+ * @parsed: a parsed item
+ *
+ * Get the label for the parsed item.
+ *
+ * Returns: the label for the item.
+ */
const gchar*
gcr_parsed_get_label (GcrParsed *parsed)
{
return gcr_parsed_get_data (self->pv->parsed, n_block);
}
+/**
+ * gcr_parsed_get_data:
+ * @parsed: a parsed item
+ * @n_data: location to store size of returned data
+ *
+ * Get the raw data block for the parsed item.
+ *
+ * Returns: the raw data of the parsed item, or %NULL
+ */
gconstpointer
gcr_parsed_get_data (GcrParsed *parsed,
gsize *n_data)
*
* This is only valid during the GcrParser::parsed signal.
*
- * Returns: The data format of the currently parsed item.
+ * Returns: the data format of the currently parsed item
*/
GcrDataFormat
gcr_parser_get_parsed_format (GcrParser *self)
return gcr_parsed_get_format (self->pv->parsed);
}
+/**
+ * gcr_parsed_get_format:
+ * @parsed: a parsed item
+ *
+ * Get the format of the parsed item.
+ *
+ * Returns: the data format of the item
+ */
GcrDataFormat
gcr_parsed_get_format (GcrParsed *parsed)
{
if (remaining_args) {
for (i = 0; remaining_args[i] != NULL; ++i) {
file = g_file_new_for_commandline_arg (remaining_args[i]);
- _gcr_viewer_window_load (window, file);
+ gcr_viewer_window_load (window, file);
g_object_unref (file);
}
gtk_init (&argc, &argv);
- window = _gcr_viewer_window_new ();
+ window = gcr_viewer_window_new ();
gtk_widget_show (GTK_WIDGET (window));
g_idle_add (on_idle_load_files, window);
GcrImportButton *import;
};
-G_DEFINE_TYPE (GcrViewerWindow, _gcr_viewer_window, GTK_TYPE_WINDOW);
+G_DEFINE_TYPE (GcrViewerWindow, gcr_viewer_window, GTK_TYPE_WINDOW);
static void
on_viewer_renderer_added (GcrViewerWidget *viewer,
}
static void
-_gcr_viewer_window_init (GcrViewerWindow *self)
+gcr_viewer_window_init (GcrViewerWindow *self)
{
self->pv = G_TYPE_INSTANCE_GET_PRIVATE (self, GCR_TYPE_VIEWER_WINDOW,
GcrViewerWindowPrivate);
}
static void
-_gcr_viewer_window_constructed (GObject *obj)
+gcr_viewer_window_constructed (GObject *obj)
{
GcrViewerWindow *self = GCR_VIEWER_WINDOW (obj);
GtkWidget *bbox;
GtkWidget *button;
GtkWidget *align;
- G_OBJECT_CLASS (_gcr_viewer_window_parent_class)->constructed (obj);
+ G_OBJECT_CLASS (gcr_viewer_window_parent_class)->constructed (obj);
bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_set_spacing (GTK_BOX (bbox), 12);
}
static void
-_gcr_viewer_window_class_init (GcrViewerWindowClass *klass)
+gcr_viewer_window_class_init (GcrViewerWindowClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
- gobject_class->constructed = _gcr_viewer_window_constructed;
+ gobject_class->constructed = gcr_viewer_window_constructed;
g_type_class_add_private (klass, sizeof (GcrViewerWindow));
}
GtkWindow *
-_gcr_viewer_window_new (void)
+gcr_viewer_window_new (void)
{
return g_object_new (GCR_TYPE_VIEWER_WINDOW, NULL);
}
void
-_gcr_viewer_window_load (GcrViewerWindow *self,
+gcr_viewer_window_load (GcrViewerWindow *self,
GFile *file)
{
g_return_if_fail (GCR_IS_VIEWER_WINDOW (self));
#include <gtk/gtk.h>
+#ifndef GCR_DISABLE_DEPRECATED
+
#include "gcr/gcr.h"
-#define GCR_TYPE_VIEWER_WINDOW (_gcr_viewer_window_get_type ())
+#define GCR_TYPE_VIEWER_WINDOW (gcr_viewer_window_get_type ())
#define GCR_VIEWER_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_VIEWER_WINDOW, GcrViewerWindow))
#define GCR_VIEWER_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_VIEWER_WINDOW, GcrViewerWindowClass))
#define GCR_IS_VIEWER_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_VIEWER_WINDOW))
GtkWindowClass parent_class;
};
-GType _gcr_viewer_window_get_type (void);
+GType gcr_viewer_window_get_type (void);
+
+GtkWindow * gcr_viewer_window_new (void);
-GtkWindow * _gcr_viewer_window_new (void);
+void gcr_viewer_window_load (GcrViewerWindow *self,
+ GFile *file);
-void _gcr_viewer_window_load (GcrViewerWindow *self,
- GFile *file);
+#endif /* GCR_DISABLE_DEPRECATED */
#endif /* GCR_VIEWER_WINDOW_H */
gcr_combo_selector_get_type
gcr_combo_selector_new
gcr_combo_selector_set_selected
+gcr_failure_renderer_get_type
+gcr_failure_renderer_new
+gcr_failure_renderer_new_unsupported
+gcr_import_button_add_parsed
+gcr_import_button_get_type
+gcr_import_button_new
gcr_key_renderer_get_attributes
gcr_key_renderer_get_type
gcr_key_renderer_new
gcr_viewer_window_get_type
gcr_viewer_window_load
gcr_viewer_window_new
+gcr_viewer_widget_get_type
+gcr_viewer_widget_load_data
+gcr_viewer_widget_load_file
+gcr_viewer_widget_new
GcrUnlockRenderer *renderer;
GtkWindow *window;
- window = GTK_WINDOW (_gcr_viewer_window_new ());
+ window = GTK_WINDOW (gcr_viewer_window_new ());
g_object_ref_sink (window);
renderer = _gcr_unlock_renderer_new_for_parsed (parser);