Sayonara Player
MTP.h
1 /* MTP.h */
2 
3 /* Copyright (C) 2011-2017 Lucio Carreras
4  *
5  * This file is part of sayonara player
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef MTP_H
22 #define MTP_H
23 
24 #include "MTP_Device.h"
25 #include "MTP_File.h"
26 #include "MTP_Folder.h"
27 #include "MTP_RawDevice.h"
28 #include "MTP_Storage.h"
29 #include "MTP_Track.h"
30 
31 #include <QThread>
32 #include <QList>
33 
38 class MTP : public QThread
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit MTP(QObject* parent=nullptr);
45  virtual ~MTP();
46 
47  QList<MTP_RawDevicePtr> get_raw_devices();
48 
49 private:
50 
51  void run_raw_devices();
52 
53  void run() override;
54 
55  QList<MTP_RawDevicePtr> _raw_devices;
56  bool _mtp_initialized;
57 };
58 
59 #endif // MTP_H
The MTP class.
Definition: MTP.h:38