Commit Graph

56 Commits

Author SHA1 Message Date
Kjistóf b68057f4f3 changed executable name to match project name 2016-12-09 19:42:22 +01:00
Kjistóf 3c3acaaaa5 added REQUIRED flag to Qt5Widgets in CMakeLists.txt 2016-12-07 19:15:22 +01:00
Kjistóf 55df60d51f made replaced -pthread flag with more civilized CMake options 2016-12-07 19:15:22 +01:00
Kjistóf 612e650efc added a compiler flag to silence switch warning -- it's intentional 2016-12-07 19:15:22 +01:00
Kjistóf 253929fa79 hooked up GUI and networking, first release candidate 2016-12-07 19:15:17 +01:00
Kjistóf 0c77d04a3c added a get_header() method to class chat_message 2016-12-07 19:13:41 +01:00
Kjistóf 2b82fc3e1a made chat_message's operator<< inline, so there are no linker errors 2016-12-07 19:13:41 +01:00
Kjistóf 3faabb1e4e receive_policy must provide an invalid_msg_do_what method 2016-12-07 19:13:41 +01:00
Kjistóf e1f42bf31d clients now can subscribe to be nofified when cnm receives a message 2016-12-07 19:13:41 +01:00
Kjistóf fa1078a313 added a hander for returnPressed() in QLineEdit of GUI 2016-12-07 19:13:41 +01:00
Kjistóf 750554a55a started working on GUI in Qt5 2016-12-07 19:13:41 +01:00
Kjistóf 08365c0471 removed unnecessary and stupid ctor delegator from chat_message 2016-12-07 19:13:41 +01:00
Kjistóf 41221076da added missing -pthread compiler flag 2016-12-07 19:13:41 +01:00
Kjistóf 406c7b2841 added comments to chat_networking.hpp to promote better understanding 2016-12-07 19:13:41 +01:00
Kjistóf c256a9a928 commandline_chat's policies now get their messages via const reference 2016-12-07 19:13:41 +01:00
Kjistóf ab4a102bad fixed a bug, where messages would only be read till whitespaces 2016-12-07 19:13:13 +01:00
Kjistóf 09c2dafba5 added a length() method for checking message length 2016-12-07 19:12:05 +01:00
Kjistóf eed5fc25d9 added a little good old fashioned command-line chat action 2016-12-07 19:11:52 +01:00
Kjistóf d0a995d6da fixed bugs (random tabs appering) regarding message content handling 2016-12-04 13:59:17 +01:00
Kjistóf cf4bc2f142 added a get_content() method, which excludes command byte & term byte 2016-12-04 13:58:25 +01:00
Kjistóf d673fd24d1 removed unused include 2016-12-04 13:29:45 +01:00
Kjistóf 0283b3e2ed removed boost.serialization from project, as it is not yet used 2016-12-04 12:52:21 +01:00
Kjistóf 1bd1cb343a implemented message handling for every type of message via policies 2016-12-04 12:51:28 +01:00
Kjistóf 7eb1191a1d completed TODO: handshaking messages are now handled by receive policy 2016-12-03 23:27:36 +01:00
Kjistóf e03a3e9aa3 removed code i have written learning boost::asio. 2016-12-03 20:56:07 +01:00
Kjistóf f6fb183649 added compile time check to cnm for the validity of the supplied policy 2016-12-03 20:56:02 +01:00
Kjistóf 66c758f13a implemented a SFINAE compile-time checker for receive policies 2016-12-03 18:44:09 +01:00
Kjistóf 7a9e581979 added missing include guard to chat_networking.hpp 2016-12-03 18:18:08 +01:00
Kjistóf 88aff84db1 what to do on received messages is now handled via template policies 2016-12-03 16:26:13 +01:00
Kjistóf 5cfef17cc2 implemented cnm::close_connection() + general code cleaning + added TODOS 2016-12-03 15:30:15 +01:00
Kjistóf 6f34d28458 rearranged code in client_network_manager, so it is more readable 2016-12-03 14:30:55 +01:00
Kjistóf ee9e5c812b added some proof of concept receive handling in client_network_manager 2016-12-03 14:23:11 +01:00
Kjistóf 36f0aca693 made byte(message) helper method constexpr so it is compile time 2016-12-03 14:22:49 +01:00
Kjistóf faaea542ce added new source files to CMakeLists.txt and a test config 2016-12-03 13:52:27 +01:00
Kjistóf 096d56d488 now client_network_manager::receive() actually works 2016-12-03 13:51:33 +01:00
Kjistóf 9c8f985210 added function byte(message) for more readable message->byte conversion 2016-12-03 13:50:09 +01:00
Kjistóf 9c9118c34d added teszt.cpp to .gitignore -> use this for testing 2016-12-03 13:23:25 +01:00
Kjistóf b42aa09286 reformatted source code 2016-12-03 13:22:51 +01:00
Kjistóf 75f77766c1 moved everything to namespace chat to avoid namespace pollution 2016-12-03 13:13:06 +01:00
Kjistóf 07284e5dc7 made client_network_manager mostly working. it can handle a handshake 2016-12-03 13:02:37 +01:00
Kjistóf f8c57c8e24 fixed chat_message: now enum class message has underlying type of char 2016-12-03 11:51:27 +01:00
Kjistóf 28f1fe7655 added missing const qualifier 2016-11-29 19:14:06 +01:00
Kjistóf 271faf4b0c added default empty content to chat_message ctor 2016-11-29 18:46:09 +01:00
Kjistóf 8cddc402f1 added a send() method to the network manager and removed a ctor parameter 2016-11-29 18:42:38 +01:00
Kjistóf 60bb1e6142 started working on the networking part of the chat client 2016-11-29 18:24:33 +01:00
Kjistóf c6750bbb54 added chat_message.hpp to represent messages 2016-11-29 17:55:00 +01:00
Kjistóf be89be49da added cmake-build-debug to .gitignore 2016-11-29 17:53:17 +01:00
Kjistóf deb50433de started work on the interface of chat_messages 2016-11-26 13:46:14 +01:00
Kjistóf 4215343175 bugfix: messages would only be received till the first whitespace 2016-11-20 11:14:20 +01:00
Kjistóf 41f81518c2 reworked message's receive interface 2016-11-20 00:18:14 +01:00