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

« back to all changes in this revision

Viewing changes to src/devices/devicelister.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:
51
51
  virtual QVariantMap DeviceHardwareInfo(const QString& id) = 0;
52
52
  virtual bool DeviceNeedsMount(const QString& id) { return false; }
53
53
 
 
54
  // When connecting to a device for the first time, do we want an user's
 
55
  // confirmation for scanning it? (by default yes)
 
56
  virtual bool AskForScan(const QString&) const { return true; }
 
57
 
54
58
  virtual QString MakeFriendlyName(const QString& id) = 0;
55
59
  virtual QList<QUrl> MakeDeviceUrls(const QString& id) = 0;
56
60
 
73
77
 
74
78
protected:
75
79
  virtual void Init() = 0;
76
 
  QUrl MakeUrlFromLocalPath(const QString& path);
 
80
  QUrl MakeUrlFromLocalPath(const QString& path) const;
 
81
  bool IsIpod(const QString& path) const;
77
82
 
78
83
  QStringList GuessIconForPath(const QString& path);
79
84
  QStringList GuessIconForModel(const QString& vendor, const QString& model);