forked from TokTok/qTox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use Qt's DNS lookup instead of toxcore's.
This is in preparation for sending DNS lookups to tor-resolve. Also prefer IPv6 if enabled. Fixes TokTok#164.
- Loading branch information
Showing
6 changed files
with
80 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* SPDX-License-Identifier: GPL-3.0-or-later | ||
* Copyright © 2025 The TokTok team. | ||
*/ | ||
|
||
#pragma once | ||
|
||
class QObject; | ||
|
||
struct LaterDeleter | ||
{ | ||
QObject* ptr; | ||
|
||
explicit LaterDeleter(QObject* ptr_); | ||
~LaterDeleter(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* SPDX-License-Identifier: GPL-3.0-or-later | ||
* Copyright © 2025 The TokTok team. | ||
*/ | ||
|
||
#include "util/laterdeleter.h" | ||
|
||
#include <QObject> | ||
|
||
LaterDeleter::LaterDeleter(QObject* ptr_) | ||
: ptr(ptr_) | ||
{ | ||
} | ||
|
||
LaterDeleter::~LaterDeleter() | ||
{ | ||
ptr->deleteLater(); | ||
} |