22 #include <QRegularExpression>
25 #define TOX_HEX_ID_LENGTH 2 * TOX_ADDRESS_SIZE
41 , status(INITIALIZING)
49 ToxFile::ToxFile(uint32_t fileNum, uint32_t friendId, QString filename, QString filePath,
51 : fileKind{TOX_FILE_KIND_DATA}
56 ,
file{
new QFile(filePath)}
58 , direction{Direction}
70 return !(*
this == other);
76 file->setFileName(path);
81 return write ?
file->open(QIODevice::ReadWrite) :
file->open(QIODevice::ReadOnly);