diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..1522118 --- /dev/null +++ b/main.cpp @@ -0,0 +1,26 @@ +#include "qtspotifymain.h" + +#include "despotify_cpp.h" + +int main(int argc, char **argv) +{ + if (!despotify_init()) { + qWarning("Couldn't initialize despotify"); + return 1; + } + + QApplication app(argc, argv); + + QtSpotifyMain qsm; + qsm.showMaximized(); + + int ret = app.exec(); + + if (!despotify_cleanup()) { + qWarning("Couldn't clean up despotify"); + return 2; + } + + return ret; +} + |