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

Public Types

enum  ImageFormat { JPEG = 0 , PNG }
 
enum  Selection { EXPORT = 0 , IMPORT }
 Images selection mode. More...
 
enum  WebService {
  FLICKR = 0 , DROPBOX , IMGUR , FACEBOOK ,
  SMUGMUG , GDRIVE , GPHOTO
}
 

Public Member Functions

QStringList allUserNames (const QString &serviceName)
 Helper method to list all user accounts (of all web service) that user logged in before. More...
 
QString format () const
 
 WSSettings (QObject *const parent=nullptr)
 
 ~WSSettings () override
 
void readSettings (KConfigGroup &group)
 Read and write settings in config file between sessions. More...
 
void writeSettings (KConfigGroup &group)
 

Static Public Member Functions

static QMap< WebService, QString > webServiceNames ()
 Helper methods to fill settings from GUI. More...
 
static QMap< ImageFormat, QString > imageFormatNames ()
 

Public Attributes

bool addFileProperties
 
qint64 attLimitInMbytes
 
QString currentAlbumId
 Selected album to upload to. More...
 
int imageCompression
 
ImageFormat imageFormat
 
bool imagesChangeProp
 
int imageSize
 
QList< QUrl > inputImages
 Selected items to upload. More...
 
QMap< QUrl, QUrl > itemsList
 Map of original item and attached item (can be resized). More...
 
QSettings * oauthSettings
 
O0SettingsStore * oauthSettingsStore
 
bool removeMetadata
 
Selection selMode
 Items selection mode. More...
 
QString userName
 
WebService webService
 

Member Enumeration Documentation

◆ ImageFormat

Enumerator
JPEG 
PNG 

◆ Selection

Images selection mode.

Enumerator
EXPORT 
IMPORT 

◆ WebService

Enumerator
FLICKR 
DROPBOX 
IMGUR 
FACEBOOK 
SMUGMUG 
GDRIVE 
GPHOTO 

Constructor & Destructor Documentation

◆ WSSettings()

Digikam::WSSettings::WSSettings ( QObject *const  parent = nullptr)
explicit

◆ ~WSSettings()

Digikam::WSSettings::~WSSettings ( )
override

Member Function Documentation

◆ allUserNames()

QStringList Digikam::WSSettings::allUserNames ( const QString &  serviceName)

Helper method to list all user accounts (of all web service) that user logged in before.

References oauthSettings.

◆ format()

QString Digikam::WSSettings::format ( ) const

References imageFormat, and JPEG.

◆ imageFormatNames()

QMap< WSSettings::ImageFormat, QString > Digikam::WSSettings::imageFormatNames ( )
static

References JPEG, and PNG.

◆ readSettings()

void Digikam::WSSettings::readSettings ( KConfigGroup &  group)

◆ webServiceNames()

QMap< WSSettings::WebService, QString > Digikam::WSSettings::webServiceNames ( )
static

Helper methods to fill settings from GUI.

References DROPBOX, FACEBOOK, FLICKR, GDRIVE, GPHOTO, IMGUR, and SMUGMUG.

◆ writeSettings()

void Digikam::WSSettings::writeSettings ( KConfigGroup &  group)

Member Data Documentation

◆ addFileProperties

bool Digikam::WSSettings::addFileProperties

Referenced by readSettings(), and writeSettings().

◆ attLimitInMbytes

qint64 Digikam::WSSettings::attLimitInMbytes

Referenced by readSettings(), and writeSettings().

◆ currentAlbumId

QString Digikam::WSSettings::currentAlbumId

Selected album to upload to.

Referenced by readSettings(), and writeSettings().

◆ imageCompression

int Digikam::WSSettings::imageCompression

Referenced by readSettings(), and writeSettings().

◆ imageFormat

ImageFormat Digikam::WSSettings::imageFormat

Referenced by format(), readSettings(), and writeSettings().

◆ imagesChangeProp

bool Digikam::WSSettings::imagesChangeProp

Referenced by readSettings(), and writeSettings().

◆ imageSize

int Digikam::WSSettings::imageSize

Referenced by readSettings(), and writeSettings().

◆ inputImages

QList<QUrl> Digikam::WSSettings::inputImages

Selected items to upload.

◆ itemsList

QMap<QUrl, QUrl> Digikam::WSSettings::itemsList

Map of original item and attached item (can be resized).

◆ oauthSettings

QSettings* Digikam::WSSettings::oauthSettings

◆ oauthSettingsStore

O0SettingsStore* Digikam::WSSettings::oauthSettingsStore

Referenced by WSSettings(), and ~WSSettings().

◆ removeMetadata

bool Digikam::WSSettings::removeMetadata

Referenced by readSettings(), and writeSettings().

◆ selMode

Selection Digikam::WSSettings::selMode

Items selection mode.

Referenced by readSettings(), and writeSettings().

◆ userName

QString Digikam::WSSettings::userName

◆ webService

WebService Digikam::WSSettings::webService

Referenced by readSettings(), and writeSettings().


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