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 bee53bf commit ef157ab
Show file tree
Hide file tree
Showing 18 changed files with 411 additions and 206 deletions.
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 ef157ab

Please sign in to comment.