~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/smartplaylists/generator.cpp

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
#include "generator.h"
19
19
#include "querygenerator.h"
20
 
#include "radio/jamendodynamicplaylist.h"
 
20
#include "core/logging.h"
 
21
#include "internet/jamendodynamicplaylist.h"
21
22
 
22
23
#include <QSettings>
23
24
 
24
25
namespace smart_playlists {
25
26
 
26
27
const int Generator::kDefaultLimit = 20;
27
 
const int Generator::kDynamicHistory = 5;
28
 
const int Generator::kDynamicFuture = 15;
 
28
const int Generator::kDefaultDynamicHistory = 5;
 
29
const int Generator::kDefaultDynamicFuture = 15;
29
30
 
30
31
Generator::Generator()
31
32
  : QObject(NULL),
39
40
  else if (type == "Jamendo")
40
41
    return GeneratorPtr(new JamendoDynamicPlaylist);
41
42
 
42
 
  qWarning() << "Invalid playlist generator type:" << type;
 
43
  qLog(Warning) << "Invalid playlist generator type:" << type;
43
44
  return GeneratorPtr();
44
45
}
45
46