mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-29 23:19:32 +02:00
2017-11-07 Fred Gleason <fredg@paravelsystems.com>
* Removed vestigal remnants of Host Security mode.
This commit is contained in:
parent
d139438ddc
commit
39536e6514
@ -16327,3 +16327,5 @@
|
||||
dialog in rdlibrary(1).
|
||||
2017-11-07 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added an 'RDLogFilter' widget.
|
||||
2017-11-07 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Removed vestigal remnants of Host Security mode.
|
||||
|
@ -1885,7 +1885,7 @@ Bitte Kofiguration prüfen und erneut versuchen.</translation>
|
||||
<name>RDListLogs</name>
|
||||
<message>
|
||||
<source>Select Log - User: </source>
|
||||
<translation>Vybrat zápis - uživatel:</translation>
|
||||
<translation type="obsolete">Vybrat zápis - uživatel:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select Log</source>
|
||||
|
@ -1876,7 +1876,7 @@ Bitte Kofiguration prüfen und erneut versuchen.</translation>
|
||||
<name>RDListLogs</name>
|
||||
<message>
|
||||
<source>Select Log - User: </source>
|
||||
<translation>Logbenutzer auswählen:</translation>
|
||||
<translation type="obsolete">Logbenutzer auswählen:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select Log</source>
|
||||
|
@ -1882,7 +1882,7 @@ Do you still want to proceed?</source>
|
||||
<name>RDListLogs</name>
|
||||
<message>
|
||||
<source>Select Log - User: </source>
|
||||
<translation>Seleccionar Playlist - Usuario: </translation>
|
||||
<translation type="obsolete">Seleccionar Playlist - Usuario: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select Log</source>
|
||||
|
@ -1703,10 +1703,6 @@ Do you want to overwrite it?</source>
|
||||
</context>
|
||||
<context>
|
||||
<name>RDListLogs</name>
|
||||
<message>
|
||||
<source>Select Log - User: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select Log</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@ -1876,10 +1876,6 @@ Sjekk eksportoppsettet ditt og prøv att.</translation>
|
||||
</context>
|
||||
<context>
|
||||
<name>RDListLogs</name>
|
||||
<message>
|
||||
<source>Select Log - User: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select Log</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@ -1876,10 +1876,6 @@ Sjekk eksportoppsettet ditt og prøv att.</translation>
|
||||
</context>
|
||||
<context>
|
||||
<name>RDListLogs</name>
|
||||
<message>
|
||||
<source>Select Log - User: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select Log</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@ -1880,7 +1880,7 @@ Por Favor, cheque suas configurações e tenbte outra vez.</translation>
|
||||
<name>RDListLogs</name>
|
||||
<message>
|
||||
<source>Select Log - User: </source>
|
||||
<translation>Selecionar Lista - Usuario: </translation>
|
||||
<translation type="obsolete">Selecionar Lista - Usuario: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select Log</source>
|
||||
|
@ -21,15 +21,15 @@
|
||||
#include <qpushbutton.h>
|
||||
#include <qdatetime.h>
|
||||
#include <rddb.h>
|
||||
#include <rdescape_string.h>
|
||||
#include <rdlist_logs.h>
|
||||
|
||||
RDListLogs::RDListLogs(QString *logname,const QString &stationname,
|
||||
QWidget *parent,RDUser *rduser)
|
||||
QWidget *parent)
|
||||
: QDialog(parent,"",true)
|
||||
{
|
||||
list_stationname=stationname;
|
||||
list_logname=logname;
|
||||
list_user=rduser;
|
||||
|
||||
//
|
||||
// Fix the Window Size
|
||||
@ -45,12 +45,7 @@ RDListLogs::RDListLogs(QString *logname,const QString &stationname,
|
||||
QFont button_font("Helvetica",12,QFont::Bold);
|
||||
button_font.setPixelSize(12);
|
||||
|
||||
if (list_user != 0) { // RDStation::UserSec
|
||||
setCaption(QString().sprintf("%s%s",(const char *)tr("Select Log - User: "),
|
||||
(const char *)list_user->name() ));
|
||||
} else { // RDStation::HostSec
|
||||
setCaption(tr("Select Log"));
|
||||
}
|
||||
setCaption(tr("Select Log"));
|
||||
|
||||
//
|
||||
// Log List
|
||||
@ -147,18 +142,14 @@ void RDListLogs::RefreshList()
|
||||
|
||||
list_log_list->clear();
|
||||
|
||||
if (list_user != 0) { // RDStation::UserSec
|
||||
services_list = list_user->services();
|
||||
} else { // RDStation::HostSec
|
||||
sql=QString().sprintf("select SERVICE_NAME from SERVICE_PERMS \
|
||||
where STATION_NAME=\"%s\"",
|
||||
(const char *)list_stationname);
|
||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
services_list.append( q->value(0).toString() );
|
||||
}
|
||||
delete q;
|
||||
sql=QString("select ")+
|
||||
"SERVICE_NAME from SERVICE_PERMS where "+
|
||||
"STATION_NAME=\""+RDEscapeString(list_stationname)+"\"";
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
services_list.append( q->value(0).toString() );
|
||||
}
|
||||
delete q;
|
||||
|
||||
if(services_list.size()==0) {
|
||||
return;
|
||||
|
@ -30,21 +30,13 @@
|
||||
#include <qdialog.h>
|
||||
#include <qlistview.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <rduser.h>
|
||||
|
||||
class RDListLogs : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/**
|
||||
* Constructor for the RDListLogs object.
|
||||
*
|
||||
* NOTE: the presence of the optional rduser parameter is used to flag if
|
||||
* user security should be used instead of host based security.
|
||||
*/
|
||||
RDListLogs(QString *logname,const QString &stationname,
|
||||
QWidget *parent=0,RDUser *rduser=0);
|
||||
RDListLogs(QString *logname,const QString &stationname,QWidget *parent=0);
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
@ -59,7 +51,6 @@ class RDListLogs : public QDialog
|
||||
QListView *list_log_list;
|
||||
QString *list_logname;
|
||||
QString list_stationname;
|
||||
RDUser *list_user;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1000,7 +1000,7 @@ void EditRDAirPlay::selectData()
|
||||
{
|
||||
QString logname=air_startlog_edit->text();
|
||||
|
||||
RDListLogs *ll=new RDListLogs(&logname,air_conf->station(),this,admin_user);
|
||||
RDListLogs *ll=new RDListLogs(&logname,air_conf->station(),this);
|
||||
if(ll->exec()==0) {
|
||||
air_startlog_edit->setText(logname);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user