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

Implements StoreModel and the StoreDragItem stream operators; the drop validation lives in executeDropAction(). More...

#include "storemodel.h"
#include "pass.h"
#include "pathvalidator.h"
#include "plainmessagebox.h"
#include "qtpasslogging.h"
#include "util.h"
#include <QApplication>
#include <QDebug>
#include <QFileSystemModel>
#include <QMessageBox>
#include <QMimeData>
#include <QRegularExpression>
#include <QtGlobal>
Include dependency graph for storemodel.cpp:

Go to the source code of this file.

Functions

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

Detailed Description

Implements StoreModel and the StoreDragItem stream operators; the drop validation lives in executeDropAction().

Definition in file storemodel.cpp.

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: