|
@@ -23,6 +23,8 @@
|
23
|
23
|
package com.dmdirc.events;
|
24
|
24
|
|
25
|
25
|
import com.dmdirc.config.prefs.PreferencesCategory;
|
|
26
|
+import com.dmdirc.interfaces.config.AggregateConfigProvider;
|
|
27
|
+import com.dmdirc.interfaces.config.ConfigProvider;
|
26
|
28
|
|
27
|
29
|
/**
|
28
|
30
|
* Raised when the connection preferences are requested.
|
|
@@ -30,13 +32,26 @@ import com.dmdirc.config.prefs.PreferencesCategory;
|
30
|
32
|
public class ConnectionPrefsRequestedEvent extends PreferencesEvent {
|
31
|
33
|
|
32
|
34
|
private final PreferencesCategory category;
|
|
35
|
+ private final AggregateConfigProvider config;
|
|
36
|
+ private final ConfigProvider identity;
|
33
|
37
|
|
34
|
|
- public ConnectionPrefsRequestedEvent(final PreferencesCategory category) {
|
|
38
|
+ public ConnectionPrefsRequestedEvent(final PreferencesCategory category,
|
|
39
|
+ final AggregateConfigProvider config, final ConfigProvider identity) {
|
35
|
40
|
this.category = category;
|
|
41
|
+ this.config = config;
|
|
42
|
+ this.identity = identity;
|
36
|
43
|
}
|
37
|
44
|
|
38
|
45
|
public PreferencesCategory getCategory() {
|
39
|
46
|
return category;
|
40
|
47
|
}
|
41
|
48
|
|
|
49
|
+ public ConfigProvider getIdentity() {
|
|
50
|
+ return identity;
|
|
51
|
+ }
|
|
52
|
+
|
|
53
|
+ public AggregateConfigProvider getConfig() {
|
|
54
|
+ return config;
|
|
55
|
+ }
|
|
56
|
+
|
42
|
57
|
}
|