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

Public Types

enum  CameraDriverType { GPhotoDriver = 0 , UMSDriver }
 

Signals

void signalFolderList (const QStringList &)
 

Public Member Functions

bool cameraAbout (QString &about) override
 
DKCamera::CameraDriverType cameraDriverType () override
 
bool cameraManual (QString &manual) override
 
QByteArray cameraMD5ID () override
 
bool cameraSummary (QString &summary) override
 
void cancel () override
 
bool capture (CamItemInfo &itemInfo) override
 
bool captureImagePreviewSupport () const
 
bool captureImageSupport () const
 
bool delDirSupport () const
 
bool deleteAllItems (const QString &folder)
 recursively delete all items More...
 
bool deleteItem (const QString &folder, const QString &itemName) override
 
bool deleteSupport () const
 
bool doConnect () override
 
bool downloadItem (const QString &folder, const QString &itemName, const QString &saveFile) override
 
bool getFolders (const QString &folder) override
 
bool getFreeSpace (unsigned long &kBSize, unsigned long &kBAvail) override
 
void getItemInfo (const QString &folder, const QString &itemName, CamItemInfo &info, bool useMetadata) override
 
bool getItemsInfoList (const QString &folder, bool useMetadata, CamItemInfoList &items) override
 If getImageDimensions is false, the camera shall set width and height to -1 if the values are not immediately available. More...
 
bool getItemsList (const QString &folder, QStringList &itemsList)
 
bool getMetadata (const QString &folder, const QString &itemName, DMetadata &meta) override
 
bool getPreview (QImage &preview) override
 
bool getThumbnail (const QString &folder, const QString &itemName, QImage &thumbnail) override
 
 GPCamera (const QString &title, const QString &model, const QString &port, const QString &path)
 
QString mimeType (const QString &fileext) const
 
bool mkDirSupport () const
 
QString model () const
 
QString path () const
 
QString port () const
 
void printSupportedFeatures ()
 
bool setLockItem (const QString &folder, const QString &itemName, bool lock) override
 
bool thumbnailSupport () const
 
QString title () const
 
bool uploadItem (const QString &folder, const QString &itemName, const QString &localFile, CamItemInfo &itemInfo) override
 
bool uploadSupport () const
 
QString uuid () const
 
 ~GPCamera () override
 

Static Public Member Functions

static int autoDetect (QString &model, QString &port)
 
static bool findConnectedUsbCamera (int vendorId, int productId, QString &model, QString &port)
 
static void getCameraSupportedPorts (const QString &model, QStringList &plist)
 
static void getSupportedCameras (int &count, QStringList &clist)
 
static void getSupportedPorts (QStringList &plist)
 

Protected Member Functions

void fillItemInfoFromMetadata (CamItemInfo &item, const DMetadata &meta) const
 

Protected Attributes

QString m_audioFilter
 
bool m_captureImagePreviewSupport
 
bool m_captureImageSupport
 
bool m_delDirSupport
 
bool m_deleteSupport
 
QString m_imageFilter
 
bool m_mkDirSupport
 
QString m_model
 
QString m_movieFilter
 
QString m_path
 
QString m_port
 
QString m_rawFilter
 
bool m_thumbnailSupport
 
QString m_title
 
bool m_uploadSupport
 
QString m_uuid
 

Detailed Description

Gphoto2 camera Implementation of abstract type DKCamera

Member Enumeration Documentation

◆ CameraDriverType

Enumerator
GPhotoDriver 
UMSDriver 

Constructor & Destructor Documentation

◆ GPCamera()

Digikam::GPCamera::GPCamera ( const QString &  title,
const QString &  model,
const QString &  port,
const QString &  path 
)
explicit

◆ ~GPCamera()

Digikam::GPCamera::~GPCamera ( )
override

Member Function Documentation

◆ autoDetect()

int Digikam::GPCamera::autoDetect ( QString &  model,
QString &  port 
)
static

◆ cameraAbout()

bool Digikam::GPCamera::cameraAbout ( QString &  about)
overridevirtual

Implements Digikam::DKCamera.

◆ cameraDriverType()

DKCamera::CameraDriverType Digikam::GPCamera::cameraDriverType ( )
overridevirtual

◆ cameraManual()

bool Digikam::GPCamera::cameraManual ( QString &  manual)
overridevirtual

Implements Digikam::DKCamera.

◆ cameraMD5ID()

QByteArray Digikam::GPCamera::cameraMD5ID ( )
overridevirtual

◆ cameraSummary()

◆ cancel()

void Digikam::GPCamera::cancel ( )
overridevirtual

Implements Digikam::DKCamera.

◆ capture()

◆ captureImagePreviewSupport()

bool Digikam::DKCamera::captureImagePreviewSupport ( ) const
inherited

◆ captureImageSupport()

bool Digikam::DKCamera::captureImageSupport ( ) const
inherited

◆ delDirSupport()

bool Digikam::DKCamera::delDirSupport ( ) const
inherited

◆ deleteAllItems()

bool Digikam::GPCamera::deleteAllItems ( const QString &  folder)

recursively delete all items

◆ deleteItem()

bool Digikam::GPCamera::deleteItem ( const QString &  folder,
const QString &  itemName 
)
overridevirtual

