libQuotient
A Qt library for building matrix clients
Quotient::FileTransferInfo Class Reference

#include <room.h>

Public Types

enum  Status {
  None , Started , Completed , Failed ,
  Cancelled
}
 

Public Member Functions

bool started () const
 
bool completed () const
 
bool active () const
 
bool failed () const
 

Public Attributes

Status status = None
 
bool isUpload = false
 

Properties

Q_GADGETbool isUpload
 
bool active
 
bool started
 
bool completed
 
bool failed
 
int progress = 0
 
int total = -1
 
QUrl localDir {}
 
QUrl localPath {}
 

Detailed Description

The data structure used to expose file transfer information to views

This is specifically tuned to work with QML exposing all traits as Q_PROPERTY values.

Definition at line 52 of file room.h.

Member Enumeration Documentation

◆ Status

Enumerator
None 
Started 
Completed 
Failed 
Cancelled 

Definition at line 64 of file room.h.

Member Function Documentation

◆ active()

bool Quotient::FileTransferInfo::active ( ) const
inline

Definition at line 74 of file room.h.

◆ completed()

bool Quotient::FileTransferInfo::completed ( ) const
inline

Definition at line 73 of file room.h.

◆ failed()

bool Quotient::FileTransferInfo::failed ( ) const
inline

Definition at line 75 of file room.h.

◆ started()

bool Quotient::FileTransferInfo::started ( ) const
inline

Definition at line 72 of file room.h.

Member Data Documentation

◆ isUpload

bool Quotient::FileTransferInfo::isUpload = false

Definition at line 66 of file room.h.

◆ status

Status Quotient::FileTransferInfo::status = None

Definition at line 65 of file room.h.

Property Documentation

◆ active

bool Quotient::FileTransferInfo::active
read

Definition at line 53 of file room.h.

◆ completed

bool Quotient::FileTransferInfo::completed
read

Definition at line 53 of file room.h.

◆ failed

bool Quotient::FileTransferInfo::failed
read

Definition at line 53 of file room.h.

◆ isUpload

Q_GADGETbool Quotient::FileTransferInfo::isUpload

Definition at line 53 of file room.h.

◆ localDir

QUrl Quotient::FileTransferInfo::localDir {}

Definition at line 53 of file room.h.

◆ localPath

QUrl Quotient::FileTransferInfo::localPath {}

Definition at line 53 of file room.h.

◆ progress

int Quotient::FileTransferInfo::progress = 0

Definition at line 53 of file room.h.

◆ started

bool Quotient::FileTransferInfo::started
read

Definition at line 53 of file room.h.

◆ total

int Quotient::FileTransferInfo::total = -1

Definition at line 53 of file room.h.


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