NDEVR
API Documentation
OWLLinkDisplay

Widget that displays an OWL share link and allows saving the linked file. More...

Public Member Functions

 OWLLinkDisplay (QWidget *parent=nullptr)
 Constructs the link display widget.
void saveOWLFile (PopupInfo info)
 Saves the linked OWL file to the local filesystem.
void setClient (NDEVRFileClient *server_actions)
 Sets the file client for downloading the linked content.
void setLink (const StringView &link)
 Sets the OWL share link URL to display.
void setPreview (const StringView &preview_id)
 Sets the preview image or text for the linked content.

Detailed Description

Widget that displays an OWL share link and allows saving the linked file.

Shows the OWL link URL, a preview of the linked content, and provides a save button for downloading the linked file to the local filesystem.

Definition at line 52 of file OWLLinkDisplay.h.

Constructor & Destructor Documentation

◆ OWLLinkDisplay()

OWLLinkDisplay::OWLLinkDisplay ( QWidget * parent = nullptr)

Constructs the link display widget.

Parameters
[in]parentOptional parent widget.

Member Function Documentation

◆ saveOWLFile()

void OWLLinkDisplay::saveOWLFile ( PopupInfo info)

Saves the linked OWL file to the local filesystem.

Parameters
[in]infoThe popup information for the save dialog.

◆ setClient()

void OWLLinkDisplay::setClient ( NDEVRFileClient * server_actions)

Sets the file client for downloading the linked content.

Parameters
[in]server_actionsThe file client interface.

◆ setLink()

void OWLLinkDisplay::setLink ( const StringView & link)

Sets the OWL share link URL to display.

Parameters
[in]linkThe share link URL.

◆ setPreview()

void OWLLinkDisplay::setPreview ( const StringView & preview_id)

Sets the preview image or text for the linked content.

Parameters
[in]preview_idThe preview resource identifier.

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