mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-13 08:05:55 +01:00
2018-02-01 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDApplication::userChanged() signal.
This commit is contained in:
@@ -147,6 +147,7 @@ bool RDApplication::open(QString *err_msg)
|
||||
app_user=new RDUser();
|
||||
app_cae=new RDCae(app_station,app_config,this);
|
||||
app_ripc=new RDRipc(app_station,app_config,this);
|
||||
connect(app_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -216,3 +217,10 @@ RDUser *RDApplication::user()
|
||||
{
|
||||
return app_user;
|
||||
}
|
||||
|
||||
|
||||
void RDApplication::userChangedData()
|
||||
{
|
||||
app_user->setName(app_ripc->user());
|
||||
emit userChanged();
|
||||
}
|
||||
|
||||
@@ -56,6 +56,12 @@ class RDApplication : public QObject
|
||||
RDSystem *system();
|
||||
RDUser *user();
|
||||
|
||||
private slots:
|
||||
void userChangedData();
|
||||
|
||||
signals:
|
||||
void userChanged();
|
||||
|
||||
private:
|
||||
RDAirPlayConf *app_airplay_conf;
|
||||
RDAirPlayConf *app_panel_conf;
|
||||
|
||||
Reference in New Issue
Block a user