Top | ![]() |
![]() |
![]() |
![]() |
FMAObjectAction implements FMAIDuplicable, FMAIContext and FMAIFactoryObject.
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
“factory-data-all-mimetypes”
property“factory-data-all-mimetypes” gboolean
The generic wildcard may be coded as '*', or '*/*' or 'all' or 'all/*' or 'all/all'. In each case, we will try to spend as less time as possible to check selection mimetypes.
Flags: Read / Write
Default value: TRUE
“factory-data-description”
property“factory-data-description” gchar *
Flags: Read / Write
Default value: ""
“factory-data-enabled”
property“factory-data-enabled” gboolean
Flags: Read / Write
Default value: TRUE
“factory-data-id”
property“factory-data-id” gchar *
Internal identifier of the FMAObjectId object. Historically a UUID used as a GConf directory (thus ASCII, case insensitive), it is also the basename of the .desktop file (thus UTF-8, case sensitive).
Flags: Read / Write
Default value: ""
“factory-data-items”
property“factory-data-items” gpointer
List of subitems objects.
Flags: Read / Write
“factory-data-iversion”
property“factory-data-iversion” guint
The version of the configuration format that will be used to manage backward compatibility.
Flags: Read / Write
Default value: 3
“factory-data-label”
property“factory-data-label” gchar *
Flags: Read / Write
Default value: "Empty label"
“factory-data-last-allocated”
property“factory-data-last-allocated” guint
Last allocated profile number in fma_object_action_get_new_profile_name(), reset to zero when saving the action.
Flags: Read / Write
Default value: 0
“factory-data-matchcase”
property“factory-data-matchcase” gboolean
Flags: Read / Write
Default value: TRUE
“factory-data-not-show-in”
property“factory-data-not-show-in” gpointer
Defaults to none.
Flags: Read / Write
“factory-data-only-show-in”
property“factory-data-only-show-in” gpointer
Defaults to all.
Flags: Read / Write
“factory-data-parent”
property“factory-data-parent” gpointer
The FMAObjectItem which is the parent of this object.
Flags: Read / Write
“factory-data-provider”
property“factory-data-provider” gpointer
A pointer to the FMAIOProvider object.
Flags: Read / Write
“factory-data-provider-data”
property“factory-data-provider-data” gpointer
A pointer to some FMAIOProvider specific data.
Flags: Read / Write
“factory-data-readonly”
property“factory-data-readonly” gboolean
Is the item only readable ? This is an intrinsic property, dynamically set when the item is unserialized. This property being FALSE doesn't mean that the item will actually be updatable, as this also depend of parameters set by user and administrator. Also, a property initially set to FALSE when first unserializing may be set toTRUE if an eccor occurs on a later write operation.
Flags: Read / Write
Default value: FALSE
“factory-data-selection-count”
property“factory-data-selection-count” gchar *
Flags: Read / Write
Default value: ">0"
“factory-data-shortcut”
property“factory-data-shortcut” gchar *
Flags: Read / Write
Default value: ""
“factory-data-show-if-registered”
property“factory-data-show-if-registered” gchar *
Flags: Read / Write
Default value: ""
“factory-data-show-if-running”
property“factory-data-show-if-running” gchar *
Flags: Read / Write
Default value: ""
“factory-data-show-if-true”
property“factory-data-show-if-true” gchar *
Flags: Read / Write
Default value: ""
“factory-data-target-location”
property“factory-data-target-location” gboolean
Flags: Read / Write
Default value: FALSE
“factory-data-target-selection”
property“factory-data-target-selection” gboolean
Flags: Read / Write
Default value: TRUE
“factory-data-target-toolbar”
property“factory-data-target-toolbar” gboolean
Flags: Read / Write
Default value: FALSE
“factory-data-toolbar-label”
property“factory-data-toolbar-label” gchar *
Flags: Read / Write
Default value: ""
“factory-data-toolbar-same-label”
property“factory-data-toolbar-same-label” gboolean
Does the toolbar label is the same than the main one ?.
Flags: Read / Write
Default value: TRUE
“factory-data-tooltip”
property“factory-data-tooltip” gchar *
The tooltip of the menu item that will appear in the file manager statusbar when the user points to the file manager context menu item with his/her mouse.
Flags: Read / Write
Default value: ""
“factory-data-try-exec”
property“factory-data-try-exec” gchar *
Flags: Read / Write
Default value: ""
“factory-data-version”
property“factory-data-version” gchar *
The version of the configuration format that will be used to manage backward compatibility.
Flags: Read / Write
Default value: ""