Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtOhosAppKit::ShareKit::ShareControllerOptions Class Referenceabstract

\inmodule QtOhosAppKit More...

#include <qohossharekit_p.h>

Collaboration diagram for QtOhosAppKit::ShareKit::ShareControllerOptions:

Public Member Functions

virtual ~ShareControllerOptions ()
virtual void setAnchorOffset (QPoint anchorOffset)=0
 Sets sharing pop-up window anchor window offset with a given anchorOffset.
virtual void setAnchor (QRect anchor)=0
 Sets anchor offset and size with a given anchor.
virtual void setSingleSelectionMode (bool singleSelectionMode)=0
 Sets sharing selection mode with a given singleSelectionMode.
virtual void setDefaultPreviewMode (bool defaultPreviewMode)=0
 Set sharing panel preview mode with a given defaultPreviewMode.
virtual void setExcludedAbilities (const QList< ShareAbilityType > &excludedAbilities)=0
 Set a list of capabilities that do not need to be displayed in the operation area.

Protected Member Functions

 ShareControllerOptions ()

Detailed Description

\inmodule QtOhosAppKit

Since
5.12.12

The ShareControllerOptions class is to configure items, such as the preview mode of the shared content, selection mode, and other information, and pop-up window anchor. It determines the display style of the sharing panel. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010} {ShareControllerOptions}

Definition at line 84 of file qohossharekit_p.h.

Constructor & Destructor Documentation

◆ ~ShareControllerOptions()

QtOhosAppKit::ShareKit::ShareControllerOptions::~ShareControllerOptions ( )
virtualdefault

◆ ShareControllerOptions()

QtOhosAppKit::ShareKit::ShareControllerOptions::ShareControllerOptions ( )
protecteddefault

Member Function Documentation

◆ setAnchor()

virtual void QtOhosAppKit::ShareKit::ShareControllerOptions::setAnchor ( QRect anchor)
pure virtual

Sets anchor offset and size with a given anchor.

See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section19505934714} {ShareControllerAnchor}

◆ setAnchorOffset()

virtual void QtOhosAppKit::ShareKit::ShareControllerOptions::setAnchorOffset ( QPoint anchorOffset)
pure virtual

Sets sharing pop-up window anchor window offset with a given anchorOffset.

See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010} {ShareControllerOptions.anchor}

◆ setDefaultPreviewMode()

virtual void QtOhosAppKit::ShareKit::ShareControllerOptions::setDefaultPreviewMode ( bool defaultPreviewMode)
pure virtual

Set sharing panel preview mode with a given defaultPreviewMode.

If defaultPreviewMode is true, default preview mode (thumbnail card) is set, detail mode otherwise. Detail mode is recommended for images and videos. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010} {ShareControllerOptions.previewMode}

◆ setExcludedAbilities()

virtual void QtOhosAppKit::ShareKit::ShareControllerOptions::setExcludedAbilities ( const QList< ShareAbilityType > & excludedAbilities)
pure virtual

Set a list of capabilities that do not need to be displayed in the operation area.

See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010} {ShareControllerOptions.excludedAbilities}

◆ setSingleSelectionMode()

virtual void QtOhosAppKit::ShareKit::ShareControllerOptions::setSingleSelectionMode ( bool singleSelectionMode)
pure virtual

Sets sharing selection mode with a given singleSelectionMode.

If singleSelectionMode is true, single selection is set, batch mode otherwise. See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/share-system-share#section107934816010} {ShareControllerOptions.selectionMode}


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