kdemultimedia/arts/tools

Arnold Krille arnold at arnoldarts.de
Tue Aug 19 20:35:58 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry, had the wrong adress:


CVS commit by akrille:


Tried to test wether KArtsServer emits the signal restartedServer if I kill
 artsd. It does not!

Looking at the code of kartsserver.cpp it seems to me that the signal is only
 emitted if a reference to SoundServerV2 is requested and KArtsServer has to
 start artsd to get one. So maybe a watchdog constantly requesting such a
 reference would be a simple solution. Is there a better one? Perhaps a
 separate watchdog-function?

CCMAIL: kretz at kde.org
CCMAIL: kdemultimedia at mail.kde.org


  M +11 -3     main.cpp   1.43
  M +2 -0      main.h   1.26


- --- kdemultimedia/arts/tools/main.cpp  #1.42:1.43
@@ -261,8 +261,11 @@ void MainWindow::toggleVolumeBar() {
 }

- -MainWindow::MainWindow() : KMainWindow(0) {
+MainWindow::MainWindow() : KMainWindow(0), kartsserver( new KArtsServer(
 this ) ) { +kdDebug() << k_funcinfo << endl;
         vc = new VControl(this);
         setCentralWidget(vc);
- -        artsactions = new ArtsActions( new KArtsServer( this ),
 actionCollection(), this ); +        artsactions = new ArtsActions(
 kartsserver, actionCollection(), this ); +
+        connect( kartsserver, SIGNAL( restartedServer() ), this, SLOT(
 server_restarted() ) );

         ( void ) artsactions->actionScopeView();
@@ -272,5 +275,5 @@ MainWindow::MainWindow() : KMainWindow(0
         ( void ) artsactions->actionEnvironmentView();
         ( void ) artsactions->actionMediaTypesView();
- -        ( void )new KAction( i18n("Toggle Free&Verb"), 0, vc, SLOT(
 showFreeVerbView() ), actionCollection(), "view_freeverb" ); +        ( void
 ) new KAction( i18n("Toggle Free&Verb"), 0, vc, SLOT( showFreeVerbView() ),
 actionCollection(), "view_freeverb" ); showOldVolumeDisplay=
                 new KToggleAction( i18n( "Old aRts-Control-Style for
 VU-Meter" /*"&LED-Style Volume Display"*/ ), 0, this, @@ -281,4 +284,9 @@
 MainWindow::MainWindow() : KMainWindow(0
         resize(20,300);
         show();
+}
+
+void MainWindow::server_restarted() {
+kdDebug() << k_funcinfo << endl;
+        KMessageBox::sorry( this, "aRts had to restart!" );
 }


- --- kdemultimedia/arts/tools/main.h  #1.25:1.26
@@ -119,8 +119,10 @@ protected:
         KToggleAction *showOldVolumeDisplay;
         ArtsActions* artsactions;
+        KArtsServer *kartsserver;

 public slots:
         void toggleVolumeBar();

+        void server_restarted();
 public:
         MainWindow();
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/QnwiuYLL1cDjHx0RAhH3AJ4nj/ypqzpE04LvOAGs9/UiqrzXCwCfa2rw
fQ14eSQtSEDaEUqJb+qXW8M=
=F5Ze
-----END PGP SIGNATURE-----



More information about the kde-multimedia mailing list