mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
2024-04-03 Fred Gleason <fredg@paravelsystems.com>
* Added an 'ExtendedNextPadEvents=' directive to rd.conf(5). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -27,7 +27,14 @@
|
||||
MainObject::MainObject()
|
||||
: QObject()
|
||||
{
|
||||
for(int i=0;i<2;i++) {
|
||||
d_config=new RDConfig();
|
||||
d_config->load();
|
||||
|
||||
int extended_next=2;
|
||||
if(d_config->extendedNextPadEvents()==0) {
|
||||
extended_next=1;
|
||||
}
|
||||
for(int i=0;i<extended_next;i++) {
|
||||
d_repeaters.push_back(new Repeater(QString::asprintf("%s-%d",
|
||||
RD_PAD_SOURCE_UNIX_BASE_ADDRESS,i),
|
||||
RD_PAD_CLIENT_TCP_PORT+i,this));
|
||||
|
@@ -24,6 +24,8 @@
|
||||
#include <QList>
|
||||
#include <QObject>
|
||||
|
||||
#include <rdconfig.h>
|
||||
|
||||
#include "repeater.h"
|
||||
|
||||
#define RDPADD_USAGE "\n\n"
|
||||
@@ -36,6 +38,7 @@ class MainObject : public QObject
|
||||
|
||||
private:
|
||||
QList<Repeater *> d_repeaters;
|
||||
RDConfig *d_config;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user