Sayonara Player
MTP_Typedefs.h
1 
2 /* Copyright (C) 2011-2017 Lucio Carreras
3  *
4  * This file is part of sayonara player
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10 
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15 
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef MTP_TYPEDEFS_H
21 #define MTP_TYPEDEFS_H
22 
23 #include <memory>
24 
25 #include <QString>
26 #include <QList>
27 
28 #include <libmtp.h>
29 
30 
31 class MTP_Device;
32 class MTP_File;
33 struct MTP_Folder;
34 class MTP_RawDevice;
35 class MTP_Storage;
36 class MTP_Track;
37 
42 typedef LIBMTP_device_entry_t MTPIntern_DeviceEntry;
43 
48 typedef LIBMTP_error_number_t MTPIntern_ErrorNumber;
49 
54 typedef LIBMTP_error_t MTPIntern_Error;
55 
60 typedef LIBMTP_mtpdevice_t MTPIntern_Device;
61 
66 typedef std::shared_ptr<MTP_Device> MTP_DevicePtr;
67 
72 typedef LIBMTP_file_t MTPIntern_File;
73 
78 typedef std::shared_ptr<MTP_File> MTP_FilePtr;
79 
84 typedef LIBMTP_folder_t MTPIntern_Folder;
85 
90 typedef std::shared_ptr<MTP_Folder> MTP_FolderPtr;
91 
96 typedef LIBMTP_raw_device_t MTPIntern_RawDevice;
97 
102 typedef std::shared_ptr<MTP_RawDevice> MTP_RawDevicePtr;
103 
108 typedef LIBMTP_devicestorage_t MTPIntern_Storage;
109 
114 typedef std::shared_ptr<MTP_Storage> MTP_StoragePtr;
115 
120 typedef LIBMTP_track_t MTPIntern_Track;
121 
126 typedef std::shared_ptr<MTP_Track> MTP_TrackPtr;
127 
128 
129 #endif // MTP_TYPEDEFS_H
LIBMTP_error_t MTPIntern_Error
MTPIntern_Error.
Definition: MTP_Typedefs.h:54
LIBMTP_device_entry_t MTPIntern_DeviceEntry
MTPIntern_DeviceEntry.
Definition: MTP_Typedefs.h:36
The MTP_File class.
Definition: MTP_File.h:29
The MTP_Device class.
Definition: MTP_Device.h:29
std::shared_ptr< MTP_Folder > MTP_FolderPtr
MTP_FolderPtr.
Definition: MTP_Typedefs.h:90
The MTP_Track class.
Definition: MTP_Track.h:30
The MTP_Folder struct.
Definition: MTP_Folder.h:29
std::shared_ptr< MTP_Storage > MTP_StoragePtr
MTP_StoragePtr.
Definition: MTP_Typedefs.h:114
std::shared_ptr< MTP_RawDevice > MTP_RawDevicePtr
MTP_RawDevicePtr.
Definition: MTP_Typedefs.h:102
std::shared_ptr< MTP_Track > MTP_TrackPtr
MTP_TrackPtr.
Definition: MTP_Typedefs.h:126
LIBMTP_raw_device_t MTPIntern_RawDevice
MTPIntern_RawDevice.
Definition: MTP_Typedefs.h:96
LIBMTP_error_number_t MTPIntern_ErrorNumber
MTPIntern_ErrorNumber.
Definition: MTP_Typedefs.h:48
The MTP_Storage class.
Definition: MTP_Storage.h:30
std::shared_ptr< MTP_File > MTP_FilePtr
MTP_FilePtr.
Definition: MTP_Typedefs.h:78
LIBMTP_track_t MTPIntern_Track
MTPIntern_Track.
Definition: MTP_Typedefs.h:120
std::shared_ptr< MTP_Device > MTP_DevicePtr
MTP_DevicePtr.
Definition: MTP_Typedefs.h:66
LIBMTP_file_t MTPIntern_File
MTPIntern_File.
Definition: MTP_Typedefs.h:72
LIBMTP_mtpdevice_t MTPIntern_Device
MTPIntern_Device.
Definition: MTP_Typedefs.h:60
LIBMTP_folder_t MTPIntern_Folder
MTPIntern_Folder.
Definition: MTP_Typedefs.h:84
The MTP_RawDevice class.
Definition: MTP_RawDevice.h:30
LIBMTP_devicestorage_t MTPIntern_Storage
MTPIntern_Storage.
Definition: MTP_Typedefs.h:108