NAObjectProfile

## NAObjectProfile NAObjectProfile — The Action Profile Class Definition |

## Functions

#define | NA_TYPE_OBJECT_PROFILE
#define | NA_OBJECT_PROFILE()
#define | NA_IS_OBJECT_PROFILE()
NAObjectProfile * | na_object_profile_new ()
NAObjectProfile * | na_object_profile_new_with_defaults ()
void | na_object_profile_convert_v2_to_last ()

## Properties

gboolean | na-factory-data-all-mimetypes | Read / Write
gpointer | na-factory-data-basenames | Read / Write
gpointer | na-factory-data-capabilitites | Read / Write
gchar * | na-factory-data-descname | Read / Write
gchar * | na-factory-data-execute-as | Read / Write
gchar * | na-factory-data-execution-mode | Read / Write
gpointer | na-factory-data-folders | Read / Write
gchar * | na-factory-data-id | Read / Write
gboolean | na-factory-data-matchcase | Read / Write
gpointer | na-factory-data-mimetypes | Read / Write
gpointer | na-factory-data-not-show-in | Read / Write
gpointer | na-factory-data-only-show-in | Read / Write
gchar * | na-factory-data-parameters | Read / Write
gpointer | na-factory-data-parent | Read / Write
gchar * | na-factory-data-path | Read / Write
gpointer | na-factory-data-schemes | Read / Write
gchar * | na-factory-data-selection-count | Read / Write
gchar * | na-factory-data-show-if-registered | Read / Write
gchar * | na-factory-data-show-if-running | Read / Write
gchar * | na-factory-data-show-if-true | Read / Write
gboolean | na-factory-data-startup-notify | Read / Write
gchar * | na-factory-data-startup-wm-class | Read / Write
gchar * | na-factory-data-try-exec | Read / Write
gchar * | na-factory-data-working-dir | Read / Write

## Types and Values

| NAObjectProfile

## Object Hierarchy

        GObject
        ╰── NAObject
            ╰── NAObjectId
                ╰── NAObjectProfile

## Implemented Interfaces

NAObjectProfile implements NAIDuplicable, NAIContext and NAIFactoryObject.

## Includes

    #include <caja-actions/na-object-item.h>

## Description

## Functions

### NA_TYPE_OBJECT_PROFILE

    #define NA_TYPE_OBJECT_PROFILE                ( na_object_profile_get_type())

### NA_OBJECT_PROFILE()

    #define NA_OBJECT_PROFILE( object )           ( G_TYPE_CHECK_INSTANCE_CAST( object, NA_TYPE_OBJECT_PROFILE, NAObjectProfile ))

### NA_IS_OBJECT_PROFILE()

    #define NA_IS_OBJECT_PROFILE( object )        ( G_TYPE_CHECK_INSTANCE_TYPE( object, NA_TYPE_OBJECT_PROFILE ))

### na_object_profile_new ()

    NAObjectProfile *
    na_object_profile_new (void);

Allocates a new profile.

#### Returns

the newly allocated NAObjectProfile profile.

Since 2.30

### na_object_profile_new_with_defaults ()

    NAObjectProfile *
    na_object_profile_new_with_defaults (void);

Allocates a new profile, and set default values.

#### Returns

the newly allocated NAObjectProfile profile.

Since 2.30

### na_object_profile_convert_v2_to_last ()

    void
    na_object_profile_convert_v2_to_last (NAObjectProfile *profile);

Converts a v2 profile to the last version, setting the defaults as needed.

This is called after having converted a pre-v2 action on the newly created profile, or just after having read a v2 profile. In all situations, defaults are supposed to have been set.

#### Parameters

profile | the NAObjectProfile profile to be converted. |

Since 2.30

## Types and Values

### NAObjectProfile

    typedef struct _NAObjectProfile NAObjectProfile;

## Property Details

### The `“na-factory-data-all-mimetypes”` property

      “na-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

### The `“na-factory-data-basenames”` property

      “na-factory-data-basenames” gpointer

Flags: Read / Write

### The `“na-factory-data-capabilitites”` property

      “na-factory-data-capabilitites” gpointer

Flags: Read / Write

### The `“na-factory-data-descname”` property

      “na-factory-data-descname” gchar *

Flags: Read / Write

Default value: ""

### The `“na-factory-data-execute-as”` property

      “na-factory-data-execute-as” gchar *

Flags: Read / Write

Default value: ""

### The `“na-factory-data-execution-mode”` property

      “na-factory-data-execution-mode” gchar *

Flags: Read / Write

Default value: "Normal"

### The `“na-factory-data-folders”` property

      “na-factory-data-folders”  gpointer

Flags: Read / Write

### The `“na-factory-data-id”` property

      “na-factory-data-id”       gchar *

Internal identifier of the NAObjectId object. Historically a UUID used as a MateConf directory (thus ASCII, case insensitive), it is also the basename of the .desktop file (thus UTF-8, case sensitive).

Flags: Read / Write

Default value: ""

### The `“na-factory-data-matchcase”` property

      “na-factory-data-matchcase” gboolean

Flags: Read / Write

Default value: TRUE

### The `“na-factory-data-mimetypes”` property

      “na-factory-data-mimetypes” gpointer

Flags: Read / Write

### The `“na-factory-data-not-show-in”` property

      “na-factory-data-not-show-in” gpointer

Defaults to none.

Flags: Read / Write

### The `“na-factory-data-only-show-in”` property

      “na-factory-data-only-show-in” gpointer

Defaults to all.

Flags: Read / Write

### The `“na-factory-data-parameters”` property

      “na-factory-data-parameters” gchar *

Flags: Read / Write

Default value: ""

### The `“na-factory-data-parent”` property

      “na-factory-data-parent”   gpointer

The NAObjectItem which is the parent of this object.

Flags: Read / Write

### The `“na-factory-data-path”` property

      “na-factory-data-path”     gchar *

The path of the command to be executed when the user select the menu item in the file manager context menu or in the toolbar.

Flags: Read / Write

Default value: ""

### The `“na-factory-data-schemes”` property

      “na-factory-data-schemes”  gpointer

Flags: Read / Write

### The `“na-factory-data-selection-count”` property

      “na-factory-data-selection-count” gchar *

Flags: Read / Write

Default value: ">0"

### The `“na-factory-data-show-if-registered”` property

      “na-factory-data-show-if-registered” gchar *

Flags: Read / Write

Default value: ""

### The `“na-factory-data-show-if-running”` property

      “na-factory-data-show-if-running” gchar *

Flags: Read / Write

Default value: ""

### The `“na-factory-data-show-if-true”` property

      “na-factory-data-show-if-true” gchar *

Flags: Read / Write

Default value: ""

### The `“na-factory-data-startup-notify”` property

      “na-factory-data-startup-notify” gboolean

Flags: Read / Write

Default value: FALSE

### The `“na-factory-data-startup-wm-class”` property

      “na-factory-data-startup-wm-class” gchar *

Flags: Read / Write

Default value: ""

### The `“na-factory-data-try-exec”` property

      “na-factory-data-try-exec” gchar *

Flags: Read / Write

Default value: ""

### The `“na-factory-data-working-dir”` property

      “na-factory-data-working-dir” gchar *

Flags: Read / Write

Default value: "%d"