Top | ![]() |
![]() |
![]() |
![]() |
This is the class which maintains data and properties of a FileManager-Actions™ action.
Edition status. As a particular rule for a FMAObjectItem -derived class, a FMAObjectAction is considered modified as soon as any of its profiles has been modified itself (because they are saved as a whole).
#define FMA_OBJECT_ACTION( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, FMA_TYPE_OBJECT_ACTION, FMAObjectAction ))
#define FMA_IS_OBJECT_ACTION( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, FMA_TYPE_OBJECT_ACTION ))
FMAObjectAction *
fma_object_action_new (void
);
Allocates a new FMAObjectAction object.
The new FMAObjectAction object is initialized with suitable default values, but without any profile.
Since: 2.30
FMAObjectAction *
fma_object_action_new_with_profile (void
);
Allocates a new FMAObjectAction object along with a default profile.
Since: 2.30
FMAObjectAction *
fma_object_action_new_with_defaults (void
);
Allocates a new FMAObjectAction object along with a default profile. These two objects have suitable default values.
Since: 2.30
gchar *
fma_object_action_get_new_profile_name
(const FMAObjectAction *action
);
Returns a name suitable as a new profile name.
The search is made by iterating over the standard profile name
prefix : basically, we increment a counter until finding a name
which is not yet allocated. The provided name is so only suitable
for the specified action
.
When inserting a list of profiles in the action, we iter first for new names, before actually do the insertion. We so keep the last allocated name to avoid to allocate the same one twice.
Since: 2.30
void fma_object_action_attach_profile (FMAObjectAction *action
,FMAObjectProfile *profile
);
Adds a profile at the end of the list of profiles.
action |
the FMAObjectAction action to which the profile will be attached. |
|
profile |
the FMAObjectProfile profile to be attached to |
Since: 2.30
void
fma_object_action_set_last_version (FMAObjectAction *action
);
Set the version number of the action
to the last one.
Since: 2.30