summaryrefslogtreecommitdiffstats
path: root/kmix/main.cpp
blob: 1860cf43a2f4a6504bcff37924cfb4d1030b52e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
 * KMix -- KDE's full featured mini mixer
 *
 *
 * Copyright (C) 2000 Stefan Schimanski <[email protected]>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this program; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

#include <tdecmdlineargs.h>
#include <tdeaboutdata.h>
#include <tdelocale.h>
#include <tdeglobal.h>
#include <kstandarddirs.h>

#include "KMixApp.h"
#include "version.h"

static const char description[] =
I18N_NOOP("KMix - TDE's full featured mini mixer");

static TDECmdLineOptions options[] =
{
   TDECmdLineLastOption
   // INSERT YOUR COMMANDLINE OPTIONS HERE
};

extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
{
   TDEAboutData aboutData( "kmix", I18N_NOOP("KMix"),
                         APP_VERSION, description, TDEAboutData::License_GPL,
                         I18N_NOOP("(c) 1996-2000 Christian Esken\n(c) 2000-2003 Christian Esken, Stefan Schimanski\n(c) 2002-2005 Christian Esken, Helio Chissini de Castro\n (c) 2010-2022 The Trinity Desktop project"));

   aboutData.addAuthor("Christian Esken", "Previous maintainer", "[email protected]");
   aboutData.addAuthor("Helio Chissini de Castro", I18N_NOOP("Redesign and previous co-maintainer, Alsa 0.9x port"), "[email protected]" );
   aboutData.addAuthor("Stefan Schimanski", 0, "[email protected]");
   aboutData.addAuthor("Sven Leiber", 0, "[email protected]");
   aboutData.addAuthor("Brian Hanson", I18N_NOOP("Solaris port"), "[email protected]");
   aboutData.addAuthor("Paul Kendall", I18N_NOOP("SGI Port"), "[email protected]");
   aboutData.addAuthor("Sebestyen Zoltan", I18N_NOOP("*BSD fixes"), "[email protected]");
   aboutData.addAuthor("Lennart Augustsson", I18N_NOOP("*BSD fixes"), "[email protected]");
   aboutData.addAuthor("Nick Lopez", I18N_NOOP("ALSA port"), "[email protected]");
   aboutData.addAuthor("Helge Deller", I18N_NOOP("HP/UX port"), "[email protected]");
   aboutData.addAuthor("Jean Labrousse", I18N_NOOP("NAS port"), "[email protected]" );
   aboutData.addCredit("Nadeem Hasan", I18N_NOOP("Mute and volume preview, other fixes"), "[email protected]");

   TDECmdLineArgs::init( argc, argv, &aboutData );
   TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.

   if (!KMixApp::start())
       return 0;

   KMixApp *app = new KMixApp();
   int ret = app->exec();
   delete app;
   return ret;
}