New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add MMCP Development Preview #7155
Draft
jmckisson
wants to merge
111
commits into
Mudlet:development
Choose a base branch
from
jmckisson:mmcp-dev
base: development
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 88 commits
Commits
Show all changes
111 commits
Select commit
Hold shift + click to select a range
fc5b247
mudmaster chat work
jmckisson dd51cb8
mmcp fully working, fixed private chat missing carriage return
jmckisson 9352301
add mmcp files to CMakeLists
jmckisson 87af144
initialize mmcpServer ptr
jmckisson 53ed8e5
Merge branch 'Mudlet:development' into development
jmckisson 269932b
Merge branch 'Mudlet:development' into mmcp-dev
jmckisson 699551d
remove getColorCode, moved to scripts
jmckisson 888e48d
revert WITH_UPDATER
jmckisson df64bc2
chat preferences, snoop, more commands
jmckisson d651e6e
Merge branch 'Mudlet:development' into development
jmckisson ef7e183
Merge branch 'Mudlet:development' into mmcp-dev
jmckisson 0c9242c
Merge branch 'mmcp-dev' of https://github.com/jmckisson/Mudlet into m…
jmckisson 1ec6291
split mmcp lua code into separate cpp file
jmckisson fe42cdc
move mmcp options to child node
jmckisson fc9bfd0
add guards, send mudlet scmVersion as mmcp version
jmckisson 89f8936
add peek, chat msgs now use postMessage
jmckisson d5cf54d
Merge branch 'development' into mmcp-dev
jmckisson 35b17c5
Merge branch 'Mudlet:development' into mmcp-dev
jmckisson 1fff890
Merge branch 'development' of https://github.com/jmckisson/Mudlet int…
jmckisson 295375a
Merge remote-tracking branch 'origin/development' into mmcp-dev
jmckisson ba4fa5f
Merge branch 'mmcp-dev' of https://github.com/jmckisson/Mudlet into m…
jmckisson 19ed75d
cleanup
jmckisson 74bde1a
codefactor fixes
jmckisson eb13e11
fix overtloaded signal connection
jmckisson b1cadee
tab fixes and add copyright
jmckisson c26c141
move copyright
jmckisson f66ac57
cast error signal to avoid conflict with QObject::error
jmckisson 4879de5
add chat group, ip display fixes, newline fix for chatAll
jmckisson 6bba39b
fix port padding
jmckisson bcfe448
side channel
jmckisson 90b9ac4
add end marker to side channel message
jmckisson 12671c9
remove extra newline on chatAll display, move SideChannel event to MM…
jmckisson cb24311
Improve: add support for a codec to support a revised Medievia custom…
SlySven de51573
add leading carriage return to self chatAll display
jmckisson da190f5
Merge branch 'Mudlet:development' into mmcp-dev
jmckisson 75af708
Merge branch 'mmcp-dev' of https://github.com/jmckisson/Mudlet into m…
jmckisson 5c22f1d
Merge remote-tracking branch 'slysven/Improve_addMedieviaSpecificDeco…
jmckisson 729ead2
only send side channel data to mudlet clients
jmckisson 1c61ba2
Merge branch 'development' into mmcp-dev
SlySven 3577e8e
fix and tidy peek request and display
jmckisson 6d319ce
more CR fixes, peek request fix, peek display tidy
jmckisson 69c93cc
dont stat server only to stop it
jmckisson 7c14456
fix handling of partial chat buffers
jmckisson 8f4eb85
pretty up peek list display
jmckisson b094bce
dont echo password and such while snooping
jmckisson 06cd98a
Fix: add missing braces
SlySven 8288aa1
fix chatStartServer arg
jmckisson 80bb588
simplify trimming of displayed chat messages
jmckisson 280754c
fix qt version macro, remove regex for future handling of utf8 encoding
jmckisson c86a8ea
Merge branch 'mmcp-dev' into Fix_addMissingBraces
jmckisson c03c6a7
Merge pull request #1 from SlySven/Fix_addMissingBraces
jmckisson 6db10f0
Improve: simplify some MMCPServer methods
SlySven 07be048
Merge pull request #2 from SlySven/Improve_simplifySomeMMCPServerMethods
jmckisson e690269
mmcpmessage event
jmckisson 37a20f6
fix chatname message in setgroup
jmckisson 4c531b6
Merge branch 'development' into mmcp-dev
SlySven 970be1c
Merge branch 'development' into mmcp-dev
SlySven c7306cc
Merge branch 'development' into mmcp-dev
SlySven 7ab9cb5
fix mmcpmessage event
jmckisson 5cd05ae
add do not disturb
jmckisson aff68a0
Merge branch 'mmcp-dev' of https://github.com/jmckisson/Mudlet into m…
jmckisson 881a570
Merge branch 'development' into mmcp-dev
SlySven a9fd491
Improve: rename some members and methods
SlySven ec6419e
oops
jmckisson 034e499
add chatDoNotDisturb lua func entry
jmckisson 9b9be54
Merge pull request #3 from SlySven/Improve_renameMembersAndMethods
jmckisson afc9570
Infrastructure: remove Host::mMMCPAppendNewlineAfterChats
SlySven 9b930dc
Merge branch 'mmcp-dev' of https://github.com/jmckisson/Mudlet into m…
jmckisson 59d2896
fix do not disturb from merge
jmckisson a9ffe37
add do not disturb to lua registry
jmckisson bf74e60
dont continue with client accept if port part fails
jmckisson f9a050d
prepend chatname to emoteAll messages
jmckisson 8c0d246
Fix: bug in displaying Peek information from a peer
SlySven a06abfc
Fix: typo in revised header guards
SlySven 4025bc3
fix outgoing connect msg
jmckisson 6a11915
use default chat server setting, display server stop message
jmckisson 91ae2f5
Improve: convert `QString(...)` to `qsl(...)` or `tr(...)`
SlySven 8e84cd2
Revise: report disconnections
SlySven f40a188
fix out of order host/post on connect, how did this happen?
jmckisson 4fdb8ee
temporary change, set terminal name to detailed string
jmckisson ade9e69
Fix: handle some pathological cases
SlySven 4fc82e0
Improve: handle the case where a group gets emptied better
SlySven b1de862
Fix: correct three error messages to match others
SlySven 5a5443c
Merge branch 'SlySven_mmcp-dev' into mmcp-dev
SlySven a9f619e
Merge branch 'premerge-mmcp-dev' into mmcp-dev
SlySven 35d10c4
Revert "temporary change, set terminal name to detailed string"
SlySven 401a0a5
Infrastructure: brand this PR's builds with a semi-permanent MMCP text
SlySven ad2a705
Fix: clean up some rough edges
SlySven 524b2b1
Merge pull request #4 from SlySven/mmcp-dev
jmckisson 63bd689
add various chat options
jmckisson 98b03a7
add chat options
jmckisson 58e4dc9
temporary change, provide scmVersion for terminal name
jmckisson 343f03f
add game details and icon for Medievia
jmckisson 49c1f6e
add support for auto accept chat calls and manual accept/deny
jmckisson 0d333bc
change side channel cmd to dec 40
jmckisson 07343f9
re-add postMMCPMessage to clientMessage
jmckisson 0ae856e
add medievia font
jmckisson 7eb11f2
add medievia specific bootstrap script
jmckisson b074655
add bootstrap script for medievia
jmckisson a0e809a
modify formatting of side channel
jmckisson ec3df4b
Merge branch 'development' of https://github.com/jmckisson/Mudlet int…
jmckisson a365885
Merge branch 'development' into mmcp-dev
jmckisson 0b12c4e
update osdn mirror to hopefully working one
jmckisson bbfacfb
add boostrap version
jmckisson 31a35d1
increment boostrap version, trying to get appveyor working
jmckisson c44e64f
try princeton osdn mirror
jmckisson 0e08b83
change mingw-get download to archive.org pr 7204
jmckisson a226d33
update icon to fix libpng bKGD invalid issue
jmckisson c01f5f1
update MedBootstrap script
jmckisson 0e55b62
Merge branch 'development' into mmcp-dev
jlabmckisson d37d45c
Merge branch 'development' into mmcp-dev
SlySven File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
#ifndef MUDLET_MMCP_H | ||
#define MUDLET_MMCP_H | ||
/*************************************************************************** | ||
* Copyright (C) 2024 by John McKisson - john.mckisson@gmail.com * | ||
* Copyright (C) 2024 by Stephen Lyons - slysven@virginmedia.com * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
* This program is distributed in the hope that it will be useful, * | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
* GNU General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU General Public License * | ||
* along with this program; if not, write to the * | ||
* Free Software Foundation, Inc., * | ||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | ||
***************************************************************************/ | ||
|
||
#include "pre_guard.h" | ||
#include <QFlags> | ||
#include "post_guard.h" | ||
|
||
inline static uint16_t csDefaultMMCPHostPort{4050}; | ||
inline static QLatin1String csDefaultMMCPChatName{"Mudlet"}; | ||
inline static QLatin1String csDefaultMMCPGroupName{"<none>"}; | ||
inline static QLatin1String csMMCPChatSideChannelEvent{"sysChatChannelMessage"}; | ||
|
||
enum MMCPChatCommand { | ||
NameChange = 1, | ||
RequestConnections = 2, | ||
ConnectionList = 3, | ||
TextEveryone = 4, | ||
TextPersonal = 5, | ||
TextGroup = 6, | ||
Message = 7, | ||
DoNotDisturb = 8, | ||
Version = 19, | ||
FileStart = 20, | ||
FileDeny = 21, | ||
FileBlockRequest = 22, | ||
FileBlock = 23, | ||
FileEnd = 24, | ||
FileCancel = 25, | ||
PingRequest = 26, | ||
PingResponse = 27, | ||
PeekConnections = 28, | ||
PeekList = 29, | ||
Snoop = 30, | ||
SnoopData = 31, | ||
SnoopColor = 32, | ||
SideChannel = 33, | ||
ChannelData = 240, | ||
End = 255 | ||
}; | ||
Q_DECLARE_FLAGS(MMCPChatCommands, MMCPChatCommand) | ||
|
||
namespace AnsiColors { | ||
constexpr char const* RST = "\x1b[0m"; | ||
constexpr char const* BLD = "\x1b[1m"; | ||
constexpr char const* REV = "\x1b[7m"; | ||
constexpr char const* FBLK = "\x1b[30m"; | ||
constexpr char const* FRED = "\x1b[31m"; | ||
constexpr char const* FGRN = "\x1b[32m"; | ||
constexpr char const* FYEL = "\x1b[33m"; | ||
constexpr char const* FBLU = "\x1b[34m"; | ||
constexpr char const* FMAG = "\x1b[35m"; | ||
constexpr char const* FCYN = "\x1b[36m"; | ||
constexpr char const* FWHT = "\x1b[37m"; | ||
constexpr char const* FBLDGRY = "\x1b[1;30m"; | ||
constexpr char const* FBLDRED = "\x1b[1;31m"; | ||
constexpr char const* FBLDGRN = "\x1b[1;32m"; | ||
constexpr char const* FBLDYEL = "\x1b[1;33m"; | ||
constexpr char const* FBLDBLU = "\x1b[1;34m"; | ||
constexpr char const* FBLDMAG = "\x1b[1;35m"; | ||
constexpr char const* FBLDCYN = "\x1b[1;36m"; | ||
constexpr char const* FBLDWHT = "\x1b[1;37m"; | ||
constexpr char const* BBLK = "\x1b[40m"; | ||
constexpr char const* BRED = "\x1b[41m"; | ||
constexpr char const* BGRN = "\x1b[42m"; | ||
constexpr char const* BYEL = "\x1b[43m"; | ||
constexpr char const* BBLU = "\x1b[44m"; | ||
constexpr char const* BMAG = "\x1b[45m"; | ||
constexpr char const* BCYN = "\x1b[46m"; | ||
constexpr char const* BWHT = "\x1b[47m"; | ||
} // namespace AnsiColors | ||
|
||
#endif // MUDLET_MMCP_H |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.