Logo Search packages:      
Sourcecode: qlix version File versions  Download package

MtpDevice Class Reference

List of all members.


Detailed Description

wrapper class around libmtp's device module

Definition at line 45 of file MtpDevice.h.


Public Member Functions

void AddAlbum (MTP::Album *)
bool AddTrackToAlbum (MTP::Track *, MTP::Album *)
bool AddTrackToPlaylist (MTP::Track *, MTP::Playlist *)
MTP::AlbumAlbum (count_t idx) const
count_t AlbumCount () const
vector< MTP::Album * > Albums () const
float BatteryLevel () const
bool BatteryLevelSupport () const
LIBMTP_filesampledata_t * DefaultJPEGSample ()
bool Fetch (uint32_t, char const *const )
void FreeSpace (unsigned int, uint64_t *, uint64_t *)
AlbumMap GetAlbumMap () const
FileMap GetFileMap () const
FolderMap GetFolderMap () const
PlaylistMap GetPlaylistMap () const
TrackMap GetTrackMap () const
void Initialize ()
char const *const ModelName () const
 MtpDevice (LIBMTP_mtpdevice_t *in_)
char const *const Name () const
bool NewAlbum (MTP::Track *, int, MTP::Album **)
bool NewFolder (MTP::Folder *)
MTP::PlaylistPlaylist (count_t idx) const
count_t PlaylistCount () const
vector< MTP::Playlist * > Playlists () const
bool RemoveAlbum (MTP::Album *)
bool RemoveFile (MTP::File *)
bool RemoveFolder (MTP::Folder *)
bool RemoveTrack (MTP::Track *)
bool RemoveTrackFromAlbum (MTP::Track *, MTP::Album *)
bool RemoveTrackFromPlaylist (MTP::Track *, MTP::Playlist *)
MTP::FolderRootFolder (count_t idx) const
MTP::FolderRootFolder () const
char const *const SerialNumber () const
void SetProgressFunction (LIBMTP_progressfunc_t, const void *const )
MtpStorage * StorageDevice (unsigned int) const
unsigned int StorageDeviceCount () const
char const *const SyncPartner () const
bool TransferFile (const char *, MTP::File *)
bool TransferTrack (const char *, MTP::Track *)
bool UpdateAlbumArt (MTP::Album *, LIBMTP_filesampledata_t *)
bool UpdateSpaceInformation ()
char const *const Version () const
 ~MtpDevice ()

Private Member Functions

void createFileStructure ()
void createFolderStructure (MTP::Folder *, bool)
void createObjectStructure ()
void createTrackBasedStructures ()
void dbgPrintFolders (MTP::Folder *, count_t)
void dbgPrintSupportedFileTypes ()
MTP::GenericObject *const find (count_t in_id, MtpObjectType type) const
void processErrorStack ()
LIBMTP_mtpdevice_t * RawDevice () const
bool removeObject (count_t)

Private Attributes

AlbumMap _albumMap
vector< MTP::Album * > _albums
bool _batteryLevelSupport
count_t _currentBatteryLevel
LIBMTP_mtpdevice_t * _device
vector< string > _errorStack
FileMap _fileMap
FolderMap _folderMap
bool _initialized
count_t _maxBatteryLevel
char * _modelName
char * _name
GenericMap _objectMap
PlaylistMap _playlistMap
vector< MTP::Playlist * > _playlists
const void * _progressData
LIBMTP_progressfunc_t _progressFunc
vector< MTP::File * > _rootFiles
MTP::Folder_rootFolder
vector< MTP::Folder * > _rootFolders
char * _serialNumber
vector< MtpStorage * > _storageDeviceList
vector< string > _supportedFileTypes
char * _syncPartner
TrackMap _trackMap
vector< MTP::Track * > _tracks
char * _version

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index