Sayonara Player
MTP.h
1 /* MTP.h */
2 
3 /* Copyright (C) 2011-2016 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 
22 
23 #ifndef MTP_H
24 #define MTP_H
25 
26 #include "Helper/globals.h"
27 #include "Helper/Logger/Logger.h"
28 
29 #include "MTP_Device.h"
30 #include "MTP_File.h"
31 #include "MTP_Folder.h"
32 #include "MTP_RawDevice.h"
33 #include "MTP_Storage.h"
34 #include "MTP_Track.h"
35 
36 #include <QThread>
37 
42 class MTP : public QThread
43 {
44  Q_OBJECT
45 
46 public:
47 
48  MTP(QObject* parent=0);
49  virtual ~MTP();
50 
51  QList<MTP_RawDevicePtr> get_raw_devices();
52  QList<MTP_DevicePtr> get_devices();
53 
54 private:
55 
56  void run_raw_devices();
57  void run_devices();
58 
59  void run() override;
60 
61  QList<MTP_RawDevicePtr> _raw_devices;
62  QList<MTP_DevicePtr> _devices;
63  bool _mtp_initialized;
64 };
65 
66 #endif // MTP_H
The MTP class.
Definition: MTP.h:42