Review comment changes

This commit is contained in:
Peter L Jones 2020-05-25 18:47:14 +01:00
parent 0f8d15f343
commit 7977413bb6
4 changed files with 16 additions and 27 deletions

View file

@ -470,7 +470,7 @@ CServer::CServer ( const int iNewMaxNumChan,
QObject::connect( &JamRecorder,
SIGNAL ( RecordingSessionStarted ( QString ) ),
this, SLOT ( OnRecordingSessionStarted ( QString ) ) );
SIGNAL ( RecordingSessionStarted ( QString ) ) );
QObject::connect ( QCoreApplication::instance(),
SIGNAL ( aboutToQuit() ),

View file

@ -459,11 +459,6 @@ public slots:
void OnCLDisconnection ( CHostAddress InetAddr );
void OnRecordingSessionStarted ( QString sessionDir )
{
emit RecordingSessionStarted ( sessionDir );
}
void OnAboutToQuit();
void OnHandledSignal ( int sigNum );

View file

@ -336,8 +336,8 @@ lvwClients->setMinimumHeight ( 140 );
this, SLOT ( OnCentServAddrTypeActivated ( int ) ) );
// push buttons
QObject::connect( pbtNewRecording, SIGNAL ( released() ),
this, SLOT ( OnNewRecordingClicked() ) );
QObject::connect ( pbtNewRecording, SIGNAL ( released() ),
this, SLOT ( OnNewRecordingClicked() ) );
// timers
QObject::connect ( &Timer, SIGNAL ( timeout() ), this, SLOT ( OnTimer() ) );
@ -474,11 +474,6 @@ void CServerDlg::OnCentServAddrTypeActivated ( int iTypeIdx )
UpdateGUIDependencies();
}
void CServerDlg::OnNewRecordingClicked()
{
pServer->RestartRecorder();
}
void CServerDlg::OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason )
{
// on double click on the icon, show window in fore ground
@ -532,17 +527,6 @@ void CServerDlg::OnTimer()
ListViewMutex.unlock();
}
void CServerDlg::OnServerStarted()
{
UpdateSystemTrayIcon ( true );
}
void CServerDlg::OnServerStopped()
{
UpdateSystemTrayIcon ( false );
UpdateRecorderStatus ( QString::null );
}
void CServerDlg::UpdateGUIDependencies()
{

View file

@ -91,10 +91,15 @@ public slots:
void OnLocationCityTextChanged ( const QString& strNewCity );
void OnLocationCountryActivated ( int iCntryListItem );
void OnCentServAddrTypeActivated ( int iTypeIdx );
void OnNewRecordingClicked();
void OnTimer();
void OnServerStarted();
void OnServerStopped();
void OnServerStarted() { UpdateSystemTrayIcon ( true ); }
void OnServerStopped()
{
UpdateSystemTrayIcon ( false );
UpdateRecorderStatus ( QString::null );
}
void OnSvrRegStatusChanged() { UpdateGUIDependencies(); }
void OnSysTrayMenuOpen() { ShowWindowInForeground(); }
void OnSysTrayMenuHide() { hide(); }
@ -104,6 +109,11 @@ public slots:
void keyPressEvent ( QKeyEvent *e ) // block escape key
{ if ( e->key() != Qt::Key_Escape ) QDialog::keyPressEvent ( e ); }
void OnNewRecordingClicked();
{
pServer->RestartRecorder();
}
void OnRecordingSessionStarted ( QString sessionDir )
{
UpdateRecorderStatus ( sessionDir );