Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmtransferdone(3) [centos man page]

XmTransferDone(library call)											      XmTransferDone(library call)

NAME
XmTransferDone -- A toolkit function that completes a data transfer SYNOPSIS
#include <Xm/Xm.h> void XmTransferDone( XtPointer transfer_id, XmTransferStatus status); DESCRIPTION
XmTransferDone completes an already-initiated data transfer operation. An application can call this routine from an XmNdestinationCallback procedure or any function called as a result, including the selection procedures called as a result of calls to XmTransferValue. The caller of XmTransferDone supplies an identifier for the transfer operation and an indication of the completion status. XmTransferDone causes any remaining transfers for the operation to be discarded. transfer_id Specifies a unique indentifier for the data transfer operation. The value must be the same as the value of the transfer_id mem- ber of the XmDestinationCallbackStruct passed to the XmNdestinationCallback procedure. status Specifies the completion status of the data transfer. Following are the possible values: XmTRANSFER_DONE_SUCCEED The transfer was completed successfully. This status has the following additional effects: o For a move operation, the selection owner receives a request to convert the selection to the DELETE target. o If a TRANSACT operation is in progress, the owner receives a request to commit the transaction. o If a PERSIST or _MOTIF_SNAPSHOT operation is in progress, the owner receives a notification that the operation is finished. o The widget class destination procedure is not called. XmTRANSFER_DONE_FAIL The transfer was completed unsuccessfully. This status has the following additional effects: o For a move operation, the selection owner does not receive a request to convert the selection to the DELETE tar- get. o For a drag and drop operation, the DropTransfer's XmNtransferStatus is set to XmTRANSFER_FAILURE. o If a TRANSACT operation is in progress, the owner receives a request to abort the transaction. o If a PERSIST or _MOTIF_SNAPSHOT operation is in progress, the owner receives a notification that the operation is finished. o The widget class destination procedure is not called. XmTRANSFER_DONE_CONTINUE This status has the same effect as XmTRANSFER_DONE_SUCCEED, except that if a PERSIST or _MOTIF_SNAPSHOT operation is in progress, the owner does not receive a notification that the operation is finished. XmTRANSFER_DONE_DEFAULT The widget class destination procedure is called. Further effects depend on the actions of that procedure. RELATED
XmTransferSendRequest(3), XmTransferStartRequest(3), XmTransferStartRequest(3), and XmTransferValue(3). XmTransferDone(library call)

Check Out this Related Man Page

XmTransferValue(library call)											     XmTransferValue(library call)

NAME
XmTransferValue -- A toolkit function that transfers data to a destination SYNOPSIS
#include <Xm/Xm.h> void XmTransferValue( XtPointer transfer_id, Atom target, XtCallbackProc proc, XtPointer client_data, Time time); DESCRIPTION
XmTransferValue converts a selection, transferring any data from the selection owner, in the context of an already-initiated data transfer operation. An application can call this routine from an XmNdestinationCallback procedure or any function called as a result. The caller of XmTransferValue supplies the target to which the selection is converted. The caller also supplies a callback procedure to handle the data that results from the conversion. transfer_id Specifies a unique indentifier for the data transfer operation. The value must be the same as the value of the transfer_id mem- ber of the XmDestinationCallbackStruct passed to the XmNdestinationCallback procedure. target Specifies the target to which the selection is to be converted. proc Specifies a callback procedure to be invoked when the selection has been converted and the data, if any, is available. This pro- cedure is responsible for inserting or otherwise handling any data transferred. The procedure can also terminate the data trans- fer by calling XmTransferDone. The proc receives three arguments: o The widget that requested the conversion o The value of the client_data argument o A pointer to an XmSelectionCallbackStruct This procedure can be called before or after XmTransferValue returns. client_data Specifies data to be passed to the callback procedure (the value of the proc argument) when the selection has been converted. time Specifies the time of the XEvent that triggered the data transfer. You should typically set this field to XtLastTimestampPro- cessed. The callback procedure (the value of the proc argument) receives a pointer to an XmSelectionCallbackStruct, which has the following defini- tion: typedef struct { int reason; XEvent *event; Atom selection; Atom target; Atom type; XtPointer transfer_id; int flags; int remaining; XtPointer value; unsigned long length; int format; } XmSelectionCallbackStruct; reason Indicates why the callback was invoked. event Points to the XEvent that triggered the callback. It can be NULL. selection Specifies the selection that has been converted. target Specifies the target to which XmTransferValue requested conversion. The value is the same as the value of the target argument to XmTransferValue. type Specifies the type of the selection value. This is not the target, but the type used to represent the target. The value XT_CON- VERT_FAIL means that the selection owner did not respond to the conversion request within the Intrinsics selection timeout inter- val. transfer_id Specifies a unique indentifier for the data transfer operation. The value is the same as the value of the transfer_id argument to XmTransferValue. flags This member is currently unused. The value is always XmSELECTION_DEFAULT. remaining Indicates the number of transfers remaining for the operation specified by transfer_id. value Represents the data transferred by this request. The application is responsible for freeing the value by calling XtFree. length Indicates the number of elements of data in value, where each element has the size symbolized by format. If value is NULL, length is 0. format Indicates whether the data in value should be viewed as a list of char, short, or long quantities. Possible values are 8 (for a list of char), 16 (for a list of short), or 32 (for a list of long). RELATED
XmTransferSetParameters(3), XmTransferSendRequest(3), and XmTransferStartRequest(3). XmTransferValue(library call)
Man Page