Chris Smith
192550f434
Move event bus code to a bundle.
Issue #750
7 years ago
Chris Smith
4c35da850d
Update copyright.
7 years ago
Chris Smith
5cc0af4324
Use EventBus interface.
This is just an IntelliJ refactor, using EventBus in place of
DMDircMBassador whenever possible.
7 years ago
Chris Smith
015d7aa8ac
Fix a few places where Query is temporarily needed.
7 years ago
Chris Smith
03e9dd99fa
Use proper import ordering.
8 years ago
Chris Smith
c01e26f5b9
Tidy up nick change handling.
It doesn't make sense to have a public method in Connection to
muddle around with how queries are tracked, nor for queries to
tell servers when they change (creating a dependency loop).
Instead, have the ServerEventHandler tell Server.
8 years ago
Chris Smith
d15111ddd3
Restructure to standard maven/gradle layout.
Stop swimming against the tide and accept what most of the rest of
the world does.
While it adds an annoying depth to the actual source code, it makes
the root directory nicer (no more 'test-res' dirs), means we don't
have to override the gradle config, and makes it nicer to work in
IDEA 2016.1.
8 years ago
Chris Smith
deb3b52ce4
Update date handling after parser changes.
The parser now uses the new API too, so we don't need to
do horrible things to convert.
8 years ago
Chris Smith
513120b5be
Convert events to use new date APIs.
Java 8 introduces a sane API for dates; to store datettimes
we should now be using LocalDateTime.
8 years ago
Chris Smith
96933fd89a
Tear Server and FrameContainer apart.
8 years ago
Chris Smith
b5e200216d
Disable numeric formatting, remove dead code.
With numeric formatting gone, all output is either added direct
to a window (which will be changed soon) or done through
displayable events. Message sinks are now completely unused,
as they don't affect displayable events.
Issue #426
8 years ago
Chris Smith
4b61733f0c
Move some more formats over to events.
This allows us to remove a fair chunk of the notification
handling functionality in FrameContainer.
Issue 426
8 years ago
Chris Smith
1576c2c798
Tidy up some unused/uncommonly used methods.
I think these will eventually go away entirely, once everything
is event-bus'd, but I'm not entirely sure how that works any
more :(
8 years ago
Chris Smith
f0019ffb26
Fix source of notice events.
We were raising notices as all coming from the local user, not
the person that sent the notice. This is... unideal.
9 years ago
Chris Smith
2c6a9413e3
Slf4j a few more bits.
9 years ago
Chris Smith
9176802331
Remove checkParser checks.
9 years ago
Greg Holmes
a8242ee8c4
Use new whois event from parser.
9 years ago
Greg Holmes
bc7a436581
Use new parser errors
9 years ago
Chris Smith
ea13622549
Make a couple more events use new formatter.
Stop ChannelListModesRetrieved being displayable - not sure
why it ever was, we don't have a formatter for it.
9 years ago
Greg Holmes
7455fe09da
Fix client after parser changes. Eventbouseseses.
9 years ago
Greg Holmes
fa3dabee4f
Switch to Guava String padding in ServerNumeric
9 years ago
Greg Holmes
a865e687bc
Switch QuerySelfExternal{Action,Message} to events.
9 years ago
Chris Smith
70a3692bed
Make more server events use the new formatter.
9 years ago
Chris Smith
d12b554b19
Make some server events use the new formatter.
9 years ago
Greg Holmes
58ba212b0a
Fix line wrapping.
9 years ago
Greg Holmes
9d53d5ec41
Add invite to ServerInviteReceivedEvent.
9 years ago
Chris Smith
4349f58de7
Move invite handling into a separate class.
9 years ago
Chris Smith
020a9eed0f
Use new InviteManager iface.
Delete the duplicated methods from Connection.
9 years ago
Chris Smith
3993ee8156
Fix away state dodgyness.
Since changing to events we need to fire when changing from
unknown->away. Before, this was handled by the Server being
told about the new message (and then firing listeners).
Fixes #391 .
9 years ago
Chris Smith
f9eb1c1275
Make a separate GroupChatManager.
For now this is just a straight(ish) copy of the way Server worked.
Need to make it use events in the future which should simplify it
quite a bit.
9 years ago
Chris Smith
615f1d6622
Make CTCPs use the new formatter.
9 years ago
Chris Smith
42fe0db71f
Fix naming of events.
We no longer need to be consistent with the odd casing/naming
of actions.
9 years ago
Greg Holmes
a69affc703
Pass Users into doNotification everywhere.
9 years ago
Greg Holmes
48124d1965
Remove some uses of parser local user.
9 years ago
Shane Mc Cormack
9f3fcd1b59
2015!
9 years ago
Greg Holmes
a855f03a91
Fix some optionals from the merge.
9 years ago
Greg Holmes
348033fc13
Stop get(Local)User returning Optional.
9 years ago
Chris Smith
6586b8ad11
Make Query use Users better.
Also remove some more parseHostname calls.
9 years ago
Greg Holmes
82ce43c8a6
Remove some more ClientInfo usages.
9 years ago
Chris Smith
7661d5e45c
Use User in Invite.
9 years ago
Chris Smith
a28204440c
Push some event handling into ServerEventHandler.
9 years ago
Greg Holmes
802c905565
Fix unit test and add methods.
9 years ago
Greg Holmes
59e3352531
Make events use User.
9 years ago
Greg Holmes
9af0c8c996
Switch events to User.
9 years ago
Greg Holmes
1961e6f908
Camel case ServerInviteReceivedEvent.java
9 years ago
Greg Holmes
5dde881c86
Tidy up away states in Connection.
9 years ago
Chris Smith
6ecb8e2e9a
Make getParser() optional.
Returning null is bad.
9 years ago
Greg Holmes
4e5663a58c
Add EventBus logging to EventHandler.
Change-Id: Ied14c2fb45e4fd4f761d3cc4f3f000e48f5f6fcb
Reviewed-on: http://gerrit.dmdirc.com/3905
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
353c485c62
EventUtil tidying.
Move to util package. Add constants for standard priorities.
Change-Id: Id469276751d8a31f19690469540d2c5d07cbe3bc
Reviewed-on: http://gerrit.dmdirc.com/3827
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
746bb6081d
Generify MBassador.
Change-Id: Id3cfa404a56528542120f79c969d992a5c183aba
Reviewed-on: http://gerrit.dmdirc.com/3771
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago