[LAA] [ANN] libofqf-0.1.1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-announce@...>, A list for linux audio users <linux-audio-user@...>, <linux-audio-dev@...>
Date: Monday, April 23, 2007 - 7:33 pm

Hi everybody,

I am proclaiming the birth of a new (small) project: OSC for Qt4 (ofqf)!

Quicklink to the download:=20
http://www.arnoldarts.de/drupal/files/downloads/ofqf/ofqf-0.1.1.tar.bz2

=46rom the ofqf-page (http://www.arnoldarts.de/drupal/?q=3Dnode/573):

ofqf is a native OSC implementation in Qt4. Native means that ofqf doesn't=
=20
depend on other external libs (except for QtCore and QtNetwork) and ofqf=20
isn't just a wrapper around liblo or something.

=3D Why shoud I use ofqf? =3D

If your app is using Qt, you do have several choices for OSC, but all invol=
ve=20
wrapping external libraries with some QObject so you can use signals/slots =
to=20
communicate with the rest of your app. In that case you will want to use=20
ofqf!=20

=3D Show me examples! =3D

=3D=3D server =3D=3D
A simple OSC-server that can be shut down by the osc-message "/quit" is the=
=20
following:
QOscServer* s =3D new QOscServer(
QHostAddress::Any,
5000,
QCoreApplication::instance()
);
PathObject* pathquit =3D new PathObject(
"/quit",
QVariant::Invalid,
QCoreApplication::instance()
);
QObject::connect(
pathquit, SIGNAL( data() ),
QCoreApplication::instance(), SLOT( quit() )
);

Thats it on the server side...=20

=3D=3D client =3D=3D
A simple client to stop that server on button-click:=20
int main( int argc, char** argv )
{
QApplication* app =3D new QApplication( argc, argv );

QPushButton* btn =3D new QPushButton( "Quit the server and this cli=
ent",=20
0 );
btn->show();

QOscClient* c =3D new QOscClient( QHostAddress::LocalHost, 5000, ap=
p );
PathObject* pathquit =3D new PathObject( "/quit", QVariant::Invalid=
,=20
c );

QObject::connect( btn, SIGNAL( clicked() ), pathquit, SLOT(=20
send() ) );
QObject::connect( btn, SIGNAL( clicked() ), btn, SLOT( close() );

return app->exec();
}

=3D Download =3D

Grab the sources of version 0.1.1 from here:=20
http://www.arnoldarts.de/drupal/files/downloads/ofqf/ofqf-0.1.1.tar.bz2

=3D Installation =3D

Building the lib and the samples is done with calling "scons".=20
If you want to install lib, headers and pkg-config-file you have to use "sc=
ons=20
install" which installs by default to /usr/local. To select another prefix=
=20
you have to use "scons install PREFIX=3D".=20
To uninstall the installed files use "scons -c install" or, if you used you=
r=20
own prefix, "scons -c install PREFIX=3D".

=2D-=20
visit http://www.arnoldarts.de/
=2D--
Hi, I am a .signature virus. Please copy me into your ~/.signature and send=
me=20
to all your contacts.
After a month or so log in as root and do a rm / -rf. Or ask your=20
administrator to do so...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[linux-audio-announce] [ANN] liblrdf v0.3.5, Steve Harris, (Sun Feb 8, 4:20 pm)
[LAA] [ANN] libofqf-0.1.1, Arnold Krille, (Mon Apr 23, 7:33 pm)