Skip to content

Commit

Permalink
refactor: Migrate from tox callbacks to tox events.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Jan 1, 2025
1 parent d8f28a5 commit c518972
Show file tree
Hide file tree
Showing 19 changed files with 425 additions and 220 deletions.
28 changes: 14 additions & 14 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
bazel-opt_task:
timeout_in: 10m
container:
image: toxchat/toktok-stack:latest-release
cpu: 8
memory: 6G
configure_script:
- /src/workspace/tools/inject-repo qtox
test_all_script:
- cd /src/workspace && bazel
--max_idle_secs=5
test -k
//qtox/...
# ---
# bazel-opt_task:
# timeout_in: 10m
# container:
# image: toxchat/toktok-stack:latest-release
# cpu: 8
# memory: 6G
# configure_script:
# - /src/workspace/tools/inject-repo qtox
# test_all_script:
# - cd /src/workspace && bazel
# --max_idle_secs=5
# test -k
# //qtox/...
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ set(${PROJECT_NAME}_SOURCES
src/core/toxid.h
src/core/conferenceid.cpp
src/core/conferenceid.h
src/core/conferencetype.cpp
src/core/conferencetype.h
src/core/toxlogger.cpp
src/core/toxlogger.h
src/core/toxoptions.cpp
Expand Down
23 changes: 23 additions & 0 deletions src/core/conferencetype.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2024 The TokTok team.
*/

#include "conferencetype.h"

#include <QDebug>

QDebug operator<<(QDebug debug, ConferenceType type)
{
switch (type) {
case ConferenceType::UNKNOWN:
debug << "UNKNOWN";
break;
case ConferenceType::TEXT:
debug << "TEXT";
break;
case ConferenceType::AV:
debug << "AV";
break;
}
return debug;
}
17 changes: 17 additions & 0 deletions src/core/conferencetype.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2024 The TokTok team.
*/

#pragma once

#include <QMetaType>

enum class ConferenceType
{
UNKNOWN,
TEXT,
AV,
};
Q_DECLARE_METATYPE(ConferenceType)

QDebug operator<<(QDebug debug, ConferenceType type);
Loading

0 comments on commit c518972

Please sign in to comment.