ngx-kel-agent 1.0.5 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,158 +0,0 @@
1
- import { AgentMessageService } from './agent-message.service';
2
- import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
3
- import { HamlibRigState } from './hamlib-messages';
4
- import { HamlibService } from './hamlib.service';
5
- import { WsjtxClear, WsjtxClose, WsjtxDecode, WsjtxHeartbeat, WsjtxHighlightCallsign, WsjtxLoggedAdif, WsjtxQsoLogged, WsjtxStatus, WsjtxWsprDecode } from './wsjtx-messages';
6
- import { WsjtxService } from './wsjtx.service';
7
- import * as i0 from "@angular/core";
8
- export declare class AgentService {
9
- private messages;
10
- private hamlibService;
11
- private wsjtxService;
12
- /** Whether we're connected to the agent. */
13
- readonly connectedState$: BehaviorSubject<boolean>;
14
- /**
15
- * Whether we're getting any messages from WSJT-X.
16
- *
17
- * @deprecated Use {@link WsjtxService.connected$} instead.
18
- */
19
- readonly wsjtxState$: BehaviorSubject<boolean>;
20
- /**
21
- * Subject for listening to WSJT-X "Heartbeat" messages.
22
- *
23
- * @deprecated Use {@link WsjtxService.heartbeat$} instead.
24
- */
25
- readonly wsjtxHeartbeat$: ReplaySubject<WsjtxHeartbeat | null>;
26
- /**
27
- * Subject for listening to WSJT-X "Status" messages.
28
- *
29
- * @deprecated Use {@link WsjtxService.status$} instead.
30
- */
31
- readonly wsjtxStatus$: ReplaySubject<WsjtxStatus | null>;
32
- /**
33
- * Subject for listening to WSJT-X "Decode" messages.
34
- *
35
- * @deprecated Use {@link WsjtxService.decode$} instead.
36
- */
37
- readonly wsjtxDecode$: Subject<WsjtxDecode>;
38
- /**
39
- * Subject for listening to WSJT-X "Clear" messages.
40
- *
41
- * @deprecated Use {@link WsjtxService.clear$} instead.
42
- */
43
- readonly wsjtxClear$: Subject<WsjtxClear>;
44
- /**
45
- * Subject for listening to WSJT-X "QsoLogged" messages.
46
- *
47
- * @deprecated Use {@link WsjtxService.qsoLogged$} instead.
48
- */
49
- readonly wsjtxQsoLogged$: Subject<WsjtxQsoLogged>;
50
- /**
51
- * Subject for listening to WSJT-X "Close" messages.
52
- *
53
- * @deprecated Use {@link WsjtxService.close$} instead.
54
- */
55
- readonly wsjtxClose$: Subject<WsjtxClose>;
56
- /**
57
- * Subject for listening to WSJT-X "WsprDecode" messages.
58
- *
59
- * @deprecated Use {@link WsjtxService.wsprDecode$} instead.
60
- */
61
- readonly wsjtxWsprDecode$: Subject<WsjtxWsprDecode>;
62
- /**
63
- * Subject for listening to WSJT-X "LoggedAdif" messages.
64
- *
65
- * @deprecated Use {@link WsjtxService.loggedAdif$} instead.
66
- */
67
- readonly wsjtxLoggedAdif$: Subject<WsjtxLoggedAdif>;
68
- /**
69
- * Whether we're getting any messages from Hamlib.
70
- *
71
- * @deprecated Use {@link HamlibService.connected$} instead.
72
- */
73
- readonly hamlibState$: BehaviorSubject<boolean>;
74
- /**
75
- * Subject for listening to Hamlib "RigState" messages.
76
- *
77
- * @deprecated Use {@link HamlibService.rigState$} instead.
78
- */
79
- readonly hamlibRigState$: BehaviorSubject<HamlibRigState | null>;
80
- private readonly defaultAgentHost;
81
- private readonly defaultAgentPort;
82
- private readonly localStorageHostKey;
83
- private readonly localStoragePortKey;
84
- private agentHost;
85
- private agentPort;
86
- private agentWebSocketSubject;
87
- private agentWebsocketSubscription;
88
- constructor(messages: AgentMessageService, hamlibService: HamlibService, wsjtxService: WsjtxService);
89
- init(): void;
90
- /** Connect (or reconnect) the websocket to the kel-agent server. */
91
- connect(): void;
92
- /** Get the currently configured kel-agent host. */
93
- getHost(): string;
94
- /** Get the currently configured kel-agent port. */
95
- getPort(): number;
96
- /** Set the kel-agent host. */
97
- setHost(host: string): void;
98
- /** Set the kel-agent port. */
99
- setPort(port: number): void;
100
- private send;
101
- /**
102
- * Send a command to WSJT-X to clear the Band Activity window.
103
- *
104
- * @deprecated Use {@link WsjtxService.clearBandActivity} instead.
105
- */
106
- sendWsjtxClearBandActivity(): void;
107
- /**
108
- * Send a command to WSJT-X to clear the Rx Frequency window.
109
- *
110
- * @deprecated Use {@link WsjtxService.clearRxFreqWindow} instead.
111
- */
112
- sendWsjtxClearRxFreqWindow(): void;
113
- /**
114
- * Send a command to WSJT-X to clear the Band Activity and Rx Frequency windows.
115
- *
116
- * @deprecated Use {@link WsjtxService.clearAll} instead.
117
- */
118
- sendWsjtxClearAll(): void;
119
- /**
120
- * Send a command to WSJT-X to replay messages. Useful for a fresh client that wants to hear
121
- * previous WSJT-X decodes.
122
- *
123
- * @deprecated Use {@link WsjtxService.replay} instead.
124
- */
125
- sendWsjtxReplay(): void;
126
- /**
127
- * Send a command to WSJT-X to halt any transmissions immediately.
128
- *
129
- * @deprecated Use {@link WsjtxService.haltTxNow} instead.
130
- */
131
- sendWsjtxHaltTxNow(): void;
132
- /** Send a command to WSJT-X to stop auto-transmitting after finishing the current round.
133
- *
134
- * @deprecated Use {@link WsjtxService.haltTxAfterCurrent} instead.
135
- */
136
- sendWsjtxHaltTxAfterCurrent(): void;
137
- /**
138
- * Send a command to WSJT-X to reply to the given decode. The message must include CQ or QRZ.
139
- *
140
- * @deprecated Use {@link WsjtxService.reply} instead.
141
- */
142
- sendWsjtxReply(decode: WsjtxDecode): void;
143
- /**
144
- * Send a command to WSJT-X to reply to the given decode. The message must include CQ or QRZ.
145
- *
146
- * @deprecated Use {@link WsjtxService.highlightCallsign} instead.
147
- */
148
- sendWsjtxHighlightCallsign(highlightMsg: WsjtxHighlightCallsign): void;
149
- /**
150
- * Given a decode message, format a string the same way as displayed in the WSJT-X Band
151
- * Activity/Rx Frequency windows.
152
- *
153
- * @deprecated Use {@link WsjtxService.formatDecode} instead.
154
- */
155
- static formatDecode(msg: WsjtxDecode): string;
156
- static ɵfac: i0.ɵɵFactoryDeclaration<AgentService, never>;
157
- static ɵprov: i0.ɵɵInjectableDeclaration<AgentService>;
158
- }
@@ -1,10 +0,0 @@
1
- export interface HamlibRigState {
2
- /** Transceiver model name */
3
- model: string;
4
- /** Dial frequency of the "current" VFO in Hz */
5
- frequency: number;
6
- /** Mode name of the "current" VFO */
7
- mode: string;
8
- /** Width of the current passband filter in Hz */
9
- passbandWidthHz: number;
10
- }
@@ -1,16 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { HamlibRigState } from './hamlib-messages';
3
- import { AgentMessageService } from './agent-message.service';
4
- import * as i0 from "@angular/core";
5
- export declare class HamlibService {
6
- private messages;
7
- /** Whether we're getting any messages from Hamlib. */
8
- readonly connected$: BehaviorSubject<boolean>;
9
- /** Subject for listening to Hamlib "RigState" messages. */
10
- readonly rigState$: BehaviorSubject<HamlibRigState | null>;
11
- constructor(messages: AgentMessageService);
12
- setupBehaviors(): void;
13
- private handleMessage;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<HamlibService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<HamlibService>;
16
- }
@@ -1,387 +0,0 @@
1
- /**
2
- * The heartbeat message shall be sent on a periodic basis every
3
- * 15 seconds. This
4
- * message is intended to be used by servers to detect the presence
5
- * of a client and also the unexpected disappearance of a client
6
- * and by clients to learn the schema negotiated by the server
7
- * after it receives the initial heartbeat message from a client.
8
- *
9
- * See
10
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l110).
11
- */
12
- export interface WsjtxHeartbeat {
13
- /** WSJT-X client name */
14
- id: string;
15
- /** WSJT-X client's supported schema version */
16
- maxSchemaVersion: number;
17
- /** WSJT-X client's commit hash */
18
- revision: string;
19
- /** WSJT-X client's semantic version */
20
- version: string;
21
- }
22
- /**
23
- * WSJT-X sends this status message when various internal state
24
- * changes to allow the server to track the relevant state of each
25
- * client without the need for polling commands.
26
- *
27
- * See
28
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l141).
29
- */
30
- export interface WsjtxStatus {
31
- configName: string;
32
- /** Local station's callsign */
33
- deCall: string;
34
- /** Local station's Maidenhead grid */
35
- deGrid: string;
36
- /** Whether WSJT-X is currently decoding */
37
- decoding: boolean;
38
- /** The connected transceiver's dial frequency in hertz */
39
- dialFrequency: number;
40
- /** Remote station's callsign */
41
- dxCall: string;
42
- /** Remote station's Maidenhead grid */
43
- dxGrid: string;
44
- fastMode: boolean;
45
- frequencyTolerance: number;
46
- /** WSJT-X client name */
47
- id: string;
48
- /** The receive protocol that WSJT-X is decoding */
49
- mode: string;
50
- /** The local station's signal report for the remote station */
51
- report: string;
52
- /** The listening frequency in hertz above the dial frequency */
53
- rxDeltaFreq: number;
54
- /** If non-zero, WSJT-X is in a special mode like Fox/Hound or Field Day */
55
- specialMode: number;
56
- submode: string;
57
- /** Whether WSJT-X is transmitting */
58
- transmitting: boolean;
59
- /** The transmit frequency in hertz above the dial frequency */
60
- txDeltaFreq: number;
61
- /** Whether WSJT-X is allowed to transmit during the next window */
62
- txEnabled: boolean;
63
- txMode: string;
64
- txRxPeriod: number;
65
- txWatchdog: boolean;
66
- /** The message being transmitted */
67
- txMessage: string;
68
- }
69
- /**
70
- * The decode message is sent when a new decode is completed, in
71
- * this case the 'New' field is true. It is also used in response
72
- * to a "Replay" message where each old decode in the "Band
73
- * activity" window, that has not been erased, is sent in order
74
- * as a one of these messages with the 'New' field set to false.
75
- *
76
- * See
77
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l208).
78
- */
79
- export interface WsjtxDecode {
80
- /** The decode's frequency in hertz above the dial frequency */
81
- deltaFrequency: number;
82
- /** The perceived clock differential between the local station and remote station, in seconds. */
83
- deltaTime: number;
84
- /** WSJT-X client name */
85
- id: string;
86
- lowConfidence: boolean;
87
- /** The message payload contained in the decode */
88
- message: string;
89
- /** The protocol of the decoded message */
90
- mode: string;
91
- /** Whether the decode is new or replayed */
92
- new: boolean;
93
- /** Whether the decode came from playback of a recording */
94
- offAir: boolean;
95
- /** Local station's perceived signal to noise ratio */
96
- snr: number;
97
- /** Clock time in milliseconds since midnight */
98
- time: number;
99
- }
100
- /**
101
- * This message is send when all prior "Decode" messages in the
102
- * "Band Activity" window have been discarded and therefore are
103
- * no long available for actioning with a "Reply" message.
104
- *
105
- * See
106
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l234).
107
- */
108
- export interface WsjtxClear {
109
- /** WSJT-X client name */
110
- id: string;
111
- /** Which window to clear (send only). Send 0 to clear Band Activity, 1 to clear Rx Frequency, */
112
- /** or 2 to clear both. */
113
- window: number;
114
- }
115
- /**
116
- * In order for a server to provide a useful cooperative service
117
- * to WSJT-X it is possible for it to initiate a QSO by sending
118
- * this message to a client. WSJT-X filters this message and only
119
- * acts upon it if the message exactly describes a prior decode
120
- * and that decode is a CQ or QRZ message. The action taken is
121
- * exactly equivalent to the user double clicking the message in
122
- * the "Band activity" window.
123
- *
124
- * See
125
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l255).
126
- */
127
- export interface WsjtxReply {
128
- /** WSJT-X client name */
129
- id: string;
130
- /** Clock time in milliseconds since midnight */
131
- time: number;
132
- /** Local station's perceived signal to noise ratio */
133
- snr: number;
134
- /** The perceived clock differential between the local station and remote station, in seconds. */
135
- deltaTime: number;
136
- /** The decode's frequency in hertz above the dial frequency */
137
- deltaFrequency: number;
138
- /** The protocol of the decoded message */
139
- mode: string;
140
- /** The message payload contained in the decode */
141
- message: string;
142
- lowConfidence: boolean;
143
- /**
144
- * The Modifiers field allows the equivalent of keyboard
145
- * modifiers to be sent "as if" those modifier keys where pressed
146
- * while double-clicking the specified decoded message. See
147
- * the WSJT-X source link above. */
148
- modifiers: number;
149
- }
150
- /**
151
- * The QSO logged message is sent when the WSJT-X user accepts the "Log QSO" dialog by clicking
152
- * the "OK" button.
153
- *
154
- * See
155
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l295).
156
- */
157
- export interface WsjtxQsoLogged {
158
- comments: string;
159
- dateTimeOff: Date;
160
- dateTimeOn: Date;
161
- /** remote station's callsign */
162
- dxCall: string;
163
- /** remote station's Maidenhead grid */
164
- dxGrid: string;
165
- /** contest exchange received */
166
- exchangeReceived: string;
167
- /** contest exchange sent */
168
- exchangeSent: string;
169
- mode: string;
170
- /** local station's callsign */
171
- myCall: string;
172
- /** local station's Maidenhead grid */
173
- myGrid: string;
174
- /** remote station's operator's name */
175
- name: string;
176
- /** remote stations operator's callsign (if different from station) */
177
- operatorCall: string;
178
- /** signal report received */
179
- reportReceived: string;
180
- /** signal report sent */
181
- reportSent: string;
182
- /** frequency in hertz */
183
- txFrequency: number;
184
- /** power in watts */
185
- txPower: string;
186
- /** WSJT-X client name */
187
- id: string;
188
- /** Propagation mode using ADIF enumerations */
189
- propagationMode: string;
190
- }
191
- /**
192
- * Close is sent by a client immediately prior to it shutting
193
- * down gracefully.
194
- *
195
- * See
196
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l320).
197
- */
198
- export interface WsjtxClose {
199
- /** WSJT-X client name */
200
- id: string;
201
- }
202
- /**
203
- * When a server starts it may be useful for it to determine the
204
- * state of preexisting clients. Sending this message to each
205
- * client as it is discovered will cause that client (WSJT-X) to
206
- * send a "Decode" message for each decode currently in its "Band
207
- * activity" window. Each "Decode" message sent will have the
208
- * "New" flag set to false so that they can be distinguished from
209
- * new decodes. After all the old decodes have been broadcast a
210
- * "Status" message is also broadcast. If the server wishes to
211
- * determine the status of a newly discovered client; this
212
- * message should be used.
213
- *
214
- * See
215
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l328).
216
- */
217
- export interface WsjtxReplay {
218
- /** WSJT-X client name */
219
- id: string;
220
- }
221
- /**
222
- * The server may stop a client from transmitting messages either
223
- * immediately or at the end of the current transmission period
224
- * using this message.
225
- *
226
- * See
227
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l343).
228
- */
229
- export interface WsjtxHaltTx {
230
- /** WSJT-X client name */
231
- id: string;
232
- /** If `false`, stop the ongoing transmission immediately. If `true`, this doesn't halt the
233
- * current transmission, it just disables WSJT-X from transmitting after the current round. */
234
- autoTxOnly: boolean;
235
- }
236
- /**
237
- * This message allows the server to set the current free text
238
- * message content. Sending this message with a non-empty "Text"
239
- * field is equivalent to typing a new message (old contents are
240
- * discarded) in to the WSJT-X free text message field or "Tx5"
241
- * field (both are updated) and if the "Send" flag is set then
242
- * clicking the "Now" radio button for the "Tx5" field if tab one
243
- * is current or clicking the "Free msg" radio button if tab two
244
- * is current.
245
- *
246
- * See
247
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l352).
248
- */
249
- export interface WsjtxFreeText {
250
- /** WSJT-X client name */
251
- id: string;
252
- /** Custom text to send. May be truncated if too long */
253
- text: string;
254
- /** Whether to also click "Now" to begin transmitting when appropriate */
255
- send: boolean;
256
- }
257
- /**
258
- * The decode message is sent when a new decode is completed, in
259
- * this case the 'New' field is true.
260
- *
261
- * See
262
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l383).
263
- */
264
- export interface WsjtxWsprDecode {
265
- /** WSJT-X client name */
266
- id: string;
267
- /** Whether the decode is new or replayed */
268
- new: boolean;
269
- /** Clock time in milliseconds since midnight */
270
- time: number;
271
- /** Local station's perceived signal to noise ratio */
272
- snr: number;
273
- /** The perceived clock differential between the local station and remote station, in seconds. */
274
- deltaTime: number;
275
- frequency: number;
276
- drift: number;
277
- /** remote station's callsign */
278
- callsign: string;
279
- /** remote station's Maidenhead grid */
280
- grid: string;
281
- /** power in dBm */
282
- power: number;
283
- /** whether the decode came from playback of a recording */
284
- offAir: boolean;
285
- }
286
- /**
287
- * This message allows the server to set the current current
288
- * geographical location of operation. The supplied location is
289
- * not persistent but is used as a session lifetime replacement
290
- * loction that overrides the Maidenhead grid locater set in the
291
- * application settings.
292
- *
293
- * See
294
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l406).
295
- */
296
- export interface WsjtxLocation {
297
- /** WSJT-X client name */
298
- id: string;
299
- /** Maidenhead grid to set as the local station's position */
300
- location: string;
301
- }
302
- /**
303
- * The logged ADIF message is sent to the server(s) when the
304
- * WSJT-X user accepts the "Log QSO" dialog by clicking the "OK"
305
- * button.
306
- *
307
- * See
308
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l423).
309
- */
310
- export interface WsjtxLoggedAdif {
311
- /** WSJT-X client name */
312
- id: string;
313
- /** ADIF encoded QSO data */
314
- adif: string;
315
- }
316
- /**
317
- * The server may send this message at any time. The message
318
- * specifies the background and foreground color that will be
319
- * used to highlight the specified callsign in the decoded
320
- * messages printed in the Band Activity panel.
321
- *
322
- * See
323
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l444).
324
- */
325
- export interface WsjtxHighlightCallsign {
326
- /** WSJT-X client name */
327
- id: string;
328
- /** Which callsign to highlight */
329
- callsign: string;
330
- /** Background color. All CSS Color Module Level 4 formats should be valid.
331
- * See https://www.w3.org/TR/css-color-4/ */
332
- backgroundColor: string;
333
- /** Foreground color. All CSS Color Module Level 4 formats should be valid.
334
- * See https://www.w3.org/TR/css-color-4/ */
335
- foregroundColor: string;
336
- /** The "Highlight last" field allows the sender to request that
337
- * all instances of "Callsign" in the last period only, instead
338
- * of all instances in all periods, be highlighted. */
339
- highlightLast: boolean;
340
- /** Whether to reset the highlighting to default (overrides background and foreground colors) */
341
- reset: boolean;
342
- }
343
- /**
344
- * The server may send this message at any time. The message
345
- * specifies the name of the configuration to switch to. The new
346
- * configuration must exist.
347
- *
348
- * See
349
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l445).
350
- */
351
- export interface WsjtxSwitchConfiguration {
352
- /** WSJT-X client name */
353
- id: string;
354
- /** New configuration set to use (must already exist) */
355
- configurationName: string;
356
- }
357
- /**
358
- * The server may send this message at any time. The message
359
- * specifies various configuration options. For utf8 string
360
- * fields an empty value implies no change, for the quint32 Rx DF
361
- * and Frequency Tolerance fields the maximum quint32 value
362
- * implies no change. Invalid or unrecognized values will be
363
- * silently ignored.
364
- *
365
- * See
366
- * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l479).
367
- */
368
- export interface WsjtxConfigure {
369
- /** WSJT-X client name */
370
- id: string;
371
- /** Which protocol to decode and send */
372
- mode: string;
373
- frequencyTolerance: number;
374
- /** Which sub-protocol to decode and send */
375
- submode: string;
376
- fastMode: boolean;
377
- /** Which protocol to decode and send */
378
- trPeriod: number;
379
- /** Receive delta (above dial) frequency in hertz(?) */
380
- rxDF: number;
381
- /** The remote station's callsign */
382
- dxCall: string;
383
- /** The remote station's Maidenhead grid */
384
- dxGrid: string;
385
- /** Regenerate the standard messages */
386
- generateMessages: boolean;
387
- }
@@ -1,64 +0,0 @@
1
- import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
2
- import { WsjtxClear, WsjtxClose, WsjtxConfigure, WsjtxDecode, WsjtxFreeText, WsjtxHeartbeat, WsjtxHighlightCallsign, WsjtxLoggedAdif, WsjtxQsoLogged, WsjtxStatus, WsjtxWsprDecode } from './wsjtx-messages';
3
- import { AgentMessageService } from './agent-message.service';
4
- import * as i0 from "@angular/core";
5
- export declare class WsjtxService {
6
- private messages;
7
- /** Whether we're getting any messages from WSJT-X. */
8
- readonly connected$: BehaviorSubject<boolean>;
9
- /** Subject for listening to WSJT-X "Heartbeat" messages. */
10
- readonly heartbeat$: ReplaySubject<WsjtxHeartbeat | null>;
11
- /** Subject for listening to WSJT-X "Status" messages. */
12
- readonly status$: ReplaySubject<WsjtxStatus | null>;
13
- /** Subject for listening to WSJT-X "Decode" messages. */
14
- readonly decode$: Subject<WsjtxDecode>;
15
- /** Subject for listening to WSJT-X "Clear" messages. */
16
- readonly clear$: Subject<WsjtxClear>;
17
- /** Subject for listening to WSJT-X "QsoLogged" messages. */
18
- readonly qsoLogged$: Subject<WsjtxQsoLogged>;
19
- /** Subject for listening to WSJT-X "Close" messages. */
20
- readonly close$: Subject<WsjtxClose>;
21
- /** Subject for listening to WSJT-X "WsprDecode" messages. */
22
- readonly wsprDecode$: Subject<WsjtxWsprDecode>;
23
- /** Subject for listening to WSJT-X "LoggedAdif" messages. */
24
- readonly loggedAdif$: Subject<WsjtxLoggedAdif>;
25
- private wsjtxId;
26
- constructor(messages: AgentMessageService);
27
- private setupBehaviors;
28
- private handleMessage;
29
- /** Send a command to WSJT-X to clear the Band Activity window. */
30
- clearBandActivity(): void;
31
- /** Send a command to WSJT-X to clear the Rx Frequency window. */
32
- clearRxFreqWindow(): void;
33
- /** Send a command to WSJT-X to clear the Band Activity and Rx Frequency windows. */
34
- clearAll(): void;
35
- /** Send a command to WSJT-X to replay messages. Useful for a fresh client that wants to hear
36
- * previous WSJT-X decodes. */
37
- replay(): void;
38
- /** Send a command to WSJT-X to halt any transmissions immediately. */
39
- haltTxNow(): void;
40
- /** Send a command to WSJT-X to stop auto-transmitting after finishing the current round. */
41
- haltTxAfterCurrent(): void;
42
- /** Send a command to WSJT-X to reply to the given decode. The message must include CQ or QRZ. */
43
- reply(decode: WsjtxDecode): void;
44
- /** Send a command to WSJT-X to reply to the given decode. The message must include CQ or QRZ. */
45
- highlightCallsign(highlightMsg: WsjtxHighlightCallsign): void;
46
- /**
47
- * Send a command to WSJT-X to transmit the given free text. If the text is too long to be
48
- * encoded in a single message, it may be silently truncated. */
49
- sendFreeText(freeText: WsjtxFreeText): void;
50
- /** Send a command to WSJT-X to set the local station's Maidenhead grid. This is temporary,
51
- * lasting only as long as WSJT-X is running. */
52
- setLocation(grid: string): void;
53
- /** Send a command to WSJT-X to switch to the named configuration. */
54
- switchConfiguration(configName: string): void;
55
- /** Send a command to WSJT-X to set the given configuration parameters. */
56
- configure(config: WsjtxConfigure): void;
57
- /** Given a decode message, format a string the same way as displayed in the WSJT-X Band
58
- * Activity/Rx Frequency windows. */
59
- static formatDecode(msg: WsjtxDecode): string;
60
- /** Given a time in milliseconds since midnight UTC, format as HHMMSS. */
61
- static formatTime(time: number): string;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<WsjtxService, never>;
63
- static ɵprov: i0.ɵɵInjectableDeclaration<WsjtxService>;
64
- }
package/public-api.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './lib/agent.service';
2
- export * from './lib/agent-message.service';
3
- export * from './lib/hamlib-messages';
4
- export * from './lib/hamlib.service';
5
- export * from './lib/wsjtx-messages';
6
- export * from './lib/wsjtx.service';