QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
StoreDragItem Struct Reference

What a drag from the store tree carries: the kind of the dragged item and its path. More...

#include <storemodel.h>

Public Types

enum class  ItemKind { Unknown , Directory , File }
 Type of the dragged item. More...

Public Attributes

ItemKind kind {ItemKind::Unknown}
QString path

Detailed Description

What a drag from the store tree carries: the kind of the dragged item and its path.

Travels as the kStoreDragMimeType payload (application/vnd.qtpass.store-item), serialised by operator<<() and read back by operator>>().

Definition at line 28 of file storemodel.h.

Member Enumeration Documentation

◆ ItemKind

enum class StoreDragItem::ItemKind
strong

Type of the dragged item.

Enumerator
Unknown 

Item type has not been determined yet

Directory 

Dragged item is a directory

File 

Dragged item is a file

Definition at line 32 of file storemodel.h.

Member Data Documentation

◆ kind

ItemKind StoreDragItem::kind {ItemKind::Unknown}

Type of dragged item

Definition at line 38 of file storemodel.h.

◆ path

QString StoreDragItem::path

Full path to the dragged item

Definition at line 39 of file storemodel.h.


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