Skip to content

Obsolete Members for AttachmentListModel

  • AttachmentListModel
  • 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) bool isAutoApplyEdits() const
    (deprecated) bool isAutoFetchAttachments() const
    (deprecated) void setAutoApplyEdits(bool autoApplyEdits)
    (deprecated) void setAutoFetchAttachments(bool autoFetchAttachments)
    (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

    [deprecated] 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, deprecated] 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.

    [deprecated] 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.

    [deprecated] 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, deprecated] 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.

    [deprecated] 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.

    [deprecated] 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, deprecated] 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.

    [deprecated] 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, deprecated] 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.

    [deprecated] bool AttachmentListModel::isAutoApplyEdits() const

    This function is deprecated. We strongly advise against using it in new code.

    Returns true if the model will automatically apply attachment edits back to the server.

    By default, automatically applying attachment edits is enabled. Only applicable if the model is bound to a ServiceFeatureTable.

    [deprecated] bool AttachmentListModel::isAutoFetchAttachments() const

    This function is deprecated. We strongly advise against using it in new code.

    Returns true if the model will attempt to fetch attachments

    Note that fetchAttachmentsCompleted will emit when automatic fetching of attachments has completed.

    See also setAutoFetchAttachments.

    [deprecated] void AttachmentListModel::setAutoApplyEdits(bool autoApplyEdits)

    This function is deprecated. We strongly advise against using it in new code.

    Set autoApplyEdits to true to have the model automatically apply attachment edits back to the server.

    By default, automatically applying attachment edits is enabled. Only applicable if the model is bound to a ServiceFeatureTable.

    See also isAutoApplyEdits().

    [deprecated] void AttachmentListModel::setAutoFetchAttachments(bool autoFetchAttachments)

    This function is deprecated. We strongly advise against using it in new code.

    Sets whether the model will automatically fetch attachments after an attachment edit operation completes.

    • autoFetchAttachments - Whether to fetch attachments automatically. The default value is true.

    When instantiated, the model always fetches attachments. This setting only limits subsequent attachment fetches.

    See also isAutoFetchAttachments().

    [deprecated] 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.

    [deprecated] 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, deprecated] 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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.