~ubuntu-branches/ubuntu/lucid/seahorse/lucid

« back to all changes in this revision

Viewing changes to gkr/seahorse-gkeyring-item.h

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2009-01-08 17:05:02 UTC
  • mfrom: (1.2.39 upstream)
  • Revision ID: james.westby@ubuntu.com-20090108170502-zs2i7svo0b7l3ecz
Tags: 2.25.4-0ubuntu1
* New upstream version (LP: #315147).
* Update debian/patches/80_autoconf_update.patch
* debian/rules:
  - addition of a shlibs rule for libcryptui0 (>= 2.25.4)
* Fix bdeps to match upstream configure check:
  - set libgnome-keyring-dev to (>= 2.25.3).
  - add libtasn1-3-dev.
* debian/seahorse.install:
  - inclusion of debian/tmp/usr/share/gnome/autostart/seahorse-daemon.desktop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Seahorse
3
 
 *
4
 
 * Copyright (C) 2006 Stefan Walter
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 
 * See the GNU General Public License for more details.
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the
17
 
 * Free Software Foundation, Inc.,
18
 
 * 59 Temple Place, Suite 330,
19
 
 * Boston, MA 02111-1307, USA.
20
 
 */
21
 
 
22
 
/**
23
 
 * SeahorseCredential: Represents a gnome-keyring item 
24
 
 * 
25
 
 * - Derived from SeahorseKey
26
 
 * 
27
 
 * Properties:
28
 
 *   display-name: (gchar*) The display name for the key.
29
 
 *   display-id: (gchar*) The keyid to display.
30
 
 *   simple-name: (gchar*) Shortened display name for the key (for use in files etc...).
31
 
 *   fingerprint: (gchar*) Displayable fingerprint for the key.
32
 
 *   validity: (SeahorseValidity) The key validity.
33
 
 *   trust: (SeahorseValidity) Trust for the key.
34
 
 *   expires: (gulong) Date this key expires or 0.
35
 
 *   length: (gint) The length of the key in bits.
36
 
 *   stock-id: (string) The stock icon id.
37
 
 */
38
 
 
39
 
#ifndef __SEAHORSE_GKEYRING_ITEM_H__
40
 
#define __SEAHORSE_GKEYRING_ITEM_H__
41
 
 
42
 
#include <gtk/gtk.h>
43
 
#include <gnome-keyring.h>
44
 
 
45
 
#include "seahorse-gkr-module.h"
46
 
 
47
 
#include "seahorse-key.h"
48
 
#include "seahorse-source.h"
49
 
 
50
 
typedef enum {
51
 
    SEAHORSE_GKEYRING_USE_OTHER,
52
 
    SEAHORSE_GKEYRING_USE_NETWORK,
53
 
    SEAHORSE_GKEYRING_USE_WEB,
54
 
    SEAHORSE_GKEYRING_USE_PGP,
55
 
    SEAHORSE_GKEYRING_USE_SSH,
56
 
} SeahorseGKeyringUse;
57
 
 
58
 
#define SEAHORSE_TYPE_GKEYRING_ITEM             (seahorse_gkeyring_item_get_type ())
59
 
#define SEAHORSE_GKEYRING_TYPE_ITEM SEAHORSE_TYPE_GKEYRING_ITEM
60
 
#define SEAHORSE_GKEYRING_ITEM(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAHORSE_TYPE_GKEYRING_ITEM, SeahorseGKeyringItem))
61
 
#define SEAHORSE_GKEYRING_ITEM_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), SEAHORSE_TYPE_GKEYRING_ITEM, SeahorseGKeyringItemClass))
62
 
#define SEAHORSE_IS_GKEYRING_ITEM(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEAHORSE_TYPE_GKEYRING_ITEM))
63
 
#define SEAHORSE_IS_GKEYRING_ITEM_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), SEAHORSE_TYPE_GKEYRING_ITEM))
64
 
#define SEAHORSE_GKEYRING_ITEM_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), SEAHORSE_TYPE_GKEYRING_ITEM_KEY, SeahorseGKeyringItemClass))
65
 
 
66
 
 
67
 
typedef struct _SeahorseGKeyringItem SeahorseGKeyringItem;
68
 
typedef struct _SeahorseGKeyringItemClass SeahorseGKeyringItemClass;
69
 
 
70
 
struct _SeahorseGKeyringItem {
71
 
    SeahorseKey                 parent;
72
 
 
73
 
    /*< public >*/
74
 
    guint32                     item_id;
75
 
    GnomeKeyringItemInfo        *info;
76
 
    GnomeKeyringAttributeList   *attributes;
77
 
    GList                       *acl;
78
 
};
79
 
 
80
 
struct _SeahorseGKeyringItemClass {
81
 
    SeahorseKeyClass            parent_class;
82
 
};
83
 
 
84
 
// TODO: arguments specific to GKeyring Item 
85
 
SeahorseGKeyringItem*   seahorse_gkeyring_item_new              (SeahorseSource *sksrc,
86
 
                                                                 guint32 item_id, 
87
 
                                                                 GnomeKeyringItemInfo *info,
88
 
                                                                 GnomeKeyringAttributeList *attributes,
89
 
                                                                 GList *acl);
90
 
 
91
 
GType                   seahorse_gkeyring_item_get_type         (void);
92
 
 
93
 
GQuark                  seahorse_gkeyring_item_get_cannonical   (guint32 item_id);
94
 
 
95
 
gchar*                  seahorse_gkeyring_item_get_description  (SeahorseGKeyringItem *git);
96
 
 
97
 
const gchar*            seahorse_gkeyring_item_get_attribute    (SeahorseGKeyringItem *git, 
98
 
                                                                 const gchar *name);
99
 
 
100
 
SeahorseGKeyringUse     seahorse_gkeyring_item_get_use          (SeahorseGKeyringItem *git);
101
 
 
102
 
#endif /* __SEAHORSE_GKEYRING_ITEM_H__ */