NAObjectProfile

NAObjectProfile — The Action Profile Class Definition

Synopsis

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

#define             NA_TYPE_OBJECT_PROFILE
#define             NA_OBJECT_PROFILE                   (object)
#define             NA_IS_OBJECT_PROFILE                (object)
                    NAObjectProfile;
NAObjectProfile *   na_object_profile_new               (void);
NAObjectProfile *   na_object_profile_new_with_defaults (void);
void                na_object_profile_convert_v2_to_last
                                                        (NAObjectProfile *profile);

Object Hierarchy

  GObject
   +----NAObject
         +----NAObjectId
               +----NAObjectProfile

Implemented Interfaces

NAObjectProfile implements NAIDuplicable, NAIContext and NAIFactoryObject.

Properties

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

Description

Details

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 ))

NAObjectProfile

typedef struct _NAObjectProfile NAObjectProfile;

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.

profile :

the NAObjectProfile profile to be converted.

Since 2.30

Property Details

The "na-factory-data-all-mimetypes" property

  "na-factory-data-all-mimetypes" gboolean              : Read / Write

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.

Default value: TRUE


The "na-factory-data-basenames" property

  "na-factory-data-basenames" gpointer              : Read / Write


The "na-factory-data-capabilitites" property

  "na-factory-data-capabilitites" gpointer              : Read / Write


The "na-factory-data-descname" property

  "na-factory-data-descname" gchar*                : Read / Write

Default value: ""


The "na-factory-data-execute-as" property

  "na-factory-data-execute-as" gchar*                : Read / Write

Default value: ""


The "na-factory-data-execution-mode" property

  "na-factory-data-execution-mode" gchar*                : Read / Write

Default value: "Normal"


The "na-factory-data-folders" property

  "na-factory-data-folders"  gpointer              : Read / Write


The "na-factory-data-id" property

  "na-factory-data-id"       gchar*                : Read / Write

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).

Default value: ""


The "na-factory-data-matchcase" property

  "na-factory-data-matchcase" gboolean              : Read / Write

Default value: TRUE


The "na-factory-data-mimetypes" property

  "na-factory-data-mimetypes" gpointer              : Read / Write


The "na-factory-data-not-show-in" property

  "na-factory-data-not-show-in" gpointer              : Read / Write

Defaults to none.


The "na-factory-data-only-show-in" property

  "na-factory-data-only-show-in" gpointer              : Read / Write

Defaults to all.


The "na-factory-data-parameters" property

  "na-factory-data-parameters" gchar*                : Read / Write

Default value: ""


The "na-factory-data-parent" property

  "na-factory-data-parent"   gpointer              : Read / Write

The NAObjectItem which is the parent of this object.


The "na-factory-data-path" property

  "na-factory-data-path"     gchar*                : Read / Write

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.

Default value: ""


The "na-factory-data-schemes" property

  "na-factory-data-schemes"  gpointer              : Read / Write


The "na-factory-data-selection-count" property

  "na-factory-data-selection-count" gchar*                : Read / Write

Default value: ">0"


The "na-factory-data-show-if-registered" property

  "na-factory-data-show-if-registered" gchar*                : Read / Write

Default value: ""


The "na-factory-data-show-if-running" property

  "na-factory-data-show-if-running" gchar*                : Read / Write

Default value: ""


The "na-factory-data-show-if-true" property

  "na-factory-data-show-if-true" gchar*                : Read / Write

Default value: ""


The "na-factory-data-startup-notify" property

  "na-factory-data-startup-notify" gboolean              : Read / Write

Default value: FALSE


The "na-factory-data-startup-wm-class" property

  "na-factory-data-startup-wm-class" gchar*                : Read / Write

Default value: ""


The "na-factory-data-try-exec" property

  "na-factory-data-try-exec" gchar*                : Read / Write

Default value: ""


The "na-factory-data-working-dir" property

  "na-factory-data-working-dir" gchar*                : Read / Write

Default value: "%d"