NADataType

NADataType — The Data Factory Type Definitions

Synopsis

#include <nautilus-actions/na-data-types.h>

enum                NAFactoryDataType;
const gchar *       na_data_types_get_gconf_dump_key    (guint type);

Description

Details

enum NAFactoryDataType

typedef enum {
	NAFD_TYPE_STRING = 1,
	NAFD_TYPE_LOCALE_STRING,
	NAFD_TYPE_BOOLEAN,
	NAFD_TYPE_STRING_LIST,
	NAFD_TYPE_POINTER,
	NAFD_TYPE_UINT
}
	NAFactoryDataType;

Warning

NAFactoryDataType is deprecated and should not be used in newly-written code. 3.1.0

Each elementary factory data must be typed as one of these IFactoryProvider implementations should provide a primitive for reading (resp. writing) a value for each of these elementary data types.

Note

Please note that this enumeration may be compiled in by the extensions. They must so remain fixed, unless you want see strange effects (e.g. an extension has been compiled with NAFD_TYPE_STRING = 2, while you have inserted another element, making it to 3 !) - or you know what you are doing...

So, only add new items at the end of the enum. You have been warned!

Starting with version 3.1.0, NAFactoryDataType is deprecated in favour of NABoxed structure. New code should only use NABoxed structure and accessors.

NAFD_TYPE_STRING

an ASCII string

NAFD_TYPE_LOCALE_STRING

a localized UTF-8 string

NAFD_TYPE_BOOLEAN

a boolean can be initialized with "true" or "false" (case insensitive)

NAFD_TYPE_STRING_LIST

a list of ASCII strings

NAFD_TYPE_POINTER

a ( void * ) pointer should be initialized to NULL

NAFD_TYPE_UINT

an unsigned integer

na_data_types_get_gconf_dump_key ()

const gchar *       na_data_types_get_gconf_dump_key    (guint type);

Warning

na_data_types_get_gconf_dump_key is deprecated and should not be used in newly-written code. 3.1.0

type :

the FactoryData type.

Returns :

the GConf key suitable for this type. The returned key is owned by the factory data management system, and should not be released by the caller.

Since 2.30