diff options
| author | TrickyLeifa <date.epoch@gmail.com> | 2024-05-16 03:09:21 +0200 |
|---|---|---|
| committer | TrickyLeifa <date.epoch@gmail.com> | 2024-05-16 03:09:21 +0200 |
| commit | 39e4354b1dae5d8487ea5b84be9f304b1950a61a (patch) | |
| tree | 734c99d3ef1a8e69007dd870a8b6763deca5ffce /src/demoserver.cpp | |
| parent | a0cee58c048772b2dcfe3992f60728d5a6f7d786 (diff) | |
Reimplemented favorite server widget, ...
* Reworked favorite server widget
* Renamed `server_type` to `ServerInfo`
* Renamed `connection_type` to `ServerConnectionType`
* Refactored `AOCharButton`
* Reimplemented `AOButton`
* Partially reimplemented `AOEmoteButton`
* Refactored `AOEvidenceButton`
Diffstat (limited to 'src/demoserver.cpp')
| -rw-r--r-- | src/demoserver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demoserver.cpp b/src/demoserver.cpp index c22160da..0573b84e 100644 --- a/src/demoserver.cpp +++ b/src/demoserver.cpp @@ -66,7 +66,7 @@ void DemoServer::accept_connection() { sc_packet = demo_data.dequeue(); AOPacket sc(sc_packet); - num_chars = sc.get_content().length(); + num_chars = sc.content().length(); } else { @@ -94,7 +94,7 @@ void DemoServer::recv_data() QString in_data = QString::fromUtf8(client_sock->readAll()); #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) - const QStringList packet_list = in_data.split("%", QString::SplitBehavior(QString::SkipEmptyParts)); + const QStringList packet_list = in_data.split("%", QString::SkipEmptyParts); #else const QStringList packet_list = in_data.split("%", Qt::SkipEmptyParts); #endif @@ -143,8 +143,8 @@ void DemoServer::handle_packet(AOPacket p_packet) // Also, at some point, I will make akashit // into a shared library. - QString header = p_packet.get_header(); - QStringList contents = p_packet.get_content(); + QString header = p_packet.header(); + QStringList contents = p_packet.content(); if (header == "HI") { |
