![]() |
![]() |
![]() |
Nautilus-Actions™ Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <nautilus-actions/na-data-types.h>
enum NADataType;
const gchar * na_data_types_get_gconf_dump_key (guint type
);
typedef enum { NA_DATA_TYPE_BOOLEAN = 1, NA_DATA_TYPE_POINTER, NA_DATA_TYPE_STRING, NA_DATA_TYPE_STRING_LIST, NA_DATA_TYPE_LOCALE_STRING, NA_DATA_TYPE_UINT, NA_DATA_TYPE_UINT_LIST, } NADataType;
Each elementary data which would take advantage of NABoxed facilities should be typed at instanciation time.
NAIFactoryProvider implementations should provide a primitive for reading (resp. writing) a value for each of these elementary data types.
Please note that this enumeration may be compiled in by the extensions.
They must so remain fixed, unless you are prepared to see strange effects
(e.g. an extension has been compiled with NA_DATA_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!
a boolean can be initialized with "true" or "false" (case insensitive) | |
a ( void * ) pointer | |
an ASCII string | |
a list of ASCII strings | |
a localized UTF-8 string | |
an unsigned integer | |
a list of unsigned integers |
Since 2.30