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

« back to all changes in this revision

Viewing changes to src/core/mimedata.h

  • 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:
26
26
public:
27
27
  MimeData(bool clear = false, bool play_now = false,
28
28
           bool enqueue = false, bool open_in_new_playlist = false)
29
 
    : clear_first_(clear),
 
29
    : override_user_settings_(false),
 
30
      clear_first_(clear),
30
31
      play_now_(play_now),
31
32
      enqueue_now_(enqueue),
32
33
      open_in_new_playlist_(open_in_new_playlist),
33
34
      name_for_new_playlist_(QString()),
34
35
      from_doubleclick_(false) {}
35
36
 
 
37
  // If this is set then MainWindow will not touch any of the other flags.
 
38
  bool override_user_settings_;
 
39
 
36
40
  // If this is set then the playlist will be cleared before these songs
37
41
  // are inserted.
38
42
  bool clear_first_;
39
43
 
40
44
  // If this is set then the first item that is inserted will start playing
41
45
  // immediately.  Note: this is always overridden with the user's preference
42
 
  // if the MimeData goes via MainWindow.
 
46
  // if the MimeData goes via MainWindow, unless you set override_user_settings_.
43
47
  bool play_now_;
44
48
 
45
49
  // If this is set then the items are added to the queue after being inserted.
62
66
  QString get_name_for_new_playlist() {
63
67
    return name_for_new_playlist_.isEmpty() ? tr("Playlist") : name_for_new_playlist_;
64
68
  }
65
 
 
66
69
};
67
70
 
68
71
#endif // MIMEDATA_H