digiKam
Digikam::CameraController Class Reference
+ Inheritance diagram for Digikam::CameraController:

Public Slots

void slotCancel ()
 
void slotConnect ()
 

Signals

void signalBusy (bool val)
 
void signalCameraInformation (const QString &summary, const QString &manual, const QString &about)
 
void signalConnected (bool val)
 
void signalDeleted (const QString &folder, const QString &file, bool status)
 
void signalDownloadComplete (const QString &sourceFolder, const QString &sourceFile, const QString &destFolder, const QString &destFile)
 
void signalDownloaded (const QString &folder, const QString &file, int status)
 
void signalFileList (const CamItemInfoList &infoList)
 
void signalFolderList (const QStringList &folderList)
 
void signalFreeSpace (unsigned long kBSize, unsigned long kBAvail)
 
void signalInternalCheckRename (const QString &folder, const QString &file, const QString &destination, const QString &temp, const QString &script)
 
void signalInternalDeleteFailed (const QString &folder, const QString &file)
 
void signalInternalDownloadFailed (const QString &folder, const QString &file)
 
void signalInternalLockFailed (const QString &folder, const QString &file)
 
void signalInternalUploadFailed (const QString &folder, const QString &file, const QString &src)
 
void signalLocked (const QString &folder, const QString &file, bool status)
 
void signalLogMsg (const QString &msg, DHistoryView::EntryType type, const QString &folder, const QString &file)
 
void signalMetadata (const QString &folder, const QString &file, const MetaEngineData &exifData)
 
void signalPreview (const QImage &preview)
 
void signalSkipped (const QString &folder, const QString &file)
 
void signalThumbInfo (const QString &folder, const QString &file, const CamItemInfo &itemInfo, const QImage &thumb)
 
void signalThumbInfoFailed (const QString &folder, const QString &file, const CamItemInfo &itemInfo)
 
void signalUploaded (const CamItemInfo &itemInfo)
 

Public Member Functions

bool cameraCaptureImagePreviewSupport () const
 
bool cameraCaptureImageSupport () const
 
 CameraController (QWidget *const parent, const QString &title, const QString &model, const QString &port, const QString &path)
 
bool cameraDelDirSupport () const
 
bool cameraDeleteSupport () const
 
DKCamera::CameraDriverType cameraDriverType () const
 
QByteArray cameraMD5ID () const
 
bool cameraMkDirSupport () const
 
QString cameraPath () const
 
bool cameraThumbnailSupport () const
 
QString cameraTitle () const
 
bool cameraUploadSupport () const
 
void capture ()
 
void deleteFile (const QString &folder, const QString &file)
 
void download (const DownloadSettings &downloadSettings)
 
void download (const DownloadSettingsList &list)
 
void downloadPrep (const SetupCamera::ConflictRule &rule)
 
void getCameraInformation ()
 
void getFreeSpace ()
 
void getMetadata (const QString &folder, const QString &file)
 
void getPreview ()
 
CameraCommand * getThumbsInfo (const CamItemInfoList &infoList, int thumbSize)
 
void listFiles (const QString &folder, bool useMetadata)
 
void listFolders (const QString &folder=QString())
 
void listRootFolder (bool useMetadata)
 
void lockFile (const QString &folder, const QString &file, bool lock)
 
QIcon mimeTypeThumbnail (const QString &itemName) const
 
void moveThumbsInfo (CameraCommand *const cmd)
 
void openFile (const QString &folder, const QString &file)
 
void upload (const QFileInfo &srcFileInfo, const QString &destFile, const QString &destFolder)
 
 ~CameraController () override
 

Protected Member Functions

void executeCommand (CameraCommand *const cmd)
 
void run () override
 

Constructor & Destructor Documentation

◆ CameraController()

Digikam::CameraController::CameraController ( QWidget *const  parent,
const QString &  title,
const QString &  model,
const QString &  port,
const QString &  path 
)
explicit

