~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to noatun/noatun/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <qapplication.h>
 
2
#include <noatunapp.h>
 
3
#include "joinhandler.h"
 
4
#include <kuniqueapp.h>
 
5
#include <dcopclient.h>
 
6
#include <kaboutdata.h>
 
7
#include <kcmdlineargs.h>
 
8
#include <klocale.h>
 
9
#include <qdatetime.h>
 
10
#include <qfile.h>
 
11
#include <kmessagebox.h>
 
12
 
 
13
void noMessageOutput(QtMsgType, const char *)
 
14
{
 
15
}
 
16
 
 
17
static const char *description=I18N_NOOP("\"It just sounds better in Noatun\"");
 
18
static const char *version="1.2.0";
 
19
 
 
20
static KCmdLineOptions options[] =
 
21
{
 
22
        { "+[URL]",          I18N_NOOP("Files/URLs to Open."),     0 },
 
23
        { "playlist <file>", I18N_NOOP("Open a Playlist"),         0 },
 
24
        { "qdebug",          I18N_NOOP("Turn on Qt Debug output, for pluginwriting"), 0 },
 
25
        { 0, 0, 0}
 
26
};
 
27
 
 
28
int main(int argc, char **argv)
 
29
{
 
30
        KAboutData aboutData("noatun", I18N_NOOP("Noatun"),
 
31
                             version, description, KAboutData::License_BSD,
 
32
                             "(c) 2000-2001, The Noatun Developers", 0, "http://noatun.kde.org");
 
33
        aboutData.addAuthor("Charles Samuels", I18N_NOOP("Noatun Developer"),
 
34
                            "charles@kde.org");
 
35
        aboutData.addAuthor("Neil Stevens", I18N_NOOP("Standards and usability complainer"),
 
36
                            "neil@qualityassistant.com");
 
37
        aboutData.addAuthor("Stefan Westerfeld", I18N_NOOP("Patron of the aRts"),
 
38
                            "stefan@space.twc.de");
 
39
        aboutData.addAuthor("Martin Vogt", I18N_NOOP("MPEG Codec and OGG Vorbis Support"),
 
40
                            "mvogt@rhrk.uni-kl.de");
 
41
        aboutData.addAuthor("Malte Starostik", I18N_NOOP("Infrared Control Support and HTML playlist export"),
 
42
                            "malte@kde.org");
 
43
        aboutData.addAuthor("Nikolas Zimmermann", I18N_NOOP("HTML playlist export and Plugin System"),
 
44
                            "wildfox@kde.org");
 
45
        aboutData.addAuthor("Stefan Schimanski", I18N_NOOP("Kaiman Skin Support"),
 
46
                            "1Stein@gmx.de" );
 
47
 
 
48
        aboutData.addCredit("Bill Huey", I18N_NOOP("Special help with the equalizer"));
 
49
        
 
50
        KCmdLineArgs::init( argc, argv, &aboutData );
 
51
        KCmdLineArgs::addCmdLineOptions(options);
 
52
        NoatunApp::addCmdLineOptions();
 
53
 
 
54
        NoatunApp app;
 
55
 
 
56
        if(!KCmdLineArgs::parsedArgs()->isSet("qdebug"))
 
57
                qInstallMsgHandler(noMessageOutput);
 
58
 
 
59
        return app.exec();
 
60
}
 
61