mailcommon
collectiongeneralpage.cpp
Go to the documentation of this file.
199 const bool sharedSeen = ( annotations.value( CollectionTypeUtil::kolabSharedSeen() ) == "true" );
203 collectionUtil.incidencesForFromString( QLatin1String(annotations.value( CollectionTypeUtil::kolabIncidencesFor() )) );
205 const CollectionTypeUtil::FolderContentsType folderType = collectionUtil.typeFromKolabName( annotations.value( CollectionTypeUtil::kolabFolderType() ) );
222 const bool folderTypeComboboxEnabled = ( folderType == CollectionTypeUtil::ContentsTypeCalendar || folderType == CollectionTypeUtil::ContentsTypeTask );
315 MailCommon::NewMailNotifierAttribute *newMailNotifierAttr = collection.attribute<MailCommon::NewMailNotifierAttribute>( Akonadi::Entity::AddIfMissing );
326 annotations[ CollectionTypeUtil::kolabSharedSeen() ] = mSharedSeenFlagsCheckBox->isChecked() ? "true" : "false";
333 static_cast<CollectionTypeUtil::IncidencesFor>( mIncidencesForComboBox->currentIndex() ) ).toLatin1();
MAILCOMMON_EXPORT bool ignoreNewMailInFolder(const Akonadi::Collection &collection)
Definition: mailutil.cpp:365
static QByteArray kolabFolderType()
Definition: collectiontypeutil.cpp:35
QString incidencesForToString(CollectionTypeUtil::IncidencesFor type)
Definition: collectiontypeutil.cpp:78
bool contains(const Key &key) const
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void setFrameShape(Shape)
bool isEmpty() const
CollectionTypeUtil::FolderContentsType typeFromKolabName(const QByteArray &name)
Definition: collectiontypeutil.cpp:107
static bool folderIsInbox(const Akonadi::Collection &, bool withoutPop3InboxSetting=false)
Definition: mailkernel.cpp:342
QString typeNameFromKolabType(const QByteArray &type)
Definition: collectiontypeutil.cpp:194
~CollectionGeneralPage()
Definition: collectiongeneralpage.cpp:66
void setSpacing(int spacing)
void setGeometry(int x, int y, int w, int h)
void load(const Akonadi::Collection &collection)
Definition: collectiongeneralpage.cpp:245
void setBuddy(QWidget *buddy)
void setCurrentItem(const QString &name)
Definition: contenttypewidget.cpp:72
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setCurrentIndex(int index)
Definition: incidencesforwidget.cpp:76
static QByteArray kolabIncidencesFor()
Definition: collectiontypeutil.cpp:40
virtual void addItem(QLayoutItem *item)
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
QByteArray kolabNameFromType(CollectionTypeUtil::FolderContentsType type)
Definition: collectiontypeutil.cpp:137
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
CollectionTypeUtil::IncidencesFor incidencesForFromString(const QString &string)
Definition: collectiontypeutil.cpp:92
void setMargin(int margin)
int currentIndex() const
Definition: incidencesforwidget.cpp:71
static QByteArray kolabSharedSeen()
Definition: collectiontypeutil.cpp:45
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void setFrameShadow(Shadow)
void setChecked(bool)
void setAnnotations(const QMap< QByteArray, QByteArray > &annotations)
Definition: collectionannotationsattribute.cpp:36
static QSharedPointer< FolderCollection > forCollection(const Akonadi::Collection &coll, bool writeConfig=true)
Definition: foldercollection.cpp:46
void setWhatsThis(const QString &)
QByteArray toLatin1() const
void save(Akonadi::Collection &collection)
Definition: collectiongeneralpage.cpp:287
void addStretch(int stretch)
void setColumnStretch(int column, int stretch)
QString currentText() const
Definition: contenttypewidget.cpp:77
void setText(const QString &text)
QString fromLatin1(const char *str, int size)
QString iconNameFromContentsType(CollectionTypeUtil::FolderContentsType type)
Definition: collectiontypeutil.cpp:224
void setIgnoreNewMail(bool b)
Definition: newmailnotifierattribute.cpp:79
FolderContentsType
Definition: collectiontypeutil.h:40
void init(const Akonadi::Collection &)
Definition: collectiongeneralpage.cpp:80
QMap< QByteArray, QByteArray > annotations() const
Definition: collectionannotationsattribute.cpp:42
void setCurrentIndex(int index)
Definition: contenttypewidget.cpp:67
void setSpacing(int spacing)
CollectionTypeUtil::FolderContentsType contentsTypeFromString(const QString &type)
Definition: collectiontypeutil.cpp:161
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.