~sebastien-amardeilh/yarock/trunk

« back to all changes in this revision

Viewing changes to src/main.cpp

  • Committer: sebastien-amardeilh
  • Date: 2014-03-02 09:36:29 UTC
  • Revision ID: sebastien-amardeilh@gmail.com-20140302093629-tvuzqkv6upcfj3ag
update for 0.9.66 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************************
2
2
*  YAROCK                                                                               *
3
 
*  Copyright (c) 2010-2013 Sebastien amardeilh <sebastien.amardeilh+yarock@gmail.com>   *
 
3
*  Copyright (c) 2010-2014 Sebastien amardeilh <sebastien.amardeilh+yarock@gmail.com>   *
4
4
*                                                                                       *
5
5
*  This program is free software; you can redistribute it and/or modify it under        *
6
6
*  the terms of the GNU General Public License as published by the Free Software        *
24
24
#include <QDir>
25
25
#include <QString>
26
26
#include <QTime>
27
 
#include <QNetworkAccessManager>
28
27
 
29
28
#include <QDBusMetaType>
30
29
#include <QDBusConnection>
49
48
//! third
50
49
#include "qtsingleapplication.h"
51
50
#include "qtsinglecoreapplication.h"
52
 
#include <echonest/Config.h>
53
51
 
54
52
//! X11 and signal
55
53
#include <X11/Xlib.h>
172
170
    //! QRand initialisation
173
171
    qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
174
172
 
175
 
    //! Echonest settings
176
 
    Echonest::Config::instance()->setAPIKey("DFLFLJBUF4EGTXHIG");
177
 
    Echonest::Config::instance()->setNetworkAccessManager(new QNetworkAccessManager() );
178
 
 
179
173
    //! Directories settings
180
174
    QDir().mkpath(UTIL::CONFIGDIR);
181
175
    QDir().mkpath(UTIL::CONFIGDIR + "/radio");