NDEVR
API Documentation
OWLFileManager

File management widget for browsing, opening, and managing files on an OWL server. More...

Public Member Functions

 OWLFileManager (DesignObjectLookup *lookup, OWLClientInterface *server, QWidget *parent=nullptr)
 Constructs the file manager.
void downloadURL (const StringView &url)
 Downloads a file from the specified OWL URL.
void finishedOpenSignal ()
 Emitted when a file has been opened successfully.
void finishedSignal ()
 Emitted when the file manager workflow has completed.
std::pair< ServerPermission, ServerResourceInfogetSelectedResourceInfo () const
 Returns the permission and resource info for the currently selected item.
void refresh ()
 Refreshes the file list from the server.
void requestManageOWLLink (sint04 link_id)
 Emitted when the user requests to manage a share link.
void requestManageServers ()
 Emitted when the user requests to manage server connections.
void setConnectionID (UUID id)
 Sets the connection ID to browse files on.

Protected Member Functions

void onContentSelectionChanged ()
 Handles selection changes in the content/version list.
void onOWLSelectionChanged ()
 Handles selection changes in the OWL file list.

Detailed Description

File management widget for browsing, opening, and managing files on an OWL server.

Provides a browsable list of server files with controls for opening, downloading, deleting, and managing share links and versions.

Definition at line 53 of file OWLFileManager.h.

Constructor & Destructor Documentation

◆ OWLFileManager()

OWLFileManager::OWLFileManager ( DesignObjectLookup * lookup,
OWLClientInterface * server,
QWidget * parent = nullptr )

Constructs the file manager.

Parameters
[in]lookupThe design object lookup for project data.
[in]serverThe OWL client interface for server communication.
[in]parentOptional parent widget.

Member Function Documentation

◆ downloadURL()

void OWLFileManager::downloadURL ( const StringView & url)

Downloads a file from the specified OWL URL.

Parameters
[in]urlThe OWL URL to download.

◆ getSelectedResourceInfo()

std::pair< ServerPermission, ServerResourceInfo > OWLFileManager::getSelectedResourceInfo ( ) const

Returns the permission and resource info for the currently selected item.

Returns
A pair of the server permission and resource info.

◆ requestManageOWLLink()

void OWLFileManager::requestManageOWLLink ( sint04 link_id)

Emitted when the user requests to manage a share link.

Parameters
[in]link_idThe ID of the link to manage.

◆ setConnectionID()

void OWLFileManager::setConnectionID ( UUID id)

Sets the connection ID to browse files on.

Parameters
[in]idThe UUID of the server connection.

The documentation for this class was generated from the following file: