diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-10-23 21:06:09 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-10-23 21:06:09 +0200 |
commit | 95fc9a918f123ec165f1048aa5ea8b522a4a806a (patch) | |
tree | 3a778fa417c954920fbf54071abde912236ace43 /main.cpp |
First commit
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; +} + |