Sayonara Player
MTP_Typedefs.h
1 
2 /* Copyright (C) 2011-2016 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 
21 
22 
23 #ifndef MTP_TYPEDEFS_H
24 #define MTP_TYPEDEFS_H
25 
26 #include <memory>
27 
28 #include <libmtp.h>
29 #include <QString>
30 #include <QList>
31 #include "Helper/Logger/Logger.h"
32 
33 
34 class MTP_Device;
35 class MTP_File;
36 struct MTP_Folder;
37 class MTP_RawDevice;
38 class MTP_Storage;
39 class MTP_Track;
40 
45 typedef LIBMTP_device_entry_t MTPIntern_DeviceEntry;
46 
51 typedef LIBMTP_error_number_t MTPIntern_ErrorNumber;
52 
57 typedef LIBMTP_error_t MTPIntern_Error;
58 
63 typedef LIBMTP_mtpdevice_t MTPIntern_Device;
64 
69 typedef std::shared_ptr<MTP_Device> MTP_DevicePtr;
70 
75 typedef LIBMTP_file_t MTPIntern_File;
76 
81 typedef std::shared_ptr<MTP_File> MTP_FilePtr;
82 
87 typedef LIBMTP_folder_t MTPIntern_Folder;
88 
93 typedef std::shared_ptr<MTP_Folder> MTP_FolderPtr;
94 
99 typedef LIBMTP_raw_device_t MTPIntern_RawDevice;
100 
105 typedef std::shared_ptr<MTP_RawDevice> MTP_RawDevicePtr;
106 
111 typedef LIBMTP_devicestorage_t MTPIntern_Storage;
112 
117 typedef std::shared_ptr<MTP_Storage> MTP_StoragePtr;
118 
123 typedef LIBMTP_track_t MTPIntern_Track;
124 
129 typedef std::shared_ptr<MTP_Track> MTP_TrackPtr;
130 
131 
132 #endif // MTP_TYPEDEFS_H
LIBMTP_error_t MTPIntern_Error
MTPIntern_Error.
Definition: MTP_Typedefs.h:57
LIBMTP_device_entry_t MTPIntern_DeviceEntry
MTPIntern_DeviceEntry.
Definition: MTP_Typedefs.h:39
The MTP_File class.
Definition: MTP_File.h:32
The MTP_Device class.
Definition: MTP_Device.h:32
std::shared_ptr< MTP_Folder > MTP_FolderPtr
MTP_FolderPtr.
Definition: MTP_Typedefs.h:93
The MTP_Track class.
Definition: MTP_Track.h:34
The MTP_Folder struct.
Definition: MTP_Folder.h:32
std::shared_ptr< MTP_Storage > MTP_StoragePtr
MTP_StoragePtr.
Definition: MTP_Typedefs.h:117
std::shared_ptr< MTP_RawDevice > MTP_RawDevicePtr
MTP_RawDevicePtr.
Definition: MTP_Typedefs.h:105
std::shared_ptr< MTP_Track > MTP_TrackPtr
MTP_TrackPtr.
Definition: MTP_Typedefs.h:129
LIBMTP_raw_device_t MTPIntern_RawDevice
MTPIntern_RawDevice.
Definition: MTP_Typedefs.h:99
LIBMTP_error_number_t MTPIntern_ErrorNumber
MTPIntern_ErrorNumber.
Definition: MTP_Typedefs.h:51
The MTP_Storage class.
Definition: MTP_Storage.h:33
std::shared_ptr< MTP_File > MTP_FilePtr
MTP_FilePtr.
Definition: MTP_Typedefs.h:81
LIBMTP_track_t MTPIntern_Track
MTPIntern_Track.
Definition: MTP_Typedefs.h:123
std::shared_ptr< MTP_Device > MTP_DevicePtr
MTP_DevicePtr.
Definition: MTP_Typedefs.h:69
LIBMTP_file_t MTPIntern_File
MTPIntern_File.
Definition: MTP_Typedefs.h:75
LIBMTP_mtpdevice_t MTPIntern_Device
MTPIntern_Device.
Definition: MTP_Typedefs.h:63
LIBMTP_folder_t MTPIntern_Folder
MTPIntern_Folder.
Definition: MTP_Typedefs.h:87
The MTP_RawDevice class.
Definition: MTP_RawDevice.h:33
LIBMTP_devicestorage_t MTPIntern_Storage
MTPIntern_Storage.
Definition: MTP_Typedefs.h:111