|
MoSync 3.0.1
|
Classes | |
| struct | MA_PIM_ARGS |
| Arguments for PIM functions. More... | |
Typedefs | |
| typedef struct MA_PIM_ARGS | MA_PIM_ARGS |
| Arguments for PIM functions. | |
Functions | |
| MAHandle | maPimListOpen (int listType) |
| Opens a PimList. Use maPimListNext() to open the list's items. | |
| MAHandle | maPimListNext (MAHandle list) |
| Returns a handle to the next PimItem in the list, or 0 if there are no more items, or < 0 on error. You must use maPimItemClose() on every item to prevent memory leaks. | |
| int | maPimListClose (MAHandle list) |
| Closes a PimList. | |
| int | maPimItemCount (MAHandle item) |
| Returns the number of fields in the item. | |
| int | maPimItemGetField (MAHandle item, int n) |
| Returns the field id of the item's n:th field. Panics on invalid indices. | |
| int | maPimItemFieldCount (MAHandle item, int field) |
| Returns the number of values in the field for a given item. | |
| int | maPimItemGetAttributes (MAHandle item, int field, int index) |
| Returns the attribute for the specified value in a field and item. Panics on field/index combinations that don't exist in this item. | |
| int | maPimItemSetLabel (const MA_PIM_ARGS *args, int index) |
| Sets a custom label for a value in a field and item. Panics on field/index combinations that don't exist in this item. The value's attribute must be set to custom. The label has MA_PIM_TYPE_STRING and is stored in args.buf. args.bufSize must be valid. | |
| int | maPimItemGetLabel (const MA_PIM_ARGS *args, int index) |
| int | maPimFieldType (MAHandle list, int field) |
| int | maPimItemGetValue (const MA_PIM_ARGS *args, int index) |
| int | maPimItemSetValue (const MA_PIM_ARGS *args, int index, int attributes) |
| int | maPimItemAddValue (const MA_PIM_ARGS *args, int attributes) |
| int | maPimItemRemoveValue (MAHandle item, int field, int index) |
| int | maPimItemClose (MAHandle item) |
| MAHandle | maPimItemCreate (MAHandle list) |
| int | maPimItemRemove (MAHandle list, MAHandle item) |
| typedef struct MA_PIM_ARGS MA_PIM_ARGS |
Arguments for PIM functions.
| MAHandle maPimListOpen | ( | int | listType | ) |
Opens a PimList. Use maPimListNext() to open the list's items.
| listType | One of the MA_PIM constants. |
References maIOCtl().
| MAHandle maPimListNext | ( | MAHandle | list | ) |
Returns a handle to the next PimItem in the list, or 0 if there are no more items, or < 0 on error. You must use maPimItemClose() on every item to prevent memory leaks.
| list | List handle provided by maPimListOpen(int listType). |
References maIOCtl().
| int maPimListClose | ( | MAHandle | list | ) |
Closes a PimList.
| list | List handle provided by maPimListOpen(int listType). |
References maIOCtl().
| int maPimItemCount | ( | MAHandle | item | ) |
Returns the number of fields in the item.
| item | Item handle provided by maPimListNext(MAHandle list). |
References maIOCtl().
| int maPimItemGetField | ( | MAHandle | item, |
| int | n | ||
| ) |
Returns the field id of the item's n:th field. Panics on invalid indices.
| item | Opened by maPimListNext(). |
| n | >= 0 and < maPimItemCount(). |
References maIOCtl().
| int maPimItemFieldCount | ( | MAHandle | item, |
| int | field | ||
| ) |
Returns the number of values in the field for a given item.
| item | Opened by maPimListNext(). |
| field | One of the MA_PIM_FIELD constants. |
References maIOCtl().
| int maPimItemGetAttributes | ( | MAHandle | item, |
| int | field, | ||
| int | index | ||
| ) |
Returns the attribute for the specified value in a field and item. Panics on field/index combinations that don't exist in this item.
| item | Opened by maPimListNext(). |
| field | One of the MA_PIM_FIELD constants. |
| index | >= 0 and < maPimItemFieldCount(). |
References maIOCtl().
| int maPimItemSetLabel | ( | const MA_PIM_ARGS * | args, |
| int | index | ||
| ) |
Sets a custom label for a value in a field and item. Panics on field/index combinations that don't exist in this item. The value's attribute must be set to custom. The label has MA_PIM_TYPE_STRING and is stored in args.buf. args.bufSize must be valid.
| args | Common arguments. |
| index | An index into the field's value array. This is a number >= 0 and < the return value of maPimItemFieldCount(). |
References maIOCtl().
| int maPimItemGetLabel | ( | const MA_PIM_ARGS * | args, |
| int | index | ||
| ) |
Retrieves the custom label for a value in a field and item, if the value has a custom label. The label has MA_PIM_TYPE_STRING and is stored in args.buf. args.bufSize must be valid.
| args | Common arguments. |
| index | An index into the field's value array. This is a number >= 0 and < the return value of maPimItemFieldCount(). |
References maIOCtl().
| int maPimFieldType | ( | MAHandle | list, |
| int | field | ||
| ) |
Returns one of the type of the field.
| list | Opened by maPimListOpen(). |
| field | One of the MA_PIM_FIELD constants. |
References maIOCtl().
| int maPimItemGetValue | ( | const MA_PIM_ARGS * | args, |
| int | index | ||
| ) |
Copies the specified value from a field and item to args.buf.
| args | Common arguments. |
| index | An index into the field's value array. This is a number >= 0 and < the return value of maPimItemFieldCount(). |
References maIOCtl().
| int maPimItemSetValue | ( | const MA_PIM_ARGS * | args, |
| int | index, | ||
| int | attributes | ||
| ) |
Changes a value and its attributes in a field and item. This function cannot be used to add a new value.
| args | Common arguments. |
| index | An index into the field's value array. This is a number >= 0 and < the return value of maPimItemFieldCount(). |
| attributes | The value's new attributes. |
References maIOCtl().
| int maPimItemAddValue | ( | const MA_PIM_ARGS * | args, |
| int | attributes | ||
| ) |
Adds a new value to a field and item.
| args | Common arguments. |
| attributes | The new value's attributes. |
References maIOCtl().
| int maPimItemRemoveValue | ( | MAHandle | item, |
| int | field, | ||
| int | index | ||
| ) |
Removes a value from a field and item.
| item | Opened by maPimListNext(). |
| field | One of the MA_PIM_FIELD constants. |
| index | >= 0 and < maPimItemFieldCount(). |
References maIOCtl().
| int maPimItemClose | ( | MAHandle | item | ) |
Closes the handle to a PimItem, releasing resources used by the system. Writes any changes to disk.
References maIOCtl().
| MAHandle maPimItemCreate | ( | MAHandle | list | ) |
Creates a new empty item in the specified list.
References maIOCtl().
| int maPimItemRemove | ( | MAHandle | list, |
| MAHandle | item | ||
| ) |
Removes an item from a list. This also has the effect of closing the item.
References maIOCtl().