LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::NetworkResult Class Reference

#include "networkresult.h"

+ Inheritance diagram for LC::Util::NetworkResult:
+ Collaboration diagram for LC::Util::NetworkResult:

Public Member Functions

std::optional< NetworkReplyErrorIsError () const
 
QByteArray GetReplyData () const
 
Either< QString, QByteArray > ToEither (const std::source_location &=std::source_location::current()) const
 
Either< QString, QByteArray > ToEither (const QString &errorContext) const
 

Detailed Description

Definition at line 50 of file networkresult.h.

Member Function Documentation

◆ GetReplyData()

QByteArray LC::Util::NetworkResult::GetReplyData ( ) const

Definition at line 50 of file networkresult.cpp.

References LC::Util::NetworkReplySuccess::Data_, and LC::Util::Visit().

+ Here is the call graph for this function:

◆ IsError()

std::optional< NetworkReplyError > LC::Util::NetworkResult::IsError ( ) const

Definition at line 43 of file networkresult.cpp.

◆ ToEither() [1/2]

Either< QString, QByteArray > LC::Util::NetworkResult::ToEither ( const QString & errorContext) const

Definition at line 69 of file networkresult.cpp.

References LC::Util::NetworkReplySuccess::Data_, and LC::Util::Visit().

+ Here is the call graph for this function:

◆ ToEither() [2/2]

Either< QString, QByteArray > LC::Util::NetworkResult::ToEither ( const std::source_location & loc = std::source_location::current ()) const

Definition at line 57 of file networkresult.cpp.

References LC::Util::NetworkReplySuccess::Data_, and LC::Util::Visit().

+ Here is the call graph for this function:

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