The following members of class PortalFolderListModel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) void | append(const Esri::ArcGISRuntime::PortalFolder &portalFolder) |
(obsolete) void | clear() |
(obsolete) void | insert(int index, const Esri::ArcGISRuntime::PortalFolder &portalFolder) |
(obsolete) void | move(int from, int to) |
(obsolete) void | removeAt(int index) |
(obsolete) void | removeOne(const Esri::ArcGISRuntime::PortalFolder &portalFolder) |
Signals
(obsolete) void | portalFolderAdded(int index) |
(obsolete) void | portalFolderRemoved(int index) |
Member Function Documentation
[signal]
void PortalFolderListModel::portalFolderAdded (int index)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Signal emitted when a PortalFolder is added to the list model.
index is the index of the added PortalFolder. Use itemAdded(int index) instead
[signal]
void PortalFolderListModel::portalFolderRemoved (int index)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Signal emitted when a PortalFolder is removed from the list model.
index is the index of the removed PortalFolder. Use itemRemoved(int index) instead
void PortalFolderListModel::append(const Esri::ArcGISRuntime::PortalFolder &portalFolder )
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Appends the PortalFolder portalFolder to the list model.
This method only affects the local instance of this list model class. To create a folder in the user's online portal, use PortalUser::createFolder and PortalUser::fetchContent instead.
void PortalFolderListModel::clear()
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Removes all PortalFolder objects from the list model.
This method only affects the local instance of this list model class. To remove the folders from the online portal, use PortalUser::deleteFolder instead.
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.
void PortalFolderListModel::insert(int index, const Esri::ArcGISRuntime::PortalFolder &portalFolder )
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Inserts PortalFolder portalFolder at the specified index in the list model.
This method will append to the list model if the specified index is greater than the current size of the list.
This method only affects the local instance of this list model class. To create a folder in the user's online portal, use PortalUser::createFolder and PortalUser::fetchContent instead.
Note: There is no valid method to change the order of a portal user's folders in the API.
void PortalFolderListModel::move(int from, int to)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Moves one PortalFolder from an index in the list model to a different index.
This method only affects the local instance of this list model class. This method will not move the folder in the online portal.
void PortalFolderListModel::removeAt (int index)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Removes a PortalFolder at the specified index.
This method only affects the local instance of this list model class. To remove the folder at index from the online portal, use PortalUser::deleteFolder instead.
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.
void PortalFolderListModel::removeOne (const Esri::ArcGISRuntime::PortalFolder &portalFolder )
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Removes the PortalFolder portalFolder from the list model.
This method only affects the local instance of this list model class. To remove the folder from the online portal, use PortalUser::deleteFolder instead.
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.