digiKam
DigikamGenericSendByMailPlugin::MailSettings Class Reference

Public Types

enum  ImageFormat { JPEG = 0 , PNG }
 
enum  MailClient {
  BALSA = 0 , CLAWSMAIL , EVOLUTION , KMAIL ,
  NETSCAPE , OUTLOOK , SYLPHEED , THUNDERBIRD
}
 
enum  Selection { IMAGES = 0 , ALBUMS }
 

Public Member Functions

qint64 attachementLimit () const
 
QString format () const
 
 MailSettings ()
 
QUrl mailUrl (const QUrl &orgUrl) const
 
void readSettings (KConfigGroup &group)
 
void setMailUrl (const QUrl &orgUrl, const QUrl &emailUrl)
 
void writeSettings (KConfigGroup &group)
 
 ~MailSettings ()
 

Static Public Member Functions

static QMap< ImageFormat, QString > imageFormatNames ()
 
static QMap< MailClient, QString > mailClientNames ()
 

Public Attributes

bool addFileProperties
 
qint64 attLimitInMbytes
 
QMap< MailClient, QString > binPaths
 Map of paths for all mail clients. More...
 
int imageCompression
 
ImageFormat imageFormat
 
bool imagesChangeProp
 
int imageSize
 
QList< QUrl > inputImages
 Selected items to send. More...
 
QMap< QUrl, QUrl > itemsList
 Map of original item and attached item (can be resized). More...
 
MailClient mailProgram
 
bool removeMetadata
 
Selection selMode
 Items selection mode. More...
 
QString tempPath
 

Member Enumeration Documentation

◆ ImageFormat

◆ MailClient

Enumerator
BALSA 
CLAWSMAIL 
EVOLUTION 
KMAIL 
NETSCAPE 

Messenger (https://en.wikipedia.org/wiki/Netscape_Messenger_9)

OUTLOOK 
SYLPHEED 
THUNDERBIRD 

◆ Selection

Images selection mode

Enumerator
IMAGES 
ALBUMS 

Constructor & Destructor Documentation

◆ MailSettings()

DigikamGenericSendByMailPlugin::MailSettings::MailSettings ( )
explicit

◆ ~MailSettings()

DigikamGenericSendByMailPlugin::MailSettings::~MailSettings ( )

Member Function Documentation

◆ attachementLimit()

qint64 DigikamGenericSendByMailPlugin::MailSettings::attachementLimit ( ) const

Return the attachment limit in bytes

References attLimitInMbytes.

◆ format()

QString DigikamGenericSendByMailPlugin::MailSettings::format ( ) const

◆ imageFormatNames()

QMap< MailSettings::ImageFormat, QString > DigikamGenericSendByMailPlugin::MailSettings::imageFormatNames ( )
static

◆ mailClientNames()

QMap< MailSettings::MailClient, QString > DigikamGenericSendByMailPlugin::MailSettings::mailClientNames ( )
static

Helper methods to fill combobox from GUI.

References BALSA, CLAWSMAIL, EVOLUTION, KMAIL, NETSCAPE, OUTLOOK, SYLPHEED, and THUNDERBIRD.

Referenced by DigikamGenericSendByMailPlugin::MailSettingsPage::MailSettingsPage().

◆ mailUrl()

QUrl DigikamGenericSendByMailPlugin::MailSettings::mailUrl ( const QUrl &  orgUrl) const

References itemsList.

◆ readSettings()

void DigikamGenericSendByMailPlugin::MailSettings::readSettings ( KConfigGroup &  group)

Read and write settings in config file between sessions.

References addFileProperties, attLimitInMbytes, imageCompression, imageFormat, IMAGES, imagesChangeProp, imageSize, JPEG, mailProgram, removeMetadata, selMode, and THUNDERBIRD.

◆ setMailUrl()

void DigikamGenericSendByMailPlugin::MailSettings::setMailUrl ( const QUrl &  orgUrl,
const QUrl &  emailUrl 
)

References itemsList.

◆ writeSettings()

void DigikamGenericSendByMailPlugin::MailSettings::writeSettings ( KConfigGroup &  group)

Member Data Documentation

◆ addFileProperties

bool DigikamGenericSendByMailPlugin::MailSettings::addFileProperties

Referenced by readSettings(), and writeSettings().

◆ attLimitInMbytes

qint64 DigikamGenericSendByMailPlugin::MailSettings::attLimitInMbytes

◆ binPaths

QMap<MailClient, QString> DigikamGenericSendByMailPlugin::MailSettings::binPaths

Map of paths for all mail clients.

◆ imageCompression

int DigikamGenericSendByMailPlugin::MailSettings::imageCompression

Referenced by readSettings(), and writeSettings().

◆ imageFormat

ImageFormat DigikamGenericSendByMailPlugin::MailSettings::imageFormat

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

◆ imagesChangeProp

bool DigikamGenericSendByMailPlugin::MailSettings::imagesChangeProp

Referenced by readSettings(), and writeSettings().

◆ imageSize

int DigikamGenericSendByMailPlugin::MailSettings::imageSize

Referenced by readSettings(), and writeSettings().

◆ inputImages

QList<QUrl> DigikamGenericSendByMailPlugin::MailSettings::inputImages

Selected items to send.

◆ itemsList

QMap<QUrl, QUrl> DigikamGenericSendByMailPlugin::MailSettings::itemsList

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

Referenced by mailUrl(), DigikamGenericSendByMailPlugin::ImageResizeThread::resize(), and setMailUrl().

◆ mailProgram

MailClient DigikamGenericSendByMailPlugin::MailSettings::mailProgram

Referenced by readSettings(), and writeSettings().

◆ removeMetadata

bool DigikamGenericSendByMailPlugin::MailSettings::removeMetadata

Referenced by readSettings(), and writeSettings().

◆ selMode

Selection DigikamGenericSendByMailPlugin::MailSettings::selMode

Items selection mode.

Referenced by readSettings(), and writeSettings().

◆ tempPath

QString DigikamGenericSendByMailPlugin::MailSettings::tempPath

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