## SeahorseObject SeahorseObject |

## Synopsis

                        SeahorseObjectPrivate;
                        SeahorseObject;
    SeahorseObject*     seahorse_object_new                 (void);
    void                seahorse_object_realize             (SeahorseObject *self);
    void                seahorse_object_refresh             (SeahorseObject *self);
    SeahorseOperation*  seahorse_object_delete              (SeahorseObject *self);
    GQuark              seahorse_object_get_id              (SeahorseObject *self);
    GQuark              seahorse_object_get_tag             (SeahorseObject *self);
    SeahorseSource*     seahorse_object_get_source          (SeahorseObject *self);
    void                seahorse_object_set_source          (SeahorseObject *self,
                                                             SeahorseSource *value);
    SeahorseContext*    seahorse_object_get_context         (SeahorseObject *self);
    SeahorseObject*     seahorse_object_get_preferred       (SeahorseObject *self);
    void                seahorse_object_set_preferred       (SeahorseObject *self,
                                                             SeahorseObject *value);
    SeahorseObject*     seahorse_object_get_parent          (SeahorseObject *self);
    void                seahorse_object_set_parent          (SeahorseObject *self,
                                                             SeahorseObject *value);
    GList*              seahorse_object_get_children        (SeahorseObject *self);
    SeahorseObject*     seahorse_object_get_nth_child       (SeahorseObject *self,
                                                             guint index);
    const gchar*        seahorse_object_get_label           (SeahorseObject *self);
    const gchar*        seahorse_object_get_markup          (SeahorseObject *self);
    const gchar*        seahorse_object_get_identifier      (SeahorseObject *self);
    const gchar*        seahorse_object_get_description     (SeahorseObject *self);
    const gchar*        seahorse_object_get_nickname        (SeahorseObject *self);
    const gchar*        seahorse_object_get_icon            (SeahorseObject *self);
    SeahorseLocation    seahorse_object_get_location        (SeahorseObject *self);
    SeahorseUsage       seahorse_object_get_usage           (SeahorseObject *self);
    guint               seahorse_object_get_flags           (SeahorseObject *self);
    gboolean            seahorse_object_lookup_property     (SeahorseObject *self,
                                                             const gchar *field,
                                                             GValue *value);
    gboolean            (*SeahorseObjectPredicateFunc)      (SeahorseObject *obj,
                                                             void *user_data);
                        SeahorseObjectPredicate;
    void                seahorse_object_predicate_clear     (SeahorseObjectPredicate *self);
    gboolean            seahorse_object_predicate_match     (SeahorseObjectPredicate *self,
                                                             SeahorseObject *obj);

## Description

## Details

### SeahorseObjectPrivate

    typedef struct _SeahorseObjectPrivate SeahorseObjectPrivate;

### SeahorseObject

    typedef struct {
    	GObject parent;
    	SeahorseObjectPrivate *pv;
    } SeahorseObject;

### seahorse_object_new ()

    SeahorseObject*     seahorse_object_new                 (void);

Returns : |

### seahorse_object_realize ()

    void                seahorse_object_realize             (SeahorseObject *self);

Realizes an object. Calls the klass method

`self` : | the object to realize

### seahorse_object_refresh ()

    void                seahorse_object_refresh             (SeahorseObject *self);

calls the class refresh function

`self` : | object to refresh

### seahorse_object_delete ()

    SeahorseOperation*  seahorse_object_delete              (SeahorseObject *self);

calls the class delete function

`self` : | object to delete
Returns : | NULL on error

### seahorse_object_get_id ()

    GQuark              seahorse_object_get_id              (SeahorseObject *self);

`self` : | Object
Returns : | the id of the object `self`

### seahorse_object_get_tag ()

    GQuark              seahorse_object_get_tag             (SeahorseObject *self);

`self` : | Object
Returns : | the tag of the object `self`

### seahorse_object_get_source ()

    SeahorseSource*     seahorse_object_get_source          (SeahorseObject *self);

`self` : | Object
Returns : | the source of the object `self`

### seahorse_object_set_source ()

    void                seahorse_object_set_source          (SeahorseObject *self,
                                                             SeahorseSource *value);

sets the source for the object

`self` : | The object to set a new source for
`value` : | The source to set

### seahorse_object_get_context ()

    SeahorseContext*    seahorse_object_get_context         (SeahorseObject *self);

`self` : | Object
Returns : | the context of the object `self`

### seahorse_object_get_preferred ()

    SeahorseObject*     seahorse_object_get_preferred       (SeahorseObject *self);

`self` : | Object
Returns : | the preferred of the object `self`

### seahorse_object_set_preferred ()

    void                seahorse_object_set_preferred       (SeahorseObject *self,
                                                             SeahorseObject *value);

`self` : | the object to set the preferred object for
`value` : | the preferred object

### seahorse_object_get_parent ()

    SeahorseObject*     seahorse_object_get_parent          (SeahorseObject *self);

`self` : | Object
Returns : | the parent of the object `self`

### seahorse_object_set_parent ()

    void                seahorse_object_set_parent          (SeahorseObject *self,
                                                             SeahorseObject *value);

register `value` as the parent of `self`:

`self` : | the child
`value` : | the parent

### seahorse_object_get_children ()

    GList*              seahorse_object_get_children        (SeahorseObject *self);

`self` : | Object
Returns : | the children of the object `self`

### seahorse_object_get_nth_child ()

    SeahorseObject*     seahorse_object_get_nth_child       (SeahorseObject *self,
                                                             guint index);

`self` : | Object
`index` : | the number of the child to return
Returns : | the child number `index`

### seahorse_object_get_label ()

    const gchar*        seahorse_object_get_label           (SeahorseObject *self);

`self` : | Object
Returns : | the label of the object `self`

### seahorse_object_get_markup ()

    const gchar*        seahorse_object_get_markup          (SeahorseObject *self);

`self` : | Object
Returns : | the markup of the object `self`

### seahorse_object_get_identifier ()

    const gchar*        seahorse_object_get_identifier      (SeahorseObject *self);

`self` : | Object
Returns : | the identifier of the object `self`

### seahorse_object_get_description ()

    const gchar*        seahorse_object_get_description     (SeahorseObject *self);

`self` : | Object
Returns : | the description of the object `self`

### seahorse_object_get_nickname ()

    const gchar*        seahorse_object_get_nickname        (SeahorseObject *self);

`self` : | Object
Returns : | the nickname of the object `self`

### seahorse_object_get_icon ()

    const gchar*        seahorse_object_get_icon            (SeahorseObject *self);

`self` : | Object
Returns : | the icon of the object `self`

### seahorse_object_get_location ()

    SeahorseLocation    seahorse_object_get_location        (SeahorseObject *self);

`self` : | Object
Returns : | the location of the object `self`

### seahorse_object_get_usage ()

    SeahorseUsage       seahorse_object_get_usage           (SeahorseObject *self);

`self` : | Object
Returns : | the usage of the object `self`

### seahorse_object_get_flags ()

    guint               seahorse_object_get_flags           (SeahorseObject *self);

`self` : | Object
Returns : | the flags of the object `self`

### seahorse_object_lookup_property ()

    gboolean            seahorse_object_lookup_property     (SeahorseObject *self,
                                                             const gchar *field,
                                                             GValue *value);

Looks up the property `field` in the object `self` and returns it in `value`

`self` : | the object to look up the property
`field` : | the field to lookup
`value` : | the returned value
Returns : | TRUE if a property was found

### SeahorseObjectPredicateFunc ()

    gboolean            (*SeahorseObjectPredicateFunc)      (SeahorseObject *obj,
                                                             void *user_data);

`obj` : |
`user_data` : |
Returns : |

### SeahorseObjectPredicate

    typedef struct {
    	GQuark tag;
    	GQuark id;
    	GType type;
    	SeahorseLocation location;
    	SeahorseUsage usage;
    	guint flags;
    	guint nflags;
    	SeahorseSource *source;
    	SeahorseObjectPredicateFunc custom;
    	gpointer custom_target;
    } SeahorseObjectPredicate;

### seahorse_object_predicate_clear ()

    void                seahorse_object_predicate_clear     (SeahorseObjectPredicate *self);

Clears a seahorse predicate (SeahorseObjectPredicate)

`self` : | The predicate to clean

### seahorse_object_predicate_match ()

    gboolean            seahorse_object_predicate_match     (SeahorseObjectPredicate *self,
                                                             SeahorseObject *obj);

matches a seahorse object and a predicate

`self` : | the object to test
`obj` : | The predicate to match
Returns : | FALSE if predicate does not match the SeahorseObject, TRUE else