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

« back to all changes in this revision

Viewing changes to src/devices/macdevicelister.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:
4
4
#include "devicelister.h"
5
5
 
6
6
#include <QMutex>
 
7
#include <QSet>
7
8
#include <QThread>
8
9
 
9
10
#include <DiskArbitration/DADisk.h>
23
24
  virtual quint64 DeviceCapacity(const QString& id);
24
25
  virtual quint64 DeviceFreeSpace(const QString& id);
25
26
  virtual QVariantMap DeviceHardwareInfo(const QString& id);
 
27
  virtual bool AskForScan(const QString& serial) const;
26
28
  virtual QString MakeFriendlyName(const QString& id);
27
29
  virtual QList<QUrl> MakeDeviceUrls(const QString& id);
28
30
 
40
42
    int bus;
41
43
    int address;
42
44
 
43
 
    int capacity;
44
 
    int free_space;
 
45
    quint64 capacity;
 
46
    quint64 free_space;
45
47
  };
46
48
 
47
49
 public slots:
61
63
  void FoundMTPDevice(const MTPDevice& device, const QString& serial);
62
64
  void RemovedMTPDevice(const QString& serial);
63
65
 
64
 
  int GetFreeSpace(const QUrl& url);
65
 
  int GetCapacity(const QUrl& url);
 
66
  quint64 GetFreeSpace(const QUrl& url);
 
67
  quint64 GetCapacity(const QUrl& url);
 
68
 
 
69
  bool IsCDDevice(const QString& serial) const;
66
70
 
67
71
  DASessionRef loop_session_;
68
72
  CFRunLoopRef run_loop_;
69
73
 
70
74
  QMap<QString, QString> current_devices_;
71
75
  QMap<QString, MTPDevice> mtp_devices_;
 
76
  QSet<QString> cd_devices_;
72
77
 
73
78
  QMutex libmtp_mutex_;
74
79