![]() |
![]() |
![]() |
nautilus-actions Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations |
#define NA_IDUPLICABLE_TYPE #define NA_IDUPLICABLE_GET_INTERFACE (instance) typedef NAIDuplicable; typedef NAIDuplicableInterfacePrivate; NAIDuplicableInterface; #define NA_IDUPLICABLE_SIGNAL_STATUS_CHANGED void na_iduplicable_dispose (const NAIDuplicable *object
); void na_iduplicable_dump (const NAIDuplicable *object
); NAIDuplicable * na_iduplicable_duplicate (const NAIDuplicable *object
); void na_iduplicable_check_status (const NAIDuplicable *object
); NAIDuplicable * na_iduplicable_get_origin (const NAIDuplicable *object
); gboolean na_iduplicable_is_valid (const NAIDuplicable *object
); gboolean na_iduplicable_is_modified (const NAIDuplicable *object
); void na_iduplicable_set_origin (NAIDuplicable *object
,const NAIDuplicable *origin
); void na_iduplicable_set_modified (NAIDuplicable *object
,gboolean modified
); void na_iduplicable_register_consumer (GObject *consumer
);
NAIDuplicable is implemented by NAObject, NAObjectAction, NAObjectId, NAObjectItem, NAObjectMenu and NAObjectProfile.
#define NA_IDUPLICABLE_GET_INTERFACE( instance ) ( G_TYPE_INSTANCE_GET_INTERFACE(( instance ), NA_IDUPLICABLE_TYPE, NAIDuplicableInterface ))
typedef struct NAIDuplicableInterfacePrivate NAIDuplicableInterfacePrivate;
typedef struct { GTypeInterface parent; NAIDuplicableInterfacePrivate *private; /** * copy: * @target: the #NAIDuplicable target of the copy. * @source: the #NAIDuplicable source of the copy * * Copies data from @source to @ŧarget, so that @target becomes an * exact copy of @source. * * Each derived class of the implementation should define this * function to copy its own data. The implementation should take * care itself of calling each function in the class hierarchy, * from topmost base class to most-derived one. */ void ( *copy ) ( NAIDuplicable *target, const NAIDuplicable *source ); /** * are_equal: * @a: a first #NAIDuplicable object. * @b: a second #NAIDuplicable object to be compared to the first * one. * * Compares the two objects. * * Returns: %TRUE if @a and @b are identical, %FALSE else. * * Each derived class of the implementation should define this * function to compare its own data. The implementation should take * care itself of calling each function in the class hierarchy, * from topmost base class to most-derived one. */ gboolean ( *are_equal )( const NAIDuplicable *a, const NAIDuplicable *b ); /** * is_valid: * @object: the #NAIDuplicable object to be checked. * * Checks @object for validity. * * Returns: %TRUE if @object is valid, %FALSE else. * * Each derived class of the implementation should define this * function to compare its own data. The implementation should take * care itself of calling each function in the class hierarchy, * from topmost base class to most-derived one. */ gboolean ( *is_valid ) ( const NAIDuplicable *object ); } NAIDuplicableInterface;
#define NA_IDUPLICABLE_SIGNAL_STATUS_CHANGED "na-iduplicable-status-changed"
NAIDuplicable * na_iduplicable_get_origin (const NAIDuplicable *object
);
void na_iduplicable_set_origin (NAIDuplicable *object
,const NAIDuplicable *origin
);
void na_iduplicable_set_modified (NAIDuplicable *object
,gboolean modified
);