Chris Smith
c30a2756fb
Use KeyStoreLocator in CertificateManager.
Closes #664
8 gadus atpakaļ
Chris Smith
54cb9d0c9d
Add a KeyStoreLocator.
This provides a nice interface to find a system-wide keystore
for us to use for trusted certificates.
Issue #664
8 gadus atpakaļ
Chris Smith
4382bce3aa
Remove child event busses.
Closes #662 .
8 gadus atpakaļ
Chris Smith
648309f055
Add source checks for eventbus handlers.
In preparation for child eventbusses being removed, anything
trying to subscribe to specific windows now needs an explicit
check.
Issue #662
8 gadus atpakaļ
Chris Smith
8cd93c8c7e
Add a base class for events with a WindowModel source.
For #662 , it makes sense to have a standard way to
get the source from events we may wish to filter.
This introduces a SourcedEvent interface, and adapts classes
to use it.
8 gadus atpakaļ
Chris Smith
8371b0978c
Remove some unused code.
8 gadus atpakaļ
Chris Smith
8e1c213a8c
Make topics use new date APIs.
8 gadus atpakaļ
Chris Smith
0fa22d3ad3
Replace old date APIs in error reporting code.
8 gadus atpakaļ
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 gadus atpakaļ
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 gadus atpakaļ
Chris Smith
b54efa3c82
Remove some unused code.
8 gadus atpakaļ
Chris Smith
9ccf14368a
Remove unused DisplayableEvent properties.
Now everything is using events, we don't need the legacy
format identifier.
8 gadus atpakaļ
Chris Smith
18cb00a6bc
Assorted tidying.
8 gadus atpakaļ
Chris Smith
869713b4db
Assign IDs to windows.
This allows windows to be uniquely identified and shared with
clients that are running outside of the DMDirc process (e.g.
a web UI, or a remote instance).
8 gadus atpakaļ
Chris Smith
1141fd113f
Pass WindowModel into Server.
8 gadus atpakaļ
Chris Smith
96933fd89a
Tear Server and FrameContainer apart.
8 gadus atpakaļ
Chris Smith
10de163267
Separate InputModel functions from FrameContainer.
8 gadus atpakaļ
Chris Smith
217b5b1a22
Remove input methods from WindowModel.
Migrate all users to using the InputModel.
8 gadus atpakaļ
Chris Smith
334b8d3d99
Introduce a model for window input.
Instead of WindowModel defining lots of methods on the off-chance
that the window is writable, pull them all into a separate
optional InputModel.
For ease of transition, FrameContainer will just implement both,
but eventually the input handling should be pulled out into
its own class.
8 gadus atpakaļ
Chris Smith
874b2afd2d
Remove FrameContainer parent/child fields.
8 gadus atpakaļ
Chris Smith
9d18ce8942
Remove usages of FrameContainer window methods.
These will be going away shortly.
8 gadus atpakaļ
Chris Smith
d6e6cb3c96
Make the WindowManager track windows.
Despite its name and description, the WindowManager relied on
each FrameContainer having a reference to its parents and all
its children.
The WindowManager now stores this information itself, and so
the FrameContainer methods can be gradually phased out.
8 gadus atpakaļ
Chris Smith
a3b2815d16
Remove ramaining addLine methods.
Closes #426
8 gadus atpakaļ
Chris Smith
7bfdf45249
Add events for sent messages/ctcps/notices/raw lines.
8 gadus atpakaļ
Chris Smith
2b171bb83d
Use events in ShowTopic command.
8 gadus atpakaļ
Chris Smith
7a5d418285
Remove another deprecated method.
8 gadus atpakaļ
Chris Smith
b7fd4e6fe1
Move raw events into plugins.
8 gadus atpakaļ
Chris Smith
787c72850f
Use events for raw data in/out.
Issue #426
8 gadus atpakaļ
Chris Smith
d080e44956
Remove some unused methods.
8 gadus atpakaļ
Chris Smith
dc0f607943
Add display property to suppress timestamps.
Formats defined in YAML can specify 'timestamps: false' to hide
the default timestamp for lines associated with that event.
Closes #633
8 gadus atpakaļ
Chris Smith
6b1e6e7e5c
Use the right annotation to subscribe.
8 gadus atpakaļ
Chris Smith
57cf21576b
Make LogUtils more robust.
Also make event bus errors have a better message.
Closes #627
8 gadus atpakaļ
Chris Smith
7d5a0de34e
Allow plugins to specify event formats.
Closes #622
8 gadus atpakaļ
Chris Smith
f270d34aa3
Use snapshot version of raven, send relase.
This enables release tracking in sentry.
8 gadus atpakaļ
Chris Smith
8e701d9b8a
Propagate exceptions sanely.
8 gadus atpakaļ
Chris Smith
7421c1fa83
Use the new MutliEventFormatProvider.
Issue #622
8 gadus atpakaļ
Chris Smith
e7e5315116
Add format provider that handles multiple sources.
This will allow plugins to supply their own format providers
while still allowing the user to override them using the
main format.yml file.
Issue #622
8 gadus atpakaļ
Chris Smith
1ad67b6c3f
Update to MBassador 1.2.4.
This release contains some performance improvements compared
to the version we were using.
Error handlers are now passed in at construction time, so
there was a small bit of refactoring required.
8 gadus atpakaļ
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 gadus atpakaļ
Chris Smith
ad223b1a6e
Remove WhoisNumericFormatter.
8 gadus atpakaļ
Chris Smith
bc37a9d982
Improve formatting of whois events.
8 gadus atpakaļ
Chris Smith
ef2357d347
Add ugly event-based whois output.
This allows events to iterate over a collection property, and
adds formatting for whois results. It needs a lot of tidying,
but it's a start...
8 gadus atpakaļ
Chris Smith
1767fa4e99
Add formatter support for before/after templates.
This allows formats that may be multi-line (whois results,
probably MOTD results at some point, etc...) to show a header
and footer around the actual content.
8 gadus atpakaļ
Chris Smith
e1e78e2437
Couple more deprecation fixes.
8 gadus atpakaļ
Chris Smith
621a53cf06
Change all command error/output to use events.
8 gadus atpakaļ
Chris Smith
2204bf0570
Convert some commands to use output events.
8 gadus atpakaļ
Chris Smith
e060357fb2
Fix deprecated methods in CommandFlagHandler.
8 gadus atpakaļ
Chris Smith
86bd33fedb
Deprecate things that should be replaced by events
8 gadus atpakaļ
Chris Smith
dfb63e9836
Add some more events, remove some unused methods.
8 gadus atpakaļ
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 gadus atpakaļ