Implements Digikam::DKCamera.

◆ deleteSupport()

bool Digikam::DKCamera::deleteSupport ( ) const
inherited

◆ doConnect()

◆ downloadItem()

bool Digikam::GPCamera::downloadItem ( const QString &  folder,
const QString &  itemName,
const QString &  saveFile 
)
overridevirtual

◆ fillItemInfoFromMetadata()

◆ findConnectedUsbCamera()

bool Digikam::GPCamera::findConnectedUsbCamera ( int  vendorId,
int  productId,
QString &  model,
QString &  port 
)
static

◆ getCameraSupportedPorts()

void Digikam::GPCamera::getCameraSupportedPorts ( const QString &  model,
QStringList &  plist 
)
static

◆ getFolders()

bool Digikam::GPCamera::getFolders ( const QString &  folder)
overridevirtual

◆ getFreeSpace()

bool Digikam::GPCamera::getFreeSpace ( unsigned long &  kBSize,
unsigned long &  kBAvail 
)
overridevirtual

Implements Digikam::DKCamera.

◆ getItemInfo()

void Digikam::GPCamera::getItemInfo ( const QString &  folder,
const QString &  itemName,
CamItemInfo info,
bool  useMetadata 
)
overridevirtual

Implements Digikam::DKCamera.

◆ getItemsInfoList()

bool Digikam::GPCamera::getItemsInfoList ( const QString &  folder,
bool  useMetadata,
CamItemInfoList infoList 
)
overridevirtual

If getImageDimensions is false, the camera shall set width and height to -1 if the values are not immediately available.

Implements Digikam::DKCamera.

◆ getItemsList()

bool Digikam::GPCamera::getItemsList ( const QString &  folder,
QStringList &  itemsList 
)

◆ getMetadata()

bool Digikam::GPCamera::getMetadata ( const QString &  folder,
const QString &  itemName,
DMetadata meta 
)
overridevirtual

◆ getPreview()

bool Digikam::GPCamera::getPreview ( QImage &  preview)
overridevirtual

Implements Digikam::DKCamera.

◆ getSupportedCameras()

void Digikam::GPCamera::getSupportedCameras ( int &  count,
QStringList &  clist 
)
static

◆ getSupportedPorts()

void Digikam::GPCamera::getSupportedPorts ( QStringList &  plist)
static

◆ getThumbnail()

bool Digikam::GPCamera::getThumbnail ( const QString &  folder,
const QString &  itemName,
QImage &  thumbnail 
)
overridevirtual

Implements Digikam::DKCamera.

◆ mimeType()

◆ mkDirSupport()

bool Digikam::DKCamera::mkDirSupport ( ) const
inherited

◆ model()

◆ path()

◆ port()

QString Digikam::DKCamera::port ( ) const
inherited

◆ printSupportedFeatures()

◆ setLockItem()

bool Digikam::GPCamera::setLockItem ( const QString &  folder,
const QString &  itemName,
bool  lock 
)
overridevirtual

Implements Digikam::DKCamera.

◆ signalFolderList

void Digikam::DKCamera::signalFolderList ( const QStringList &  )
signalinherited

◆ thumbnailSupport()

bool Digikam::DKCamera::thumbnailSupport ( ) const
inherited

◆ title()

QString Digikam::DKCamera::title ( ) const
inherited

◆ uploadItem()

◆ uploadSupport()

bool Digikam::DKCamera::uploadSupport ( ) const
inherited

◆ uuid()

QString Digikam::DKCamera::uuid ( ) const
inherited

Member Data Documentation

◆ m_audioFilter

QString Digikam::DKCamera::m_audioFilter
protectedinherited

◆ m_captureImagePreviewSupport

bool Digikam::DKCamera::m_captureImagePreviewSupport
protectedinherited

◆ m_captureImageSupport

bool Digikam::DKCamera::m_captureImageSupport
protectedinherited

◆ m_delDirSupport

bool Digikam::DKCamera::m_delDirSupport
protectedinherited

◆ m_deleteSupport

bool Digikam::DKCamera::m_deleteSupport
protectedinherited

◆ m_imageFilter

QString Digikam::DKCamera::m_imageFilter
protectedinherited

◆ m_mkDirSupport

bool Digikam::DKCamera::m_mkDirSupport
protectedinherited

◆ m_model

QString Digikam::DKCamera::m_model
protectedinherited

◆ m_movieFilter

QString Digikam::DKCamera::m_movieFilter
protectedinherited

◆ m_path

QString Digikam::DKCamera::m_path
protectedinherited

◆ m_port

QString Digikam::DKCamera::m_port
protectedinherited

◆ m_rawFilter

QString Digikam::DKCamera::m_rawFilter
protectedinherited

◆ m_thumbnailSupport

bool Digikam::DKCamera::m_thumbnailSupport
protectedinherited

◆ m_title

QString Digikam::DKCamera::m_title
protectedinherited

◆ m_uploadSupport

bool Digikam::DKCamera::m_uploadSupport
protectedinherited

◆ m_uuid

QString Digikam::DKCamera::m_uuid
protectedinherited

Referenced by Digikam::DKCamera::uuid().


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