![]() |
NDEVR
API Documentation
|
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. | |
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.
| OWLLinkDisplay::OWLLinkDisplay | ( | QWidget * | parent = nullptr | ) |
Constructs the link display widget.
| [in] | parent | Optional parent widget. |
| void OWLLinkDisplay::saveOWLFile | ( | PopupInfo | info | ) |
Saves the linked OWL file to the local filesystem.
| [in] | info | The popup information for the save dialog. |
| void OWLLinkDisplay::setClient | ( | NDEVRFileClient * | server_actions | ) |
Sets the file client for downloading the linked content.
| [in] | server_actions | The file client interface. |
| void OWLLinkDisplay::setLink | ( | const StringView & | link | ) |
Sets the OWL share link URL to display.
| [in] | link | The share link URL. |
| void OWLLinkDisplay::setPreview | ( | const StringView & | preview_id | ) |
Sets the preview image or text for the linked content.
| [in] | preview_id | The preview resource identifier. |