Commit 17addbf3 authored by Pierre Wieser's avatar Pierre Wieser

NAObject classes are renamed to FMAObject

parent 7e9f8959
......@@ -48,12 +48,12 @@ api_include_HEADERS = \
fma-iduplicable.h \
fma-ifactory-object.h \
fma-ifactory-object-data.h \
na-object-api.h \
na-object.h \
na-object-id.h \
na-object-item.h \
na-object-action.h \
na-object-profile.h \
na-object-menu.h \
fma-object-api.h \
fma-object.h \
fma-object-id.h \
fma-object-item.h \
fma-object-action.h \
fma-object-profile.h \
fma-object-menu.h \
na-timeout.h \
$(NULL)
......@@ -37,7 +37,7 @@
* @include: file-manager-actions/fma-data-def.h
*
* #FMADataDef and #FMADataGroup are structures which handle the list of
* elementary datas for each and every #NAObjectItem which happens to
* elementary datas for each and every #FMAObjectItem which happens to
* implement the #FMAIFactoryObject interface.
*/
......
......@@ -36,12 +36,12 @@
* @short_description: The Contextual Interface
* @include: file-manager-actions/fma-icontext.h
*
* This interface is implemented by all #NAObject -derived objects
* This interface is implemented by all #FMAObject -derived objects
* whose the display in the Nautilus context menu is subject to some
* conditions.
*
* Implementors, typically #NAObjectAction, #NAObjectProfile and
* #NAObjectMenu, host the required data as #FMADataBoxed in a dedicated
* Implementors, typically #FMAObjectAction, #FMAObjectProfile and
* #FMAObjectMenu, host the required data as #FMADataBoxed in a dedicated
* FMA_FACTORY_CONDITIONS_GROUP data group.
*/
......@@ -59,7 +59,7 @@ typedef struct _FMAIContextInterfacePrivate FMAIContextInterfacePrivate;
/**
* FMAIContextInterface:
* @is_candidate: determines if the given NAObject-derived object is
* @is_candidate: determines if the given FMAObject-derived object is
* candidate to display in Nautilus.
*
* This interface manages all conditions relevant to a displayable status
......@@ -75,7 +75,7 @@ typedef struct {
* is_candidate:
* @object: this FMAIContext object.
* @target: the initial target which triggered this function's stack.
* This target is defined in na-object-item.h.
* This target is defined in fma-object-item.h.
* @selection: the current selection as a GList of NautilusFileInfo.
*
* The FMAIContext implementor may take advantage of this
......
......@@ -36,8 +36,8 @@
* @short_description: The Duplication Interface
* @include: file-manager-actions/private/fma-iduplicable.h
*
* This interface is implemented by #NAObject in order to let
* #NAObject -derived instance duplication be easily tracked. This works
* This interface is implemented by #FMAObject in order to let
* #FMAObject -derived instance duplication be easily tracked. This works
* by keeping a pointer on the original object at duplication time, and
* then only checking edition status when explicitely required.
*
......@@ -119,7 +119,7 @@ typedef struct _FMAIDuplicableInterfacePrivate FMAIDuplicableInterfacePrivate
* @are_equal: tests if two objects are equals.
* @is_valid: tests if one object is valid.
*
* This interface is implemented by #NAObject objects, in order to be able
* This interface is implemented by #FMAObject objects, in order to be able
* to keep the trace of all duplicated objects.
*/
typedef struct {
......
......@@ -144,7 +144,7 @@
*/
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "na-object-item.h"
#include "fma-object-item.h"
G_BEGIN_DECLS
......@@ -184,7 +184,7 @@ typedef struct {
* FMAIExporterFileParms:
* @version: [in] version of this structure;
* since structure version 1.
* @exported: [in] exported NAObjectItem-derived object;
* @exported: [in] exported FMAObjectItem-derived object;
* since structure version 1.
* @folder: [in] URI of the target folder;
* since structure version 1.
......@@ -204,7 +204,7 @@ typedef struct {
*/
typedef struct {
guint version;
NAObjectItem *exported;
FMAObjectItem *exported;
gchar *folder;
GQuark format;
gchar *basename;
......@@ -216,7 +216,7 @@ typedef struct {
* FMAIExporterBufferParms:
* @version: [in] version of this structure;
* since structure version 1.
* @exported: [in] exported NAObjectItem-derived object;
* @exported: [in] exported FMAObjectItem-derived object;
* since structure version 1.
* @format: [in] export format as a GQuark;
* since structure version 1.
......@@ -234,7 +234,7 @@ typedef struct {
*/
typedef struct {
guint version;
NAObjectItem *exported;
FMAObjectItem *exported;
GQuark format;
gchar *buffer;
GSList *messages;
......@@ -319,7 +319,7 @@ typedef struct {
* @content: [in] version of the content of this structure;
* equals to 1;
* since structure version 2.
* @exported: [in] exported NAObjectItem-derived object;
* @exported: [in] exported FMAObjectItem-derived object;
* since structure version 1.
* @folder: [in] URI of the target folder;
* since structure version 1.
......@@ -340,7 +340,7 @@ typedef struct {
typedef struct {
guint version;
guint content;
NAObjectItem *exported;
FMAObjectItem *exported;
gchar *folder;
gchar *format;
gchar *basename;
......@@ -356,7 +356,7 @@ typedef struct {
* @content: [in] version of the content of this structure;
* equals to 1;
* since structure version 2.
* @exported: [in] exported NAObjectItem-derived object;
* @exported: [in] exported FMAObjectItem-derived object;
* since structure version 1.
* @format: [in] export format string identifier;
* since structure version 2.
......@@ -375,7 +375,7 @@ typedef struct {
typedef struct {
guint version;
guint content;
NAObjectItem *exported;
FMAObjectItem *exported;
gchar *format;
gchar *buffer;
GSList *messages;
......
......@@ -38,7 +38,7 @@
*
* Each elementary data get its own name here.
*
* Through #FMADataDef and #FMADataGroup definitions, each #NAObjectItem
* Through #FMADataDef and #FMADataGroup definitions, each #FMAObjectItem
* derived object which implement the #FMAIFactoryObject interface will
* dynamically define a property for each attached elementary data.
*/
......@@ -50,7 +50,7 @@ G_BEGIN_DECLS
/**
* FMA_FACTORY_OBJECT_ID_GROUP:
*
* #NAObjectId common data.
* #FMAObjectId common data.
*/
#define FMA_FACTORY_OBJECT_ID_GROUP "na-factory-group-id"
#define FMAFO_DATA_ID "na-factory-data-id"
......@@ -61,7 +61,7 @@ G_BEGIN_DECLS
/**
* FMA_FACTORY_OBJECT_ITEM_GROUP:
*
* #NAObjectItem common data.
* #FMAObjectItem common data.
*/
#define FMA_FACTORY_OBJECT_ITEM_GROUP "na-factory-group-item"
#define FMAFO_DATA_IVERSION "na-factory-data-iversion"
......@@ -81,7 +81,7 @@ G_BEGIN_DECLS
/**
* FMA_FACTORY_OBJECT_ACTION_GROUP:
*
* #NAObjectAction specific datas.
* #FMAObjectAction specific datas.
*/
#define FMA_FACTORY_OBJECT_ACTION_GROUP "na-factory-group-action"
#define FMAFO_DATA_VERSION "na-factory-data-version"
......@@ -96,7 +96,7 @@ G_BEGIN_DECLS
* FMA_FACTORY_ACTION_V1_GROUP:
*
* A group of datas which are specific to v 1 actions. It happens to be
* empty as all these datas have been alter embedded in #NAObjectItem
* empty as all these datas have been alter embedded in #FMAObjectItem
* data group.
*/
#define FMA_FACTORY_ACTION_V1_GROUP "na-factory-group-action-v1"
......@@ -104,7 +104,7 @@ G_BEGIN_DECLS
/**
* FMA_FACTORY_OBJECT_MENU_GROUP:
*
* #NAObjectMenu specific datas. It happens to be empty as the definition
* #FMAObjectMenu specific datas. It happens to be empty as the definition
* of a menu is very close of those of an action.
*/
#define FMA_FACTORY_OBJECT_MENU_GROUP "na-factory-group-menu"
......@@ -112,7 +112,7 @@ G_BEGIN_DECLS
/**
* FMA_FACTORY_OBJECT_PROFILE_GROUP:
*
* #NAObjectProfile specific datas.
* #FMAObjectProfile specific datas.
*/
#define FMA_FACTORY_OBJECT_PROFILE_GROUP "na-factory-group-profile"
#define FMAFO_DATA_DESCNAME "na-factory-data-descname"
......
......@@ -33,13 +33,13 @@
/**
* SECTION: ifactory-object
* @title: FMAIFactoryObject
* @short_description: The #NAObjectItem Interface v 1
* @short_description: The #FMAObjectItem Interface v 1
* @include: file-manager-actions/na-ifactory_object.h
*
* This interface is implemented by #NAObjectItem derived objects so that they
* This interface is implemented by #FMAObjectItem derived objects so that they
* can take advantage of our data factory management system.
*
* A #NAObjectItem derived object which would implement this #FMAIFactoryObject
* A #FMAObjectItem derived object which would implement this #FMAIFactoryObject
* interface must meet following conditions:
* <itemizedlist>
* <listitem>
......@@ -92,18 +92,18 @@ typedef struct _FMAIFactoryObjectInterfacePrivate FMAIFactoryObjectInterface
/**
* FMAIFactoryObjectInterface:
* @get_version: returns the version of this interface the NAObjectItem implements.
* @get_version: returns the version of this interface the FMAObjectItem implements.
* @get_groups: returns a pointer to the FMADataGroup which defines this object.
* @copy: post copy callback.
* @are_equal: tests if two NAObjectItem are equals.
* @is_valid: tests if one NAObjectItem is valid.
* @read_start: triggered before serializing a NAObjectItem.
* @read_done: triggered after a NAObjectItem has been serialized.
* @write_start: triggered before unserializing a NAObjectItem.
* @write_done: triggered after a NAObjectItem has been unserialized.
* @are_equal: tests if two FMAObjectItem are equals.
* @is_valid: tests if one FMAObjectItem is valid.
* @read_start: triggered before serializing a FMAObjectItem.
* @read_done: triggered after a FMAObjectItem has been serialized.
* @write_start: triggered before unserializing a FMAObjectItem.
* @write_done: triggered after a FMAObjectItem has been unserialized.
*
* In order to take full advantage of our data managament system,
* NAObjectItem-derived objects all implement this #FMAIFactoryObject
* FMAObjectItem-derived objects all implement this #FMAIFactoryObject
* interface.
*/
typedef struct {
......
......@@ -97,7 +97,7 @@
* </refsect2>
*/
#include "na-object-item.h"
#include "fma-object-item.h"
G_BEGIN_DECLS
......@@ -168,7 +168,7 @@ typedef struct {
#ifdef NA_ENABLE_DEPRECATED
/**
* FMAIImporterCheckFn:
* @imported: the currently imported #NAObjectItem -derived object.
* @imported: the currently imported #FMAObjectItem -derived object.
* @fn_data: some data to be passed to the function.
*
* In version 1 of the interface, this function may be provided by
......@@ -200,17 +200,17 @@ typedef struct {
* Items which may have been loaded by NAPivot at the start of the
* application, and deleted meanwhile, are just ignored.
*
* Returns: the already existing #NAObjectItem with same id, or %NULL.
* Returns: the already existing #FMAObjectItem with same id, or %NULL.
*
* Since: 2.30
* Deprecated: 3.2
*/
typedef NAObjectItem * ( *FMAIImporterCheckFn )( const NAObjectItem *, void * );
typedef FMAObjectItem * ( *FMAIImporterCheckFn )( const FMAObjectItem *, void * );
/**
* FMAIImporterAskUserFn:
* @imported: the currently imported #NAObjectItem.
* @existing: an already existing #NAObjectItem with same id.
* @imported: the currently imported #FMAObjectItem.
* @existing: an already existing #FMAObjectItem with same id.
* @fn_data: some data to be passed to the function.
*
* In version 1 of the interface, this function may be provided by the
......@@ -227,13 +227,13 @@ typedef NAObjectItem * ( *FMAIImporterCheckFn )( const NAObjectItem *, void * );
* Since: 2.30
* Deprecated: 3.2
*/
typedef guint ( *FMAIImporterAskUserFn )( const NAObjectItem *, const NAObjectItem *, void * );
typedef guint ( *FMAIImporterAskUserFn )( const FMAObjectItem *, const FMAObjectItem *, void * );
/**
* FMAIImporterManageImportModeParms:
* @version: [in] the version of the structure content, equals to 1;
* since structure version 1.
* @imported: [in] the imported #NAObjectItem -derived object;
* @imported: [in] the imported #FMAObjectItem -derived object;
* since structure version 1.
* @asked_mode: [in] asked import mode;
* since structure version 1.
......@@ -261,7 +261,7 @@ typedef guint ( *FMAIImporterAskUserFn )( const NAObjectItem *, const NAObjectIt
*/
typedef struct {
guint version;
NAObjectItem *imported;
FMAObjectItem *imported;
guint asked_mode;
FMAIImporterCheckFn check_fn;
void *check_fn_data;
......@@ -306,7 +306,7 @@ guint fma_iimporter_manage_import_mode( FMAIImporterManageImportModeParms *parms
* since structure version 1.
* @import_mode: [out] actually used import mode;
* since structure version 1.
* @imported: [out] the imported #NAObjectItem -derived object, or %NULL;
* @imported: [out] the imported #FMAObjectItem -derived object, or %NULL;
* since structure version 1.
* @check_fn: [in] a FMAIImporterCheckFn() function to check the existence
* of the imported id;
......@@ -335,7 +335,7 @@ typedef struct {
guint asked_mode;
gboolean exist;
guint import_mode;
NAObjectItem *imported;
FMAObjectItem *imported;
FMAIImporterCheckFn check_fn;
void *check_fn_data;
FMAIImporterAskUserFn ask_fn;
......@@ -384,7 +384,7 @@ typedef enum {
* since structure version 2.
* @uri: [in] uri of the file to be imported;
* since structure version 1.
* @imported: [out] the imported #NAObjectItem -derived object, or %NULL;
* @imported: [out] the imported #FMAObjectItem -derived object, or %NULL;
* since structure version 1.
* @messages: [in/out] a #GSList list of localized strings;
* the provider may append messages to this list, but
......@@ -400,7 +400,7 @@ typedef struct {
guint version;
guint content;
const gchar *uri;
NAObjectItem *imported;
FMAObjectItem *imported;
GSList *messages;
}
FMAIImporterImportFromUriParmsv2;
......
......@@ -193,7 +193,7 @@
* </refsect2>
*/
#include "na-object-item.h"
#include "fma-object-item.h"
G_BEGIN_DECLS
......@@ -290,7 +290,7 @@ typedef struct {
* then this greatly lowerize the interest of this I/O provider (!).
*
* Return value: if implemented, this method must return a unordered
* flat GList of NAObjectItem-derived objects (menus or actions);
* flat GList of FMAObjectItem-derived objects (menus or actions);
* the actions embed their own profiles.
*
* Defaults to NULL list.
......@@ -307,7 +307,7 @@ typedef struct {
* It is not supposed to make any assumption on the environment it is
* currently running on.
* This property just says that the developer/maintainer has released
* the needed code in order to update/create/delete NAObjectItem-derived
* the needed code in order to update/create/delete FMAObjectItem-derived
* objects.
*
* Note that even if this property is TRUE, there is yet many
......@@ -360,7 +360,7 @@ typedef struct {
/**
* write_item:
* @instance: the FMAIIOProvider provider.
* @item: a NAObjectItem-derived item, menu or action.
* @item: a FMAObjectItem-derived item, menu or action.
* @messages: a pointer to a GSList list of strings; the provider
* may append messages to this list, but shouldn't reinitialize it.
*
......@@ -379,12 +379,12 @@ typedef struct {
*
* Since: 2.30
*/
guint ( *write_item ) ( const FMAIIOProvider *instance, const NAObjectItem *item, GSList **messages );
guint ( *write_item ) ( const FMAIIOProvider *instance, const FMAObjectItem *item, GSList **messages );
/**
* delete_item:
* @instance: the FMAIIOProvider provider.
* @item: a NAObjectItem-derived item, menu or action.
* @item: a FMAObjectItem-derived item, menu or action.
* @messages: a pointer to a GSList list of strings; the provider
* may append messages to this list, but shouldn't reinitialize it.
*
......@@ -398,32 +398,32 @@ typedef struct {
*
* Since: 2.30
*/
guint ( *delete_item ) ( const FMAIIOProvider *instance, const NAObjectItem *item, GSList **messages );
guint ( *delete_item ) ( const FMAIIOProvider *instance, const FMAObjectItem *item, GSList **messages );
/**
* duplicate_data:
* @instance: the FMAIIOProvider provider.
* @dest: a NAObjectItem-derived item, menu or action.
* @source: a NAObjectItem-derived item, menu or action.
* @dest: a FMAObjectItem-derived item, menu or action.
* @source: a FMAObjectItem-derived item, menu or action.
* @messages: a pointer to a GSList list of strings; the provider
* may append messages to this list, but shouldn't reinitialize it.
*
* FileManager-Actions typically calls this method while duplicating
* a NAObjectItem-derived object, in order to let the I/O provider
* a FMAObjectItem-derived object, in order to let the I/O provider
* duplicates itself specific data (if any) it may have set on
* @source object.
*
* Note that this does not duplicate in any way any
* NAObjectItem-derived object. We are just dealing here with
* FMAObjectItem-derived object. We are just dealing here with
* the provider-specific data which may have been attached to
* the NAObjectItem-derived object.
* the FMAObjectItem-derived object.
*
* Return value: FMA_IIO_PROVIDER_CODE_OK if the duplicate operation
* was successful, or another code depending of the detected error.
*
* Since: 2.30
*/
guint ( *duplicate_data ) ( const FMAIIOProvider *instance, NAObjectItem *dest, const NAObjectItem *source, GSList **messages );
guint ( *duplicate_data ) ( const FMAIIOProvider *instance, FMAObjectItem *dest, const FMAObjectItem *source, GSList **messages );
}
FMAIIOProviderInterface;
......
......@@ -27,14 +27,14 @@
* ... and many others (see AUTHORS)
*/
#ifndef __FILE_MANAGER_ACTIONS_API_NA_OBJECT_ACTION_H__
#define __FILE_MANAGER_ACTIONS_API_NA_OBJECT_ACTION_H__
#ifndef __FILE_MANAGER_ACTIONS_API_OBJECT_ACTION_H__
#define __FILE_MANAGER_ACTIONS_API_OBJECT_ACTION_H__
/**
* SECTION: object-action
* @title: NAObjectAction
* @title: FMAObjectAction
* @short_description: The Action Class Definition
* @include: file-manager-actions/na-object-action.h
* @include: file-manager-actions/fma-object-action.h
*
* This is the class which maintains data and properties of a &prodname;
* action.
......@@ -43,8 +43,8 @@
* <formalpara>
* <title>Edition status</title>
* <para>
* As a particular rule for a #NAObjectItem -derived class,
* a #NAObjectAction is considered modified as soon as any of
* 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).
* </para>
......@@ -52,47 +52,47 @@
* </note>
*/
#include "na-object-item.h"
#include "na-object-profile.h"
#include "fma-object-item.h"
#include "fma-object-profile.h"
G_BEGIN_DECLS
#define NA_TYPE_OBJECT_ACTION ( na_object_action_get_type())
#define NA_OBJECT_ACTION( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, NA_TYPE_OBJECT_ACTION, NAObjectAction ))
#define NA_OBJECT_ACTION_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( klass, NA_TYPE_OBJECT_ACTION, NAObjectActionClass ))
#define NA_IS_OBJECT_ACTION( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, NA_TYPE_OBJECT_ACTION ))
#define NA_IS_OBJECT_ACTION_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE(( klass ), NA_TYPE_OBJECT_ACTION ))
#define NA_OBJECT_ACTION_GET_CLASS( object ) ( G_TYPE_INSTANCE_GET_CLASS(( object ), NA_TYPE_OBJECT_ACTION, NAObjectActionClass ))
#define FMA_TYPE_OBJECT_ACTION ( fma_object_action_get_type())
#define FMA_OBJECT_ACTION( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, FMA_TYPE_OBJECT_ACTION, FMAObjectAction ))
#define FMA_OBJECT_ACTION_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( klass, FMA_TYPE_OBJECT_ACTION, FMAObjectActionClass ))
#define FMA_IS_OBJECT_ACTION( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, FMA_TYPE_OBJECT_ACTION ))
#define FMA_IS_OBJECT_ACTION_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE(( klass ), FMA_TYPE_OBJECT_ACTION ))
#define FMA_OBJECT_ACTION_GET_CLASS( object ) ( G_TYPE_INSTANCE_GET_CLASS(( object ), FMA_TYPE_OBJECT_ACTION, FMAObjectActionClass ))
typedef struct _NAObjectActionPrivate NAObjectActionPrivate;
typedef struct _FMAObjectActionPrivate FMAObjectActionPrivate;
typedef struct {
/*< private >*/
NAObjectItem parent;
NAObjectActionPrivate *private;
FMAObjectItem parent;
FMAObjectActionPrivate *private;
}
NAObjectAction;
FMAObjectAction;
typedef struct _NAObjectActionClassPrivate NAObjectActionClassPrivate;
typedef struct _FMAObjectActionClassPrivate FMAObjectActionClassPrivate;
typedef struct {
/*< private >*/
NAObjectItemClass parent;
NAObjectActionClassPrivate *private;
FMAObjectItemClass parent;
FMAObjectActionClassPrivate *private;
}
NAObjectActionClass;
FMAObjectActionClass;
GType na_object_action_get_type( void );
GType fma_object_action_get_type ( void );
NAObjectAction *na_object_action_new( void );
NAObjectAction *na_object_action_new_with_profile( void );
NAObjectAction *na_object_action_new_with_defaults( void );
FMAObjectAction *fma_object_action_new ( void );
FMAObjectAction *fma_object_action_new_with_profile ( void );
FMAObjectAction *fma_object_action_new_with_defaults ( void );
gchar *na_object_action_get_new_profile_name( const NAObjectAction *action );
gchar *fma_object_action_get_new_profile_name( const FMAObjectAction *action );
void na_object_action_attach_profile( NAObjectAction *action, NAObjectProfile *profile );
void na_object_action_set_last_version( NAObjectAction *action );
void fma_object_action_attach_profile ( FMAObjectAction *action, FMAObjectProfile *profile );
void fma_object_action_set_last_version ( FMAObjectAction *action );
G_END_DECLS
#endif /* __FILE_MANAGER_ACTIONS_API_NA_OBJECT_ACTION_H__ */
#endif /* __FILE_MANAGER_ACTIONS_API_OBJECT_ACTION_H__ */
This diff is collapsed.
......@@ -27,62 +27,62 @@
* ... and many others (see AUTHORS)
*/
#ifndef __FILE_MANAGER_ACTIONS_API_NA_OBJECT_ID_H__
#define __FILE_MANAGER_ACTIONS_API_NA_OBJECT_ID_H__
#ifndef __FILE_MANAGER_ACTIONS_API_OBJECT_ID_H__
#define __FILE_MANAGER_ACTIONS_API_OBJECT_ID_H__
/**
* SECTION: object-id
* @title: NAObjectId
* @title: FMAObjectId
* @short_description: The Identified Object Base Class Definition
* @include: file-manager-actions/na-object-id.h
* @include: file-manager-actions/fma-object-id.h
*
* This is a pure virtual class, i.e. not an instantiatable one.
* It serves as the base class for #NAObject -derived object which have
* a unique Id, i.e. for #NAObjectItem and #NAObjectProfile.
* It serves as the base class for #FMAObject -derived object which have
* a unique Id, i.e. for #FMAObjectItem and #FMAObjectProfile.
*/
#include "na-object.h"
#include "fma-object.h"
G_BEGIN_DECLS
#define NA_TYPE_OBJECT_ID ( na_object_id_get_type())
#define NA_OBJECT_ID( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, NA_TYPE_OBJECT_ID, NAObjectId ))
#define NA_OBJECT_ID_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( klass, NA_TYPE_OBJECT_ID, NAObjectIdClass ))
#define NA_IS_OBJECT_ID( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, NA_TYPE_OBJECT_ID ))
#define NA_IS_OBJECT_ID_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE(( klass ), NA_TYPE_OBJECT_ID ))
#define NA_OBJECT_ID_GET_CLASS( object ) ( G_TYPE_INSTANCE_GET_CLASS(( object ), NA_TYPE_OBJECT_ID, NAObjectIdClass ))
#define FMA_TYPE_OBJECT_ID ( fma_object_id_get_type())
#define FMA_OBJECT_ID( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, FMA_TYPE_OBJECT_ID, FMAObjectId ))
#define FMA_OBJECT_ID_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( klass, FMA_TYPE_OBJECT_ID, FMAObjectIdClass ))
#define FMA_IS_OBJECT_ID( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, FMA_TYPE_OBJECT_ID ))
#define FMA_IS_OBJECT_ID_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE(( klass ), FMA_TYPE_OBJECT_ID ))
#define FMA_OBJECT_ID_GET_CLASS( object ) ( G_TYPE_INSTANCE_GET_CLASS(( object ), FMA_TYPE_OBJECT_ID, FMAObjectIdClass ))
typedef struct _NAObjectIdPrivate NAObjectIdPrivate;
typedef struct _FMAObjectIdPrivate FMAObjectIdPrivate;
typedef struct {
/*< private >*/
NAObject parent;
NAObjectIdPrivate *private;
FMAObject parent;
FMAObjectIdPrivate *private;
}
NAObjectId;
FMAObjectId;
typedef struct _NAObjectIdClassPrivate NAObjectIdClassPrivate;
typedef struct _FMAObjectIdClassPrivate FMAObjectIdClassPrivate;
/**
* NAObjectIdClass:
* @new_id: Allocate a new id to an existing NAObjectId.
* FMAObjectIdClass:
* @new_id: Allocate a new id to an existing FMAObjectId.
*
* The #NAObjectIdClass defines some methods available to derived classes.
* The #FMAObjectIdClass defines some methods available to derived classes.
*/
typedef struct {
/*< private >*/
NAObjectClass parent;
NAObjectIdClassPrivate *private;
FMAObjectClass parent;
FMAObjectIdClassPrivate *private;
/*< public >*/
/**
* new_id:
* @object: a NAObjectId object.
* @new_parent: possibly the new NAObjectId parent, or NULL.
* If not NULL, this should actually be a NAObjectItem.
* @object: a FMAObjectId object.
* @new_parent: possibly the new FMAObjectId parent, or NULL.
* If not NULL, this should actually be a FMAObjectItem.
*
* If @object is a NAObjectProfile, then @new_parent must be a
* not null NAObjectAction. This function ensures that the new
* If @object is a FMAObjectProfile, then @new_parent must be a
* not null FMAObjectAction. This function ensures that the new
* profile name does not already exist in the given @new_parent.
*
* This is a pure virtual function which should be implemented by
......@@ -93,19 +93,19 @@ typedef struct {
*
* Since: 2.30
*/
gchar * ( *new_id )( const NAObjectId *object, const NAObjectId *new_parent );
gchar * ( *new_id )( const FMAObjectId *object, const FMAObjectId *new_parent );
}
NAObjectIdClass;
FMAObjectIdClass;
GType na_object_id_get_type( void );
GType fma_object_id_get_type ( void );
gint na_object_id_sort_alpha_asc ( const NAObjectId *a, const NAObjectId *b );
gint na_object_id_sort_alpha_desc ( const NAObjectId *a, const NAObjectId *b );
gint fma_object_id_sort_alpha_asc ( const FMAObjectId *a, const FMAObjectId *b );
gint fma_object_id_sort_alpha_desc ( const FMAObjectId *a, const FMAObjectId *b );
void na_object_id_prepare_for_paste( NAObjectId *object, gboolean relabel, gboolean renumber, NAObjectId *parent );
void na_object_id_set_copy_of_label( NAObjectId *object );
void na_object_id_set_new_id ( NAObjectId *object, const NAObjectId *new_parent );
void fma_object_id_prepare_for_paste( FMAObjectId *object, gboolean relabel, gboolean renumber, FMAObjectId *parent );
void fma_object_id_set_copy_of_label( FMAObjectId *object );
void fma_object_id_set_new_id ( FMAObjectId *object, const FMAObjectId *new_parent );
G_END_DECLS
#endif /* __FILE_MANAGER_ACTIONS_API_NA_OBJECT_ID_H__ */
#endif /* __FILE_MANAGER_ACTIONS_API_OBJECT_ID_H__ */
......@@ -27,50 +27,50 @@
* ... and many others (see AUTHORS)
*/
#ifndef __FILE_MANAGER_ACTIONS_API_NA_OBJECT_ITEM_H__
#define __FILE_MANAGER_ACTIONS_API_NA_OBJECT_ITEM_H__
#ifndef __FILE_MANAGER_ACTIONS_API_OBJECT_ITEM_H__
#define __FILE_MANAGER_ACTIONS_API_OBJECT_ITEM_H__
/**
* SECTION: object-item
* @title: NAObjectItem
* @title: FMAObjectItem
* @short_description: The Object Item Base Class Definition
* @include: file-manager-actions/na-object-item.h
* @include: file-manager-actions/fma-object-item.h
*
* This is a pure virtual class, i.e. not an instantiatable one, but
* serves as the base class for #NAObjectAction and #NAObjectMenu.
* serves as the base class for #FMAObjectAction and #FMAObjectMenu.
*/
#include "na-object-id.h"
#include "fma-object-id.h"
G_BEGIN_DECLS
#define NA_TYPE_OBJECT_ITEM ( na_object_item_get_type())
#define NA_OBJECT_ITEM( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, NA_TYPE_OBJECT_ITEM, NAObjectItem ))
#define NA_OBJECT_ITEM_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( klass, NA_TYPE_OBJECT_ITEM, NAObjectItemClass ))
#define NA_IS_OBJECT_ITEM( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, NA_TYPE_OBJECT_ITEM ))
#define NA_IS_OBJECT_ITEM_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE(( klass ), NA_TYPE_OBJECT_ITEM ))
#define NA_OBJECT_ITEM_GET_CLASS( object ) ( G_TYPE_INSTANCE_GET_CLASS(( object ), NA_TYPE_OBJECT_ITEM, NAObjectItemClass ))
#define FMA_TYPE_OBJECT_ITEM ( fma_object_item_get_type())
#define FMA_OBJECT_ITEM( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, FMA_TYPE_OBJECT_ITEM, FMAObjectItem ))
#define FMA_OBJECT_ITEM_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( klass, FMA_TYPE_OBJECT_ITEM, FMAObjectItemClass ))
#define FMA_IS_OBJECT_ITEM( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, FMA_TYPE_OBJECT_ITEM ))
#define FMA_IS_OBJECT_ITEM_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE(( klass ), FMA_TYPE_OBJECT_ITEM ))
#define FMA_OBJECT_ITEM_GET_CLASS( object ) ( G_TYPE_INSTANCE_GET_CLASS(( object ), FMA_TYPE_OBJECT_ITEM, FMAObjectItemClass ))