diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..6a8c6a8 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,35 @@ +#include <tdeapplication.h> +#include <tdecmdlineargs.h> +#include <tdeaboutdata.h> +#include <tdelocale.h> + +#include "model/pulsemodel.h" +#include "ui/mixerwindow.h" + +static TDECmdLineOptions options[] = { TDECmdLineLastOption }; + +int main( int argc, char **argv ) +{ + TDEAboutData about( + "tmix", I18N_NOOP("TMix"), + "0.1", + I18N_NOOP("Trinity audio mixer"), + TDEAboutData::License_GPL_V2, + "(C) 2024 Trinity Desktop Project" + ); + + TDECmdLineArgs::init( argc, argv, &about ); + TDECmdLineArgs::addCmdLineOptions( options ); + TDEApplication app; + + PulseModel model; + if ( !model.open() ) { + // TODO: show error dialog + return 1; + } + + MixerWindow win( &model ); + win.show(); + + return app.exec(); +} |
