The following members of class AttachmentListModel are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(deprecated) Esri::ArcGISRuntime::TaskWatcher | addAttachment(QFile *file, const QString &contentType, const QString &name) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | deleteAttachment(Esri::ArcGISRuntime::Attachment *attachment) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | deleteAttachment(int index) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | deleteAttachments(const QList<Esri::ArcGISRuntime::Attachment *> &attachments) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | deleteAttachments(int index, int count = 1) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | fetchAttachments() |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | updateAttachment(Esri::ArcGISRuntime::Attachment *attachment, QFile *file, const QString &contentType, const QString &name) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | updateAttachment(int index, QFile *file, const QString &contentType, const QString &name) |
Signals
(deprecated) void | addAttachmentCompleted(const QUuid &taskId, Esri::ArcGISRuntime::Attachment *attachment) |
(deprecated) void | deleteAttachmentCompleted(const QUuid &taskId) |
(deprecated) void | deleteAttachmentsCompleted(const QUuid &taskId) |
(deprecated) void | fetchAttachmentsCompleted(const QUuid &taskId, const QList<Esri::ArcGISRuntime::Attachment *> &attachments) |
(deprecated) void | updateAttachmentCompleted(const QUuid &taskId) |
Member Function Documentation
Esri::ArcGISRuntime::TaskWatcher AttachmentListModel::addAttachment (QFile *file, const QString &contentType , const QString &name)
This function is deprecated. We strongly advise against using it in new code.
Adds a new feature attachment and returns a TaskWatcher for the asynchronous task.
- file - The file to read that contains the attachment data.
- contentType - The MIME type of the new attachment.
- name - The name to give the new attachment.
If file does not exist, the attachment is added without data.
[signal]
void AttachmentListModel::addAttachmentCompleted (const QUuid &taskId , Esri::ArcGISRuntime::Attachment *attachment)
This function is deprecated. We strongly advise against using it in new code.
Signal emitted when an attachment has finished being added to the feature.
- taskId - The task ID of the asynchronous task.
- attachment - The new attachment for the added attachment.
The returned Attachment object has the AttachmentListModel as its parent.
See also Returned QObjects Parenting.
Esri::ArcGISRuntime::TaskWatcher AttachmentListModel::deleteAttachment (Esri::ArcGISRuntime::Attachment *attachment)
This function is deprecated. We strongly advise against using it in new code.
Deletes an existing attachment from this feature and returns a TaskWatcher for the asynchronous task.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
Esri::ArcGISRuntime::TaskWatcher AttachmentListModel::deleteAttachment (int index)
This function is deprecated. We strongly advise against using it in new code.
Deletes an existing attachment from this feature using its index in the model and returns the a TaskWatcher for the asynchronous task.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
[signal]
void AttachmentListModel::deleteAttachmentCompleted (const QUuid &taskId )
This function is deprecated. We strongly advise against using it in new code.
Signal emitted when an attachment has been deleted from a feature.
- taskId - The task ID of the asynchronous task.
Esri::ArcGISRuntime::TaskWatcher AttachmentListModel::deleteAttachments (const QList<Esri::ArcGISRuntime::Attachment *> &attachments)
This function is deprecated. We strongly advise against using it in new code.
Deletes a list of existing attachments from this feature and returns a TaskWatcher for the asynchronous task.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
Esri::ArcGISRuntime::TaskWatcher AttachmentListModel::deleteAttachments (int index, int count = 1)
This function is deprecated. We strongly advise against using it in new code.
Deletes existing attachments from this feature using a starting index and count from beginning index in the model and returns a TaskWatcher for the asynchronous task.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
[signal]
void AttachmentListModel::deleteAttachmentsCompleted (const QUuid &taskId )
This function is deprecated. We strongly advise against using it in new code.
Signal emitted when attachments have been deleted from a feature.
- taskId - The task ID of the asynchronous task.
Esri::ArcGISRuntime::TaskWatcher AttachmentListModel::fetchAttachments ()
This function is deprecated. We strongly advise against using it in new code.
Fetches the attachments that belong to this feature and returns the a TaskWatcher for the asynchronous task.
Attachments are returned in descending order based on their id.
[signal]
void AttachmentListModel::fetchAttachmentsCompleted (const QUuid &taskId , const QList<Esri::ArcGISRuntime::Attachment *> &attachments)
This function is deprecated. We strongly advise against using it in new code.
Signal emitted when attachments have finished being fetched from a feature.
- taskId - The task ID of the asynchronous task.
- attachments - The list of attachments that were fetched from the feature.
The returned Attachment objects have the AttachmentListModel as their parent.
See also Returned QObjects Parenting.
Esri::ArcGISRuntime::TaskWatcher AttachmentListModel::updateAttachment (Esri::ArcGISRuntime::Attachment *attachment, QFile *file, const QString &contentType , const QString &name)
This function is deprecated. We strongly advise against using it in new code.
Updates an existing attachment and returns the task ID for the asynchronous task.
- attachment - The Attachment describing the attachment to update.
- file - The file to read that contains the attachment data.
- contentType - The MIME type of the attachment.
- name - The name to give the attachment.
If file does not exist, the attachment's data is removed.
Esri::ArcGISRuntime::TaskWatcher AttachmentListModel::updateAttachment (int index, QFile *file, const QString &contentType , const QString &name)
This function is deprecated. We strongly advise against using it in new code.
Updates a feature attachment referenced at a given index in the model, and returns the task ID for the asynchronous task.
- index - The index in the model.
- file - The file to read that contains the attachment data.
- contentType - The MIME type of the attachment.
- name - The name to give the attachment.
If file does not exist, the attachment's data is removed.
[signal]
void AttachmentListModel::updateAttachmentCompleted (const QUuid &taskId )
This function is deprecated. We strongly advise against using it in new code.
Signal emitted when an attachment has been updated in a feature.
- taskId - The task ID of the asynchronous task.