mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02:00
2023-06-29 Fred Gleason <fredg@paravelsystems.com>
* Added a 'RDCoreApplication::isUniqueProcess()' static method. * Added processuniqueness checks to caed(8), rdairplay(1), rdrepld(8), rdrssd(8), rdservice(8), rdvairplayd(8), ripcd(8) and rdalsaconfig(8). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test the Rivendell file format converter.
|
||||
//
|
||||
// (C) Copyright 2010-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2010-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -44,7 +44,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_convert_test",
|
||||
"audio_convert_test",AUDIO_CONVERT_TEST_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"audio_convert_test: %s\n",(const char *)err_msg.toUtf8());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test the Rivendell file format exporter.
|
||||
//
|
||||
// (C) Copyright 2010-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2010-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -46,7 +46,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_export_test",
|
||||
"audio_export_test",AUDIO_EXPORT_TEST_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"audio_export_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test Rivendell file importing.
|
||||
//
|
||||
// (C) Copyright 2010-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2010-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -47,7 +47,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_import_test",
|
||||
"audio_import_test",AUDIO_IMPORT_TEST_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"audio_import_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test the Rivendell audio file metadata reader.
|
||||
//
|
||||
// (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -37,7 +37,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_metadata_test",
|
||||
"audio_metadata_test",AUDIO_METADATA_TEST_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"audio_metadata_test: %s\n",(const char *)err_msg.toUtf8());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Display charset/collation parameters for a DB connection
|
||||
//
|
||||
// (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -44,7 +44,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDApplication("db_charset_test",
|
||||
"rdvairplayd",DB_CHARSET_TEST_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"db_charset_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test Rivendell file deletion routines.
|
||||
//
|
||||
// (C) Copyright 2010-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2010-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -41,7 +41,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=new RDApplication("delete_test","delete_test",DELETE_TEST_USAGE,false,
|
||||
this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"delete_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -43,7 +43,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=new RDApplication("download_test","download_test",DOWNLOAD_TEST_USAGE,
|
||||
false,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"download_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test Rivendell image storage
|
||||
//
|
||||
// (C) Copyright 2010-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2010-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -47,7 +47,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=new RDApplication("feed_image_test","feed_image_test",
|
||||
FEED_IMAGE_TEST_USAGE,false,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"feed_image_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=new RDApplication("metadata_wildcard_test","metadata_wildcard_test",
|
||||
METADATA_WILDCARD_TEST_USAGE,false,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"metadata_wildcard_test: %s\n",(const char *)err_msg.toUtf8());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
rda=new RDApplication("meterstrip_test","meterstrip_test",METERSTRIP_TEST_USAGE,
|
||||
false,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
QMessageBox::critical(this,"meterstrip_test - "+tr("Error"),err_msg);
|
||||
exit(RDApplication::ExitNoDb);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test Rivendell RDNotification class.
|
||||
//
|
||||
// (C) Copyright 2019-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2019-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -31,7 +31,7 @@ MainObject::MainObject(QObject *parent)
|
||||
|
||||
rda=new RDApplication("notification_test","notification_test",
|
||||
NOTIFICATION_TEST_USAGE,false,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"notification_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test the RDTimeEngine class
|
||||
//
|
||||
// (C) Copyright 2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2021-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -42,7 +42,7 @@ MainObject::MainObject(QObject *parent)
|
||||
"timeengine_test",
|
||||
TIMEENGINE_TEST_USAGE,
|
||||
false,this));
|
||||
if(!rda->open(&err_msg,&err_type,false)) {
|
||||
if(!rda->open(&err_msg,&err_type,false,false)) {
|
||||
fprintf(stderr,"timeengine_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -43,7 +43,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda=new RDApplication("upload_test","upload_test",UPLOAD_TEST_USAGE,false,
|
||||
this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
fprintf(stderr,"upload_test: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
}
|
||||
|
@@ -44,7 +44,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
rda=new RDApplication("wavefactory_test","wavefactory_test",
|
||||
WAVEFACTORY_TEST_USAGE,false,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
QMessageBox::critical(this,"wavefactory_test - "+tr("Error"),err_msg);
|
||||
exit(RDApplication::ExitNoDb);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test harness for RDWaveScene
|
||||
//
|
||||
// (C) Copyright 2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2022-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -43,7 +43,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
rda=new RDApplication("wavescene_test","wavescene_test",WAVESCENE_TEST_USAGE,
|
||||
false,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
QMessageBox::critical(this,"wavescene_test - "+tr("Error"),err_msg);
|
||||
exit(RDApplication::ExitNoDb);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test harness for RDWaveWidget
|
||||
//
|
||||
// (C) Copyright 2021-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2021-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -42,7 +42,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
rda=new RDApplication("wavewidget_test","wavewidget_test",WAVEWIDGET_TEST_USAGE,
|
||||
false,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
if(!rda->open(&err_msg,NULL,true,false)) {
|
||||
QMessageBox::critical(this,"wavewidget_test - "+tr("Error"),err_msg);
|
||||
exit(RDApplication::ExitNoDb);
|
||||
}
|
||||
|
Reference in New Issue
Block a user