QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
storemodel.h File Reference

StoreModel, the filtering/sorting proxy over the store's QFileSystemModel, and StoreDragItem, the payload of a tree drag. More...

#include <QFileInfo>
#include <QSortFilterProxyModel>
#include <optional>
Include dependency graph for storemodel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StoreDragItem
 What a drag from the store tree carries: the kind of the dragged item and its path. More...
class  StoreModel
 QSortFilterProxyModel for filtering and displaying password store. More...

Functions

auto operator<< (QDataStream &out, const StoreDragItem &info) -> QDataStream &
 Serialize a StoreDragItem for the QtPass MIME type.
auto operator>> (QDataStream &in, StoreDragItem &info) -> QDataStream &
 Deserialize a StoreDragItem from the QtPass MIME type.

Detailed Description

StoreModel, the filtering/sorting proxy over the store's QFileSystemModel, and StoreDragItem, the payload of a tree drag.

Definition in file storemodel.h.

Function Documentation

◆ operator<<()

auto operator<< ( QDataStream & out,
const StoreDragItem & info ) -> QDataStream &

Serialize a StoreDragItem for the QtPass MIME type.

Parameters
outStream to write to.
infoDrag/drop info to serialize.
Returns
The same stream, for chaining.

Definition at line 22 of file storemodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator>>()

auto operator>> ( QDataStream & in,
StoreDragItem & info ) -> QDataStream &

Deserialize a StoreDragItem from the QtPass MIME type.

Unrecognised kind bytes resolve to ItemKind::Unknown rather than being rejected, so a future protocol bump remains decode-safe.

Parameters
inStream to read from.
infoDrag/drop info to populate.
Returns
The same stream, for chaining.

Definition at line 27 of file storemodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: