summaryrefslogtreecommitdiffstats
path: root/main.cpp
blob: 1522118b55b179cf2d2eb7803d6cf76cdf5590d1 (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
#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;
}