From kde-devel Wed Mar 26 23:32:51 2003 From: Arnold Krille Date: Wed, 26 Mar 2003 23:32:51 +0000 To: kde-devel Subject: Re: KAudioPlayer::play() X-MARC-Message: https://marc.info/?l=kde-devel&m=104874447413306 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-03=_oijg+pvtkYP4P2N" --Boundary-03=_oijg+pvtkYP4P2N Content-Type: multipart/mixed; boundary="Boundary-01=_jijg+AvUnJ7jXbq" Content-Transfer-Encoding: 7bit Content-Description: signed data Content-Disposition: inline --Boundary-01=_jijg+AvUnJ7jXbq Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: body text Content-Disposition: inline On Wednesday 26 March 2003 14:18, Joerg Anders wrote: > On Wed, 26 Mar 2003, Arnold Krille wrote: > > Will test it a soon as my kde3.1.1 is compiled... Jippie, kde3.1.1 completed! > I think here is a bug because I completed: > (again see http://rnvs.informatik.tu-chemnitz.de/kartstest/servertest.htm= l) Now I know the main fault. You need a dispatcher running if you want to acc= ess=20 aRtsreferences... Append a modified version. I tested it with kde3.1.1... Arnold --Boundary-01=_jijg+AvUnJ7jXbq Content-Type: text/x-makefile; charset="iso-8859-1"; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Makefile" #QTDIR = /usr/qt/3 #KDEDIR = /usr/kde/3.1 OBJS = servertest.o QTINCLUDES = $(QTDIR)/include KDEINCLUDES = $(KDEDIR)/include QTLIBS = -L$(QTDIR)/lib -lqt-mt KDELIBS = -L$(KDEDIR)/lib -lkdeui -lartskde -lkdecore #KDELIBS = -L$(KDEDIR)/lib -lkdeui -lartskde -lkdecore -lartsflow -lartsflow_idl -lsoundserver_idl -lmcop DEBUGFLAG = -g MOC = $(QTDIR)/bin/moc CXXFLAGS = $(DEBUGFLAG) -I $(KDEINCLUDES) -I$(QTINCLUDES) servertest: $(OBJS) $(CXX) -o servertest $(OBJS) $(KDELIBS) $(QTLIBS) clear: clean rm -f servertest clean: rm -f $(OBJS) core --Boundary-01=_jijg+AvUnJ7jXbq Content-Type: text/x-c++src; charset="iso-8859-1"; name="servertest.cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="servertest.cpp" #include #include #include #include #include #include #include #include class MyDialog : public QDialog { public:=20 MyDialog() : QDialog() { setGeometry(10, 10, 200, 200); } protected: bool isSuspended() { KArtsServer *server =3D new KArtsServer(); KArtsDispatcher *dispatcher =3D new KArtsDispatcher( server ); bool suspend; if( server->server().secondsUntilSuspend() =3D=3D 0) suspend=3Dtrue; else suspend =3D false; delete server; return suspend; } virtual void mousePressEvent ( QMouseEvent * e ) { if ( isSuspended() ) kdDebug()<<"Server is suspended"<addAuthor ("Joerg Anders", "Main author and maintainer", "ja@informatik.tu-chemnitz= ,de"); about->addAuthor ( "Arnold Krille", "Make it run...", "arnold@arnoldarts.de" ); KCmdLineArgs::init(argc, argv, about); KCmdLineArgs::addCmdLineOptions( options ); KApplication a( argc, argv ); MyDialog *d =3D new MyDialog(); a.setMainWidget( d ); d->show(); return a.exec(); } --Boundary-01=_jijg+AvUnJ7jXbq-- --Boundary-03=_oijg+pvtkYP4P2N Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+gjiouYLL1cDjHx0RAnAhAJ9rlH1Y+ZTWG+QTbArqz3WfZEtcDgCcCN4I VaGDtDTZc2u5BXNXPGr1ZRQ= =RPZX -----END PGP SIGNATURE----- --Boundary-03=_oijg+pvtkYP4P2N-- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<