|
Packit Service |
f02b19 |
/*
|
|
Packit Service |
f02b19 |
* gnome-keyring
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* Copyright (C) 2011 Collabora Ltd.
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit Service |
f02b19 |
* it under the terms of the GNU Lesser General Public License as
|
|
Packit Service |
f02b19 |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
f02b19 |
* the License, or (at your option) any later version.
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit Service |
f02b19 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
f02b19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
f02b19 |
* Lesser General Public License for more details.
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
f02b19 |
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* Author: Stef Walter <stefw@collabora.co.uk>
|
|
Packit Service |
f02b19 |
*/
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#ifndef GCR_GNUPG_COLLECTION_H
|
|
Packit Service |
f02b19 |
#define GCR_GNUPG_COLLECTION_H
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#include "gcr-collection.h"
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#include <glib-object.h>
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
G_BEGIN_DECLS
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#define GCR_TYPE_GNUPG_COLLECTION (_gcr_gnupg_collection_get_type ())
|
|
Packit Service |
f02b19 |
#define GCR_GNUPG_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_GNUPG_COLLECTION, GcrGnupgCollection))
|
|
Packit Service |
f02b19 |
#define GCR_GNUPG_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_GNUPG_COLLECTION, GcrGnupgCollectionClass))
|
|
Packit Service |
f02b19 |
#define GCR_IS_GNUPG_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_GNUPG_COLLECTION))
|
|
Packit Service |
f02b19 |
#define GCR_IS_GNUPG_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_GNUPG_COLLECTION))
|
|
Packit Service |
f02b19 |
#define GCR_GNUPG_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_GNUPG_COLLECTION, GcrGnupgCollectionClass))
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
typedef struct _GcrGnupgCollection GcrGnupgCollection;
|
|
Packit Service |
f02b19 |
typedef struct _GcrGnupgCollectionClass GcrGnupgCollectionClass;
|
|
Packit Service |
f02b19 |
typedef struct _GcrGnupgCollectionPrivate GcrGnupgCollectionPrivate;
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
struct _GcrGnupgCollection {
|
|
Packit Service |
f02b19 |
/*< private >*/
|
|
Packit Service |
f02b19 |
GObject parent;
|
|
Packit Service |
f02b19 |
GcrGnupgCollectionPrivate *pv;
|
|
Packit Service |
f02b19 |
};
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
struct _GcrGnupgCollectionClass {
|
|
Packit Service |
f02b19 |
GObjectClass parent_class;
|
|
Packit Service |
f02b19 |
};
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
GType _gcr_gnupg_collection_get_type (void);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
GcrCollection* _gcr_gnupg_collection_new (const gchar *directory);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
void _gcr_gnupg_collection_load_async (GcrGnupgCollection *self,
|
|
Packit Service |
f02b19 |
GCancellable *cancellable,
|
|
Packit Service |
f02b19 |
GAsyncReadyCallback callback,
|
|
Packit Service |
f02b19 |
gpointer user_data);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
gboolean _gcr_gnupg_collection_load_finish (GcrGnupgCollection *self,
|
|
Packit Service |
f02b19 |
GAsyncResult *result,
|
|
Packit Service |
f02b19 |
GError **error);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
G_END_DECLS
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#endif /* GCR_GNUPG_COLLECTION_H */
|