◆ ~CameraController()

Digikam::CameraController::~CameraController ( )
override

References slotCancel().

Member Function Documentation

◆ cameraCaptureImagePreviewSupport()

bool Digikam::CameraController::cameraCaptureImagePreviewSupport ( ) const

◆ cameraCaptureImageSupport()

bool Digikam::CameraController::cameraCaptureImageSupport ( ) const

◆ cameraDelDirSupport()

bool Digikam::CameraController::cameraDelDirSupport ( ) const

◆ cameraDeleteSupport()

bool Digikam::CameraController::cameraDeleteSupport ( ) const

◆ cameraDriverType()

DKCamera::CameraDriverType Digikam::CameraController::cameraDriverType ( ) const

◆ cameraMD5ID()

QByteArray Digikam::CameraController::cameraMD5ID ( ) const

◆ cameraMkDirSupport()

bool Digikam::CameraController::cameraMkDirSupport ( ) const

◆ cameraPath()

QString Digikam::CameraController::cameraPath ( ) const

◆ cameraThumbnailSupport()

bool Digikam::CameraController::cameraThumbnailSupport ( ) const

◆ cameraTitle()

QString Digikam::CameraController::cameraTitle ( ) const

◆ cameraUploadSupport()

bool Digikam::CameraController::cameraUploadSupport ( ) const

◆ capture()

void Digikam::CameraController::capture ( )

◆ deleteFile()

void Digikam::CameraController::deleteFile ( const QString &  folder,
const QString &  file 
)

◆ download() [1/2]

◆ download() [2/2]

void Digikam::CameraController::download ( const DownloadSettingsList list)

References download().

◆ downloadPrep()

void Digikam::CameraController::downloadPrep ( const SetupCamera::ConflictRule rule)

◆ executeCommand()

◆ getCameraInformation()

void Digikam::CameraController::getCameraInformation ( )

◆ getFreeSpace()

void Digikam::CameraController::getFreeSpace ( )

◆ getMetadata()

void Digikam::CameraController::getMetadata ( const QString &  folder,
const QString &  file 
)

◆ getPreview()

void Digikam::CameraController::getPreview ( )

◆ getThumbsInfo()

CameraCommand * Digikam::CameraController::getThumbsInfo ( const CamItemInfoList infoList,
int  thumbSize 
)

Get thumbnails for a list of camera items plus advanced information from metadata.

References Digikam::CamItemInfo::folder, and Digikam::CamItemInfo::name.

◆ listFiles()

void Digikam::CameraController::listFiles ( const QString &  folder,
bool  useMetadata 
)

Referenced by listRootFolder().

◆ listFolders()

void Digikam::CameraController::listFolders ( const QString &  folder = QString())

Referenced by listRootFolder().

◆ listRootFolder()

void Digikam::CameraController::listRootFolder ( bool  useMetadata)

References listFiles(), and listFolders().

◆ lockFile()

void Digikam::CameraController::lockFile ( const QString &  folder,
const QString &  file,
bool  lock 
)

◆ mimeTypeThumbnail()

QIcon Digikam::CameraController::mimeTypeThumbnail ( const QString &  itemName) const

◆ moveThumbsInfo()

void Digikam::CameraController::moveThumbsInfo ( CameraCommand *const  cmd)

◆ openFile()

void Digikam::CameraController::openFile ( const QString &  folder,
const QString &  file 
)

◆ run()

void Digikam::CameraController::run ( )
overrideprotected

References executeCommand(), and signalBusy().

◆ signalBusy

void Digikam::CameraController::signalBusy ( bool  val)
signal

Referenced by run().

◆ signalCameraInformation

void Digikam::CameraController::signalCameraInformation ( const QString &  summary,
const QString &  manual,
const QString &  about 
)
signal

Referenced by executeCommand().

◆ signalConnected

void Digikam::CameraController::signalConnected ( bool  val)
signal

Referenced by executeCommand().

◆ signalDeleted

void Digikam::CameraController::signalDeleted ( const QString &  folder,
const QString &  file,
bool  status 
)
signal

Referenced by executeCommand().

◆ signalDownloadComplete

void Digikam::CameraController::signalDownloadComplete ( const QString &  sourceFolder,
const QString &  sourceFile,
const QString &  destFolder,
const QString &  destFile 
)
signal

◆ signalDownloaded

void Digikam::CameraController::signalDownloaded ( const QString &  folder,
const QString &  file,
int  status 
)
signal

Referenced by executeCommand().

◆ signalFileList

void Digikam::CameraController::signalFileList ( const CamItemInfoList infoList)
signal

Referenced by executeCommand().

◆ signalFolderList

void Digikam::CameraController::signalFolderList ( const QStringList &  folderList)
signal

Referenced by CameraController().

◆ signalFreeSpace

void Digikam::CameraController::signalFreeSpace ( unsigned long  kBSize,
unsigned long  kBAvail 
)
signal

Referenced by executeCommand().

◆ signalInternalCheckRename

void Digikam::CameraController::signalInternalCheckRename ( const QString &  folder,
const QString &  file,
const QString &  destination,
const QString &  temp,
const QString &  script 
)
signal

Referenced by CameraController(), and executeCommand().

◆ signalInternalDeleteFailed

void Digikam::CameraController::signalInternalDeleteFailed ( const QString &  folder,
const QString &  file 
)
signal

Referenced by CameraController(), and executeCommand().

◆ signalInternalDownloadFailed

void Digikam::CameraController::signalInternalDownloadFailed ( const QString &  folder,
const QString &  file 
)
signal

Referenced by CameraController().

◆ signalInternalLockFailed

void Digikam::CameraController::signalInternalLockFailed ( const QString &  folder,
const QString &  file 
)
signal

Referenced by CameraController(), and executeCommand().

◆ signalInternalUploadFailed

void Digikam::CameraController::signalInternalUploadFailed ( const QString &  folder,
const QString &  file,
const QString &  src 
)
signal

Referenced by CameraController(), and executeCommand().

◆ signalLocked

void Digikam::CameraController::signalLocked ( const QString &  folder,
const QString &  file,
bool  status 
)
signal

Referenced by executeCommand().

◆ signalLogMsg

void Digikam::CameraController::signalLogMsg ( const QString &  msg,
DHistoryView::EntryType  type,
const QString &  folder,
const QString &  file 
)
signal

◆ signalMetadata

void Digikam::CameraController::signalMetadata ( const QString &  folder,
const QString &  file,
const MetaEngineData exifData 
)
signal

Referenced by executeCommand().

◆ signalPreview

void Digikam::CameraController::signalPreview ( const QImage &  preview)
signal

Referenced by executeCommand().

◆ signalSkipped

void Digikam::CameraController::signalSkipped ( const QString &  folder,
const QString &  file 
)
signal

◆ signalThumbInfo

void Digikam::CameraController::signalThumbInfo ( const QString &  folder,
const QString &  file,
const CamItemInfo itemInfo,
const QImage &  thumb 
)
signal

Referenced by executeCommand().

◆ signalThumbInfoFailed

void Digikam::CameraController::signalThumbInfoFailed ( const QString &  folder,
const QString &  file,
const CamItemInfo itemInfo 
)
signal

Referenced by executeCommand().

◆ signalUploaded

void Digikam::CameraController::signalUploaded ( const CamItemInfo itemInfo)
signal

Referenced by executeCommand().

◆ slotCancel

void Digikam::CameraController::slotCancel ( )
slot

Referenced by ~CameraController().

◆ slotConnect

void Digikam::CameraController::slotConnect ( )
slot

◆ upload()

void Digikam::CameraController::upload ( const QFileInfo &  srcFileInfo,
const QString &  destFile,
const QString &  destFolder 
)

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