sudden6
9971bc3a1e
refactor(core): make construction independent of CoreAV
...
Allows to construct a Core object without also starting CoreAV.
5 years ago
sudden6
85e9aeea2f
refactor(core): finally remove Core::getInstance
...
This makes Core completly independent of Nexus
5 years ago
sudden6
a90f0762d9
refactor(cmake): change folder structure
...
The new folder structure will be like this:
/<module>/CMakeLists.txt
/<module>/src/file.cpp
/<module>/include/<module>/file.h
/<module>/<subdir>/<...>
5 years ago
Anthony Bilinski
5a877d742b
refactor(core): pass bootstrap list interface to Core
5 years ago
Anthony Bilinski
8abd4e47e9
refactor(style): use #pragma once rather than include guards
5 years ago
Anthony Bilinski
f756dbae2a
chore(cleanup): don't explicitly initialize std::unique_ptr to nullptr
...
Fix #6009
5 years ago
Anthony Bilinski
2e173ec6ad
refactor(core): move stateless parsing functions to anonymous namespace
6 years ago
jenli669
04a9bc46f4
docs(copyright): update and add copyright info
...
zealously updates and adds qTox copyright information.
Fixes #5713
6 years ago
Mick Sayson
f0d840002a
refactor(messages): Create class to manage sending/receiving group messages from core
6 years ago
Mick Sayson
3fd4ce5952
refactor(core): Remove length parameter from splitMessages
...
* From the archeology I managed, MAX_GROUP_MESSAGE_LEN was a workaround
for an old toxcore bug. Testing removal of this parameter and replacing it
with tox_max_message_length() seems to work fine.
6 years ago
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
dd007877a9
refactor(status): move Status out of Widget
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
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
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
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
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
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
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
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
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
sudden6
0ad80288dc
fix(ui): don't emit filename change windows for every chat
7 years ago
sudden6
291e86d9f9
fix(ui): don't emit filename change windows for every chat
7 years ago
sudden6
24e7c4efd4
refactor(core): format code
7 years ago
sudden6
5ec983d8f5
refactor(core): remove unused return value and fix comment
7 years ago
sudden6
7f7b29e55e
refactor(core): use smart pointers instead of raw pointers
7 years ago
sudden6
6aa215e96f
refactor(core): protect the tox main loop with a mutex
7 years ago
sudden6
e5acc6726f
refactor(core): reimplement avatar transfers
...
In the process of this I used some ugly hacks, to finish this in time,
they should be changed as soon as possible.
7 years ago
sudden6
b647f9291e
refactor(core): reimplement profile saving
7 years ago
sudden6
e56ee4a134
refactor(core): fix bootstrapping
7 years ago
sudden6
a8494980da
refactor(core): fix error handling
7 years ago
sudden6
8574162949
refactor(core): cleanup Core class
...
- use a factory method to create it
- make it handle its own thread
- remove dependency on GUI
7 years ago
Alice
ab85716f00
fix(core): Clean illegal chars from filenames
...
Fixes : #1304
7 years ago
Anthony Bilinski
5dc4e6de81
chore(legal): update copyright date to 2018 for all source files
7 years ago
sudden6
d3d81bbdf3
feat: update to the new c-toxcore 0.2.0 conferences api
...
The old functions are disabled at compile time and should be removed
later.
8 years ago
sudden6
09ad16bc44
refactor: cleanup notifications and core
8 years ago