-
Notifications
You must be signed in to change notification settings - Fork 65
/
rd.h
706 lines (591 loc) · 15.5 KB
/
rd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
// rd.h
//
// System-Wide Values for Rivendell
//
// (C) Copyright 2002-2022 Fred Gleason <[email protected]>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef RD_H
#define RD_H
#include <QObject>
/*
* Copyright Notice
*/
#define RD_COPYRIGHT_NOTICE "© 2002-2023 Fred Gleason"
/*
* License Notice
*/
#define RD_LICENSE_NOTICE QObject::tr("This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.")
/*
* Default Configuration File
*/
#define RD_CONF_FILE "/etc/rd.conf"
#define RD_WIN_CONF_FILE "rd.ini"
/*
* Default ALSA asoundrc file
*/
#define RD_ASOUNDRC_FILE "/etc/asound.conf"
/*
* PID File Locations
*/
#define RD_PID_DIR "/var/run"
/*
* Where audio gets stored
*/
#define RD_AUDIO_ROOT "/var/snd"
/*
* Audio File Extension
*/
#define RD_AUDIO_EXTENSION "wav"
/*
* Allow Nonstandard Bitrates?
*/
#define RD_ALLOW_NONSTANDARD_RATES false
/*
* Default mySQL Settings
*/
#define DEFAULT_MYSQL_HOSTNAME "localhost"
#define DEFAULT_MYSQL_DATABASE "Rivendell"
#define DEFAULT_MYSQL_USERNAME "rduser"
#define DEFAULT_MYSQL_PASSWORD "letmein"
#define DEFAULT_MYSQL_DRIVER "QMYSQL3"
#define DEFAULT_MYSQL_HEARTBEAT_INTERVAL 360
#define DEFAULT_MYSQL_ENGINE "MyISAM"
#define DEFAULT_MYSQL_CHARSET "utf8mb4"
#define DEFAULT_MYSQL_COLLATION "utf8mb4_general_ci"
/*
* Maximum Length of Rivendell User Passwords
*/
#define RD_MAX_PASSWORD_LENGTH 32
/*
* ALSA Settings
*/
#define RD_ALSA_DEFAULT_PERIOD_QUANTITY 4
#define RD_ALSA_DEFAULT_PERIOD_SIZE 1024
#define RD_ALSA_FADE_INTERVAL 100
#define RD_ALSA_SAMPLE_RATE_TOLERANCE 100
/*
* Date Limits
*/
#define RD_MAX_YEAR 8000
/*
* JACK Settings
*/
#define RD_JACK_FADE_INTERVAL 100
/*
* RIPCD TCP Port
*/
#define RIPCD_TCP_PORT 5006
/*
* CAED TCP Port
*/
#define CAED_TCP_PORT 5005
/*
* RdCatchd TCP Port
*/
#define RDCATCHD_TCP_PORT 6006
/*
* Minimum event ID for dynamic (RML-controlled) recordings
*/
#define RDCATCHD_DYNAMIC_BASE_ID 1000000000
/*
* Default Local GPIO Device
*/
#define RD_DEFAULT_GPIO_DEVICE "/dev/gpio0"
/*
* Max number of possible GPIO lines (GPI OR GPO)
*/
#define MAX_GPIO_PINS 32768
/*
* Max number of possible audio adapters
*/
#define RD_MAX_CARDS 24
/*
* Max number of possible audio streams/card/type
*/
#define RD_MAX_STREAMS 48
/*
* Max number of possible audio ports/card/type
*/
#define RD_MAX_PORTS 24
/*
* Max number of possible TTYs
*/
#define MAX_TTYS 8
/*
* Max number of netcatcher decks per workstation
*/
#define MAX_DECKS 8
/*
* Max number of inputs or outputs in a switcher
*/
#define MAX_ENDPOINTS 2048
/*
* Max number of attached switcher matrices per workstation
*/
#define MAX_MATRICES 8
/*
* Max number of macro timers
*/
#define RD_MAX_MACRO_TIMERS 16
/*
* Reference Analog Level at 0 dBFS (1/100 dB)
* (thus, -16 dBFS = +4 dBu)
*/
#define RD_BASE_ANALOG 1600
/*
* Maximum number of SoundPanels of a given type
*/
#define MAX_PANELS 50
/*
* Maximum possible SoundPanel play-out ports
*/
#define RD_SOUNDPANEL_MAX_OUTPUTS 5
/*
* Maximum Cart Number
*/
#define RD_MAX_CART_NUMBER 999999
/*
* Maximum Cut Number
*/
#define RD_MAX_CUT_NUMBER 999
/*
* In negative 1/100ths of a dB
*/
#define REFERENCE_LEVEL 1600
/*
* Typomatic Rate Interval, in mS
*/
#define TYPO_RATE_1 300
#define TYPO_RATE_2 100
/*
* ALSA Values
*/
#define ALSA_PLAY_PCM_DEVICE "rdp"
#define ALSA_RECORD_PCM_DEVICE "rdr"
/*
* Default Administrative User
*/
#define RDA_LOGIN_NAME "admin"
#define RDA_PASSWORD ""
#define RDA_FULLNAME "Rivendell Administrator"
#define RDA_DESCRIPTION "Default Administrator Account"
/*
* Default System User
*/
#define RD_USER_LOGIN_NAME "user"
#define RD_USER_PASSWORD ""
#define RD_USER_FULL_NAME "Rivendell User"
#define RD_USER_DESCRIPTION "Default User Account"
/*
* Default System Identities
*/
#define RD_DEFAULT_AUDIO_OWNER "rivendell"
#define RD_DEFAULT_AUDIO_GROUP "rivendell"
#define RD_DEFAULT_PYPAD_OWNER "pypad"
#define RD_DEFAULT_PYPAD_GROUP "pypad"
#define RD_DEFAULT_RN_RML_OWNER "rivendell"
#define RD_DEFAULT_RN_RML_GROUP "rivendell"
#define RD_DEFAULT_LABEL "Default Configuration"
/*
* Default Audio Store Settings
*/
#define RD_DEFAULT_AUDIO_STORE_MOUNT_OPTIONS "defaults"
/*
* Default RDSelect Configuration Directory
*/
#define RD_DEFAULT_RDSELECT_DIR "/etc/rivendell.d"
/*
* Default Workstation
*/
#define RD_STATION_NAME "DEFAULT"
#define RD_STATION_DESCRIPTION "Default Workstation"
/*
* Default Program Service
*/
#define RD_SERVICE_NAME "Production"
#define RD_SERVICE_DESCRIPTION "Default Audio Service"
/*
* RDSelect Label
* (Used for the RDSelect entry in RDAdmin->ManageHosts)
*/
#define RD_RDSELECT_LABEL "[RDSelect]"
/*
* Default Maximum POST Length (bytes)
*/
#define RD_MAX_POST_LENGTH 2147483648
/*
* Pause Time for Starting Daemons (secs)
*/
#define RD_DAEMON_PAUSE_TIME 1
/*
* Location of the proc filesystem
*/
#define RD_PROC_DIR "/proc"
/*
* Location for Lock Files
*/
#define RD_LOCKFILE_DIR "/var/lock"
/*
* Rivendell Macro Language (RML)
*/
#define RD_RML_ECHO_PORT 5858
#define RD_RML_NOECHO_PORT 5859
#define RD_RML_REPLY_PORT 5860
#define RD_RML_MAX_ARGS 100
#define RD_RML_MAX_LENGTH 2048
/*
* Maximum Permissible Time Offset (+/- mS)
*/
#define RD_MAX_TIME_OFFSET 10000
/*
* The file to save geometry state in
*/
#define RD_GEOMETRY_FILE ".rivendell"
/*
* Meter Update Interval (msecs)
*/
#define RD_METER_UPDATE_INTERVAL 20
/*
* The metering block shared memory key
*/
#define RD_METER_SHM_KEY 0x00005005
/*
* Maximum length of import log file line
*/
#define RD_MAX_IMPORT_LINE_LENGTH 1024
/*
* The minimum fader gain at the end of a segue transition
* (in hundreths of a dB)
*/
#define RD_FADE_DEPTH -3000
/*
* The mixer 'off' level for full muting
*/
#define RD_MUTE_DEPTH -10000
/*
* The fade profile (for HPI adapters only)
*/
#define RD_FADE_TYPE RDHPISoundCard::Log
/*
* This defines the maximum frequency (in Hz) of the broadcast audio
* channel being fed by Rivendell. It is used for things like calculating
* how expensive an algorithm is needed for sample rate conversion.
*
* For modern FM facilities running MPX stereo, 15000 Hz is a reasonable
* value.
*/
#define RD_MAX_BANDPASS 15000
/*
* The limits on timescaling
*/
#define RD_TIMESCALE_MIN 0.833
#define RD_TIMESCALE_MAX 1.250
#define RD_TIMESCALE_DIVISOR 100000.0
/*
* Max number of default services
*/
#define RD_MAX_DEFAULT_SERVICES 32
/*
* Ripper Settings
*/
#define RIPPER_BAR_INTERVAL 500
#define RIPPER_TEMP_WAV "rdlibrary_rip.wav"
#define RIPPER_TEMP_PEAK "rdlibrary_rip.dat"
#define RIPPER_CDDB_USER "rdlibrary"
#define RIPPER_MAX_SECTORS 20
/*
* CAE Values
*/
#define CAE_MAX_ARGS 10
#define CAE_MAX_LENGTH 256
#define CAE_POLL_INTERVAL 50
/*
* Default Sample Rate
*/
#define RD_DEFAULT_SAMPLE_RATE 48000
/*
* Default Channels
*/
#define RD_DEFAULT_CHANNELS 2
/*
* Marker Colors
*/
#define RD_SEGUE_MARKER_COLOR Qt::cyan
#define RD_TALK_MARKER_COLOR Qt::blue
#define RD_START_END_MARKER_COLOR Qt::red
#define RD_FADE_MARKER_COLOR Qt::yellow
#define RD_HOOK_MARKER_COLOR Qt::magenta
/*
* Cart Status Colors
*/
#define RD_CART_ERROR_COLOR Qt::red
#define RD_CART_CONDITIONAL_COLOR Qt::yellow
#define RD_CART_FUTURE_COLOR "#00FFFF"
#define RD_CART_EVERGREEN_COLOR "#008000"
#define RD_CART_INVALID_SERVICE_COLOR Qt::magenta
/*
* RDAirPlay Colors
*/
#define RDPANEL_SETUP_FLASH_COLOR Qt::blue
#define RDPANEL_RESET_FLASH_COLOR Qt::blue
#define RDPANEL_PLAY_BACKGROUND_COLOR Qt::red
#define RDPANEL_PAUSED_BACKGROUND_COLOR Qt::cyan
#define BUTTON_STOPPED_BACKGROUND_COLOR Qt::green
#define BUTTON_PLAY_BACKGROUND_COLOR Qt::red
#define BUTTON_PLAY_TEXT_COLOR Qt::black
#define BUTTON_PAUSE_BACKGROUND_COLOR Qt::cyan
#define BUTTON_PAUSE_TEXT_COLOR Qt::black
#define BUTTON_FROM_BACKGROUND_COLOR Qt::magenta
#define BUTTON_FROM_TEXT_COLOR Qt::black
#define BUTTON_TO_BACKGROUND_COLOR Qt::yellow
#define BUTTON_TO_TEXT_COLOR Qt::black
#define BUTTON_DISABLED_BACKGROUND_COLOR Qt::darkGray
#define BUTTON_DISABLED_TEXT_COLOR Qt::white
#define BUTTON_ERROR_BACKGROUND_COLOR Qt::red
#define BUTTON_ERROR_TEXT_COLOR Qt::black
/*
* RDAirPlay Log Machines
*/
#define RDAIRPLAY_LOG_QUANTITY 3
/*
* RDAirPlay Logo
*/
#define RD_RDAIRPLAY_LOGO_WIDTH 167
#define RD_RDAIRPLAY_LOGO_HEIGHT 125
/*
* Cue Editor Colors
*/
#define RD_CUEEDITOR_KNOB_COLOR Qt::blue
#define RD_CUEEDITOR_PLAY_MARKER Qt::black
#define RD_CUEEDITOR_START_MARKER Qt::red
#define RD_CUEEDITOR_BUTTON_FLASH_PERIOD 200
#define RD_CUEEDITOR_AUDITION_PREROLL 5000
/*
* Log Colors
*/
#define RD_CUSTOM_TRANSITION_COLOR Qt::blue
/*
* Default Text Editors
*/
#define RD_LINUX_EDITOR "xterm -e vi"
/*
* System-wide Maintenance Interval (mS)
*/
#define RD_MAINT_MIN_INTERVAL 900000
#define RD_MAINT_MAX_INTERVAL 3600000
/*
* Audio File Filter for QFileDialog
*/
#define RD_AUDIO_FILE_FILTER "Sound Files (*.mp* *.MP* *.wav *.WAV *.ogg *.OGG *.flac *.FLAC *.atx *.ATX *.tmc *.TMC *.aif* *.AIF* *.m4a *.M4A *.aac *.AAC)\nAIFF Files (*.aif* *.AIF*)\nATX Files (*.atx *.ATX)\nMPEG Files (*.mp* *.MP*)\nOggVorbis Files (*.ogg *.OGG)\nFLAC Files (*.flac *.FLAC)\nTM Century GoldDrive Files (*.tmc *.TMC)\nWAV Files (*.wav *.WAV)\nAll Files (*.*)"
/*
* Image File Filter for QFileDialog
*/
#define RD_IMAGE_FILE_FILTER "Image Files (*.png *.bmp *.xbm *.xpm *.pbm *.pgm *.ppm *.jpg *.mng *.gif *.PNG *.BMP *.XBM *.XPM *.PBM *.PGM *.PPM *.JPG *.MNG *.GIF)\nAll Files (*.*)"
/*
* Podcast Image File Filter for QFileDialog
*/
#define RD_PODCAST_IMAGE_FILE_FILTER "Image Files (*.png *.jpg *.PNG *.JPG *.jpeg *.JPEG)\nAll Files (*.*)"
/*
* Loadable Module Filter for QFileDialog
*/
#define RD_MODULE_FILE_FILTER "Rivendell Loadable Modules (*.rlm)\nAll Files (*.*)"
/*
* Web Interface Settings
*/
#define RD_WEB_BACKGROUND_COLOR "#FFFFFF"
#define RD_WEB_LINE_COLOR1 "#E0E0E0"
#define RD_WEB_LINE_COLOR2 "#F0F0F0"
/*
* LiveWire Values
*/
#define RD_LIVEWIRE_DEFAULT_TCP_PORT 93
#define RD_LIVEWIRE_DEFAULT_STREAM_PORT 5004
#define RD_LIVEWIRE_DEFAULT_CHANNELS 2
#define RD_LIVEWIRE_MAX_CMD_LENGTH 1024
#define RD_LIVEWIRE_GPIO_BUNDLE_SIZE 5
#define RD_LIVEWIRE_DEFAULT_LOAD RDLiveWireDestination::LoadHighZ
#define RD_LIVEWIRE_MAX_SOURCE 0x7FFF
#define RD_LIVEWIRE_GPIO_MCAST_ADDR "239.192.255.4"
#define RD_LIVEWIRE_GPIO_SEND_PORT 2055
#define RD_LIVEWIRE_GPIO_RECV_PORT 2060
#define RD_LIVEWIRE_GPIO_PULSE_WIDTH 100
/*
* Number of Carts to Include in a 'Limited' Search
*/
#define RD_LIMITED_CART_SEARCH_QUANTITY 100
/*
* Timeout for libcurl (secs)
*/
#define RD_CURL_TIMEOUT 1200
/*
* Anonymous FTP Credentials
*/
#define RD_ANON_FTP_USERNAME "anonymous"
#define RD_ANON_FTP_PASSWORD "rivendell"
/*
* Status Monitor Height
*/
#define RDMONITOR_HEIGHT 30
/*
* RDAirPlay Colors
*/
#define RDPANEL_SETUP_FLASH_COLOR Qt::blue
#define RDPANEL_RESET_FLASH_COLOR Qt::blue
#define RDPANEL_PLAY_BACKGROUND_COLOR Qt::red
#define RDPANEL_PAUSED_BACKGROUND_COLOR Qt::cyan
#define BUTTON_STOPPED_BACKGROUND_COLOR Qt::green
#define BUTTON_PLAY_BACKGROUND_COLOR Qt::red
#define BUTTON_PLAY_TEXT_COLOR Qt::black
#define BUTTON_PAUSE_BACKGROUND_COLOR Qt::cyan
#define BUTTON_PAUSE_TEXT_COLOR Qt::black
#define BUTTON_FROM_BACKGROUND_COLOR Qt::magenta
#define BUTTON_FROM_TEXT_COLOR Qt::black
#define BUTTON_TO_BACKGROUND_COLOR Qt::yellow
#define BUTTON_TO_TEXT_COLOR Qt::black
#define BUTTON_DISABLED_BACKGROUND_COLOR Qt::darkGray
#define BUTTON_DISABLED_TEXT_COLOR Qt::white
#define BUTTON_ERROR_BACKGROUND_COLOR Qt::red
#define BUTTON_ERROR_TEXT_COLOR Qt::black
#define LOG_SCHEDULED_COLOR Qt::white
#define LOG_PLAYING_COLOR Qt::green
#define LOG_PAUSED_COLOR Qt::cyan
#define LOG_NEXT_COLOR "#CCFFCC"
#define LOG_FINISHED_COLOR Qt::gray
#define LOG_EVERGREEN_COLOR "#008000"
#define LOG_ERROR_COLOR Qt::red
#define LOG_RELATIVE_TEXT_COLOR Qt::black
#define LOG_HARDTIME_TEXT_COLOR Qt::blue
/*
* Cart Label Box Colors
*/
#define BAR_UNCHANGED_TRANSITION_COLOR Qt::green
#define BAR_UNCHANGED_STOPPING_COLOR Qt::red
#define BAR_CHANGED_TRANSITION_COLOR Qt::yellow
#define BAR_CHANGED_STOPPING_COLOR Qt::blue
#define LABELBOX_BACKGROUND_COLOR Qt::white
#define LABELBOX_MISSING_COLOR Qt::red
#define LABELBOX_MARKER_COLOR Qt::cyan
#define LABELBOX_CHAIN_COLOR Qt::magenta
#define LABELBOX_EVERGREEN_COLOR "#008000"
#define LABELBOX_TIMESCALE_COLOR Qt::green
/*
* RDCartSlots Settings
*/
#define RDCARTSLOTS_MAX_ROWS 16
#define RDCARTSLOTS_MAX_COLUMNS 4
/*
* Custom MIME Types (for Drag and Drop)
*/
#define RDMIMETYPE_CART "application/rivendell-cart"
/*
* Number of Cut Event IDs
*/
#define RD_CUT_EVENT_ID_QUAN 16
/*
* Log Filter Listing Limit Quantity
*/
#define RD_LOGFILTER_LIMIT_QUAN 14
/*
* Log Locking Timeout
*/
#define RD_LOG_LOCK_TIMEOUT 30000
/*
* Default multicast address for sending state updates
*/
#define RD_NOTIFICATION_ADDRESS "239.192.255.72"
/*
* UDP port for sending state updates
*/
#define RD_NOTIFICATION_PORT 20539
/*
* RDVAirPlay Values
*/
#define RD_RDVAIRPLAY_LOG_BASE 100
#define RD_RDVAIRPLAY_LOG_QUAN 20
/*
* GUI Style
* (must be one of the values returned by QStyleFactory::keys())
*/
#define RD_GUI_STYLE "plastique"
/*
* Status / Note Bubble Background Color
*/
#define RD_STATUS_BACKGROUND_COLOR "#AAFFFF"
/*
* PAD Update Connection Points
*/
#define RD_PAD_CLIENT_TCP_PORT 34289
#define RD_PAD_SOURCE_UNIX_BASE_ADDRESS "m4w8n8fsfddf-473fdueusurt-8954"
/*
* Default 'ServiceTimeout=' value in rd.conf(5)
*/
#define RD_DEFAULT_SERVICE_TIMEOUT 30
/*
* Default 'ExtendedNextPadEvents=' value is rd.conf(5)
*/
#define RD_DEFAULT_EXTENDED_NEXT_PAD_EVENTS 4
/*
* Default 'ServiceStartupDelay=' value in rd.conf(5) [seconds]
*/
#define RD_DEFAULT_SERVICE_STARTUP_DELAY 5
/*
* File Extension for RSS XML Feed Files
*/
#define RD_RSS_XML_FILE_EXTENSION "rss"
/*
* Shelf life for GPIO event records
*/
#define RD_GPIO_EVENT_DAYS 30
/*
* Starting UDP port for cae_meter_socket.
* Default 'MeterPortBaseNumber=' value in rd.conf(5)
*/
#define RD_DEFAULT_METER_SOCKET_BASE_UDP_PORT 30000
/*
* Maximum number of UDP ports to consider for cae_meter_socket.
* Default 'MeterPortRange' value in rd.conf(5)
*/
#define RD_METER_SOCKET_PORT_RANGE 100
/*
* Height/Width for QTreeWidget, QTableWidget and QListView widgets
*/
#define RD_LISTWIDGET_ITEM_HEIGHT 25
#define RD_LISTWIDGET_ITEM_WIDTH_PADDING 20
/*
* Thumbnail image sizes
*/
#define RD_MID_THUMB_SIZE QSize(32,32)
#define RD_SMALL_THUMB_SIZE QSize(22,22)
/*
* Date/Time Formats
*/
#define RD_DEFAULT_LONG_DATE_FORMAT "dddd, MMMM d yyyy"
#define RD_DEFAULT_SHORT_DATE_FORMAT "MM/dd/yy"
#define RD_TWENTYFOUR_HOUR_FORMAT "hh:mm:ss"
#define RD_TWENTYFOUR_HOUR_TENTHS_FORMAT "hh:mm:ss.z"
#define RD_TWELVE_HOUR_FORMAT "h:mm:ss AP"
#define RD_TWELVE_HOUR_TENTHS_FORMAT "h:mm:ss.z AP"
#define RD_TWELVE_HOUR_PADDED_FORMAT "hh:mm:ss AP"
#define RD_TWELVE_HOUR_TENTHS_PADDED_FORMAT "hh:mm:ss.z AP"
#define RD_OFFSET_FORMAT "mm:ss"
#define RD_OFFSET_TENTHS_FORMAT "mm:ss.z"
/*
* Line number macros
*/
#define STRINGIZE(x) STRINGIZE2(x)
#define STRINGIZE2(x) #x
#define LINE_NUMBER QString(STRINGIZE(__LINE__)).toInt()
#endif // RD_H