mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Move abstract client.
Took 2 minutes
This commit is contained in:
parent
4e7c98829a
commit
5414e3e3b5
33 changed files with 64 additions and 33 deletions
|
|
@ -205,7 +205,7 @@ set(cockatrice_SOURCES
|
|||
src/interface/widgets/visual_deck_storage/visual_deck_storage_widget.cpp
|
||||
src/interface/window_main.cpp
|
||||
src/main.cpp
|
||||
../libcockatrice_network/libcockatrice/client/abstract_client.cpp
|
||||
../libcockatrice_network/libcockatrice/client/abstract/abstract_client.cpp
|
||||
src/server/chat_view/chat_view.cpp
|
||||
src/server/game_selector.cpp
|
||||
src/server/games_model.cpp
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "game_event_handler.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../server/pending_command.h"
|
||||
#include "../tabs/tab_game.h"
|
||||
#include "abstract_game.h"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef COCKATRICE_GAME_STATE_H
|
||||
#define COCKATRICE_GAME_STATE_H
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QTimer>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "player_list_widget.h"
|
||||
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../../interface/pixel_map_generator.h"
|
||||
#include "../../server/user/user_context_menu.h"
|
||||
#include "../../server/user/user_list_manager.h"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#ifndef HOME_WIDGET_H
|
||||
#define HOME_WIDGET_H
|
||||
#include "../../../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../../../tabs/tab_supervisor.h"
|
||||
#include "../cards/card_info_picture_art_crop_widget.h"
|
||||
#include "home_styled_button.h"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef WINDOW_H
|
||||
#define WINDOW_H
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
|
||||
#include <QList>
|
||||
#include <QLoggingCategory>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "game_selector.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../client/get_text_with_max.h"
|
||||
#include "../dialogs/dlg_create_game.h"
|
||||
#include "../dialogs/dlg_filter_games.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "remote_decklist_tree_widget.h"
|
||||
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../pending_command.h"
|
||||
|
||||
#include <QFileIconProvider>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "remote_replay_list_tree_widget.h"
|
||||
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../pending_command.h"
|
||||
|
||||
#include <QFileIconProvider>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "user_context_menu.h"
|
||||
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../../tabs/tab_account.h"
|
||||
#include "../../tabs/tab_game.h"
|
||||
#include "../../tabs/tab_supervisor.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "user_info_box.h"
|
||||
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../../client/get_text_with_max.h"
|
||||
#include "../../dialogs/dlg_edit_avatar.h"
|
||||
#include "../../dialogs/dlg_edit_password.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "user_list_manager.h"
|
||||
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../../client/sound_engine.h"
|
||||
#include "../pending_command.h"
|
||||
#include "user_info_box.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "user_list_widget.h"
|
||||
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../../interface/pixel_map_generator.h"
|
||||
#include "../../tabs/tab_account.h"
|
||||
#include "../../tabs/tab_supervisor.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "abstract_tab_deck_editor.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../client/tapped_out_interface.h"
|
||||
#include "../deck/deck_stats_interface.h"
|
||||
#include "../dialogs/dlg_load_deck.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_account.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../client/sound_engine.h"
|
||||
#include "../deck/custom_line_edit.h"
|
||||
#include "../server/pending_command.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_admin.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../server/pending_command.h"
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_deck_editor.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../client/deck_editor_menu.h"
|
||||
#include "../client/tapped_out_interface.h"
|
||||
#include "../dialogs/dlg_load_deck.h"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef TAB_DECK_STORAGE_H
|
||||
#define TAB_DECK_STORAGE_H
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../server/remote/remote_decklist_tree_widget.h"
|
||||
#include "tab.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_game.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../client/network/replay_timeline_widget.h"
|
||||
#include "../dialogs/dlg_create_game.h"
|
||||
#include "../game/board/arrow_item.h"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef TAB_HOME_H
|
||||
#define TAB_HOME_H
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../interface/widgets/general/home_widget.h"
|
||||
#include "tab.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_logs.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../deck/custom_line_edit.h"
|
||||
#include "../dialogs/dlg_manage_sets.h"
|
||||
#include "../server/pending_command.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_message.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../client/sound_engine.h"
|
||||
#include "../deck/custom_line_edit.h"
|
||||
#include "../main.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_replays.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../server/pending_command.h"
|
||||
#include "../server/remote/remote_replay_list_tree_widget.h"
|
||||
#include "tab_game.h"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef TAB_REPLAYS_H
|
||||
#define TAB_REPLAYS_H
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "tab.h"
|
||||
|
||||
class ServerInfo_User;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_room.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../dialogs/dlg_settings.h"
|
||||
#include "../main.h"
|
||||
#include "../server/chat_view/chat_view.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_server.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../server/pending_command.h"
|
||||
#include "../server/user/user_list_widget.h"
|
||||
#include "tab_supervisor.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tab_supervisor.h"
|
||||
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract_client.h"
|
||||
#include "../../../libcockatrice_network/libcockatrice/client/abstract/abstract_client.h"
|
||||
#include "../interface/pixel_map_generator.h"
|
||||
#include "../main.h"
|
||||
#include "../server/user/user_list_manager.h"
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ set(CMAKE_AUTOUIC ON)
|
|||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
set(HEADERS
|
||||
local_client.h
|
||||
abstract/abstract_client.h
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
local_client.cpp
|
||||
abstract/abstract_client.cpp
|
||||
)
|
||||
|
||||
if (Qt6_FOUND)
|
||||
|
|
@ -17,7 +17,7 @@ elseif (Qt5_FOUND)
|
|||
endif ()
|
||||
|
||||
add_library(
|
||||
libcockatrice_network_client_local STATIC
|
||||
libcockatrice_network_client STATIC
|
||||
${MOC_SOURCES}
|
||||
${SOURCES}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,31 @@
|
|||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
set(HEADERS
|
||||
local_client.h
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
local_client.cpp
|
||||
)
|
||||
|
||||
if (Qt6_FOUND)
|
||||
qt6_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
elseif (Qt5_FOUND)
|
||||
qt5_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
endif ()
|
||||
|
||||
add_library(
|
||||
libcockatrice_network_client_local STATIC
|
||||
${MOC_SOURCES}
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
# add_dependencies(libcockatrice_server libcockatrice_protocol_wrapper)
|
||||
|
||||
target_include_directories(libcockatrice_network_client_local PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
target_link_libraries(
|
||||
libcockatrice_network_client_local PUBLIC ${COCKATRICE_QT_MODULES}
|
||||
)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#include "../../../cockatrice/src/server/abstract_client.h"
|
||||
|
||||
#include "../../../cockatrice/src/server/pending_command.h"
|
||||
#include "../../../../cockatrice/src/server/pending_command.h"
|
||||
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <libcockatrice/protocol/pb/commands.pb.h>
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef LOCALCLIENT_H
|
||||
#define LOCALCLIENT_H
|
||||
|
||||
#include "../abstract_client.h"
|
||||
#include "../abstract/abstract_client.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef REMOTECLIENT_H
|
||||
#define REMOTECLIENT_H
|
||||
|
||||
#include "../abstract_client.h"
|
||||
#include "../abstract/abstract_client.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QTcpSocket>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue