Mick Sayson
e5016337bb
refactor(offlinemsg): Decouple OfflineMsgEngine from other components
6 years ago
sudden6
22362d2940
refactor(audio): Remove Audio singleton
...
This commit finally removes the Audio singleton and allocates the audio
backend in main.cpp.
6 years ago
Anthony Bilinski
08839b7052
refactor(group): remove redundant updatePeer API
6 years ago
Anthony Bilinski
6522988e8c
fix(corefile): cancel file transfer when peer goes offline
6 years ago
Anthony Bilinski
1628d495d1
fix(corefile): handle empty avatar transfer in core
6 years ago
Anthony Bilinski
b1eefc3f23
fix(corefile): include file id in map when sending empty avatar
6 years ago
sudden6
e7e35642d7
refactor(audio): introduce IAudioSource interface and use it
6 years ago
sudden6
a8546fe8cb
refactor: use smart pointer instead of raw pointer
6 years ago
sudden6
47402fae90
refactor: run formatting script
6 years ago
sudden6
5b908184fc
refactor(audio): move audio output to new IAudioSink interface
6 years ago
Anthony Bilinski
dd007877a9
refactor(status): move Status out of Widget
6 years ago
Anthony Bilinski
f7603c294b
refactor(id): use toxPk and groupId instead of core numbers
...
Allows creating classes for blocked friends which have toxPks but no
core number.
6 years ago
Anthony Bilinski
ec500b6673
refactor(status): add Blocked status, deduplicate status parsing
...
Blocked status will represent friends who are removed from Toxcore, but who still exist in UI and can be readded to Toxcore at a future time using their public key. Blocked friends are similar to offline friends, but have a different status icon and will be seperated in the friends list.
6 years ago
Anthony Bilinski
0f5ad725d7
fix(groups): fix assert on group invite accept
6 years ago
Anthony Bilinski
97d05f9d67
refactor(id): make ContactId interface, implement GroupId
...
Precursor for group history, friend blocking
6 years ago
sudden6
0da72e22d3
refactor: remove dead code
6 years ago
sudden6
a4ad8c71b8
refactor(core): make CoreFile its own independent class
...
This paves the way for better testability of Core as well as CoreFile.
6 years ago
sudden6
f03262e98b
refactor(core): remove duplicate code and checks
6 years ago
sudden6
b033b5095b
refactor(core): use mutable keyword instead of smart pointer
6 years ago
sudden6
66f72ee863
refactor(core): remove unused function
...
This function would always return true for any non destroyed Core
object.
6 years ago
sudden6
93a7fdfe03
refactor(core): cleanup Core public functions
6 years ago
sudden6
b7b9b58d42
refactor: make ToxCall non-moveable
...
We don't need move functionality and the code for it is complex and
error prone.
6 years ago
sudden6
acef759a58
feat: remove old boostrap nodes code
...
This commit replaces the bootstrap node list in the qtox.ini file with
the boostrapnodeupdater class.
7 years ago
Anthony Bilinski
13afbf7ec6
fix(groups): avoid having to lookup peer pk
...
Caused race where peer plays audio, then is removed from group, then we
process audio played signal and lookup their peerId in core where it
doesn't exist. Now Group will effectively contain the peer until the
peer list changed slot is processed.
Partial fix for #5511
7 years ago
Anthony Bilinski
edf6b67313
refactor(core): strong type message receipt and row ID
...
Avoid implicit casting and invalid arithmetic.
7 years ago
Anthony Bilinski
8422c09f6a
fix(groups): don't invalidate all audio sources when peer list changes
...
Fix #5508
7 years ago
Anthony Bilinski
ec07fd7291
feat(groups): show who is in a group call before joining
...
Fix #5507
7 years ago
Anthony Bilinski
5289c99962
feat(core): add send message error handling
...
remove unused sendMessageResult signal
7 years ago
Mick Sayson
3615425234
refactor(transfer): Remove unnecessary split for pause send/recv
7 years ago
Mick Sayson
293a1d615c
fix(transfer): Accurately represent pause state in UI
...
Toxcore has a 3 state pause, us, them, or both. Currently our UI
messes up if both parties pause. This changeset changes our UI behavior
to show whether we're paused, or if we are waiting on the remote to
unpause.
7 years ago
Anthony Bilinski
8db744a505
feat(core): set group title for loaded groups
...
Replace double static_cast of pointer with reinterpret_cast.
reinterpret_cast in unsafe because the underlying data may be
meaningless in the new type, static cast to void then to a new pointer
type has exactly the same problem. This is our intention here.
7 years ago
Anthony Bilinski
84362244da
refactor(files): change ToxFile's fileName to QString
7 years ago
Anthony Bilinski
c8ffa1f921
fix(settings): repair saved invalid proxy type due to #5311
7 years ago
Anthony Bilinski
8427be6678
feat(db): add file hash to file history
...
Not currently used, but there are plans to display if a transfered file
has been modified, which the file hash will be needed for. Adding file
hash at the same time as file history also saves a db schema update.
7 years ago
Mick Sayson
567ddfb203
feat(db): Database support for file history
7 years ago
Mick Sayson
157be30b11
refactor(files): Refactor FileTransferWidget
...
Rational here is that the current FileTransferWidget is quite
entangled with core logic. If we are going to instantiate the
FileTransferWidget without an active file transfer the widget needs to
behave sanely without getting messages from toxcore. This changeset is
an attempt to allow us to move from any FileTransferWidget state to any
other state without having to go through the appropriate state
transitions.
7 years ago
sudden6
a82eb6f36e
feat(core): prepare qTox for groupchat saving
...
This change creates groups on startup of Core. We need this once
https://github.com/TokTok/c-toxcore/pull/1156 is merged to load existing
groups.
7 years ago
sudden6
6cce0dae83
fix(toxoptions): handle nullptr in parameters
...
Use the c-toxcore default settings in case we don't have own settings.
7 years ago
sudden6
c6a197feca
refactor: re-format and cleanup
7 years ago
Anthony Bilinski
e1201f901f
chore(core): improve failed decryption error handling
7 years ago
sudden6
7fa2dfead5
refactor(coreav): move CoreAV to the factory pattern too
...
- clean up error handling during construction of the Core
- prevent leaks by using unique_ptr
7 years ago
sudden6
2ab081b4a9
refactor: remove support for c-toxcore < 0.2.0
...
This code is only a maintainance burden and not used anymore.
7 years ago
sudden6
10a4b249bb
fix(core): remove pgc code
...
This code was needed for the pgc implementation, but is not needed for
minipgc
7 years ago
sudden6
26206a35eb
fix(core): ensure QTimers are moved with the objects they belong to
...
We use the Qt parent/child model instead of unique_ptr to achieve this.
7 years ago
sudden6
a139a9933b
refactor(core): cleanup thread and timer destruction in Core and CoreAV
7 years ago
Mick Sayson
f988177a9b
fix(core): Fix misuse of toxcore tox_file_send API
7 years ago
Anthony Bilinski
cc6df2c294
chore(core): use new toxcore enum typenames
...
Fix #5287
7 years ago
Anthony Bilinski
0c757356d3
fix(avatar): set friend to identicon on empty avatar receipt
...
*All friend avatar changes and removals go through Profile, so that Profile can manage identicons
*Split the concept of "changed" and "removed" into "changed", "set", and "removed"
Fixes #4724
7 years ago
iphydf
31f54d4d1c
refactor: Improve toxcore-originated log messages.
...
This changes ToxLogger to behave as if `qDebug()` were used inside
toxcore itself, i.e. with the correct file/line/func.
7 years ago
sudden6
0ad80288dc
fix(ui): don't emit filename change windows for every chat
7 years ago