diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /noatun/app | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/app')
-rw-r--r-- | noatun/app/Makefile.am | 11 | ||||
-rw-r--r-- | noatun/app/main.cpp | 47 |
2 files changed, 58 insertions, 0 deletions
diff --git a/noatun/app/Makefile.am b/noatun/app/Makefile.am new file mode 100644 index 00000000..59d8dbd2 --- /dev/null +++ b/noatun/app/Makefile.am @@ -0,0 +1,11 @@ +INCLUDES = -I$(top_srcdir)/noatun/library -I$(kde_includes)/arts $(all_includes) + +kdeinit_LTLIBRARIES = noatun.la +noatun_la_SOURCES = main.cpp +noatun_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -module -avoid-version +noatun_la_LIBADD = -lqtmcop -lkmedia2_idl -lsoundserver_idl $(top_builddir)/noatun/library/libnoatun.la + +bin_PROGRAMS = +lib_LTLIBRARIES = + +METASOURCES = AUTO diff --git a/noatun/app/main.cpp b/noatun/app/main.cpp new file mode 100644 index 00000000..86883461 --- /dev/null +++ b/noatun/app/main.cpp @@ -0,0 +1,47 @@ +#include <noatun/app.h> +//#include "joinhandler.h" +//#include <dcopclient.h> +#include <kaboutdata.h> +#include <kcmdlineargs.h> +#include <klocale.h> + +static const char description[] = I18N_NOOP("The Fusion of Frequencies"); +static const char version[] = NOATUN_VERSION; + +static KCmdLineOptions options[] = +{ + { "+[URL]", I18N_NOOP("Files/URLs to open"), 0 }, + KCmdLineLastOption +}; + +extern "C" KDE_EXPORT int kdemain(int argc, char **argv) +{ + KAboutData aboutData("noatun", I18N_NOOP("Noatun"), + version, description, KAboutData::License_BSD, + I18N_NOOP("(c) 2000-2004, The Noatun Developers"), + 0, "http://noatun.kde.org"); + aboutData.addAuthor("Charles Samuels", I18N_NOOP("Noatun Developer"), + "charles@kde.org"); + aboutData.addAuthor("Stefan Westerfeld", I18N_NOOP("Patron of the aRts"), + "stefan@space.twc.de"); + aboutData.addAuthor("Martin Vogt", I18N_NOOP("MPEG Codec and OGG Vorbis Support"), + "mvogt@rhrk.uni-kl.de"); + aboutData.addAuthor("Malte Starostik", I18N_NOOP("Infrared Control Support and HTML playlist export"), + "malte@kde.org"); + aboutData.addAuthor("Nikolas Zimmermann", I18N_NOOP("HTML playlist export and Plugin System"), + "wildfox@kde.org"); + aboutData.addAuthor("Stefan Schimanski", I18N_NOOP("Kaiman Skin Support"), + "1Stein@gmx.de"); + aboutData.addAuthor("Stefan Gehn", I18N_NOOP("Extended K-Jöfol Skin Support, EXTM3U playlist loading"), + "metz@gehn.net"); + + aboutData.addCredit("Bill Huey", I18N_NOOP("Special help with the equalizer")); + + KCmdLineArgs::init( argc, argv, &aboutData ); + KCmdLineArgs::addCmdLineOptions(options); + NoatunApp::addCmdLineOptions(); + + NoatunApp app; + return app.exec(); +} + |