Commit 76d66318 authored by Laurent Montel's avatar Laurent Montel 😁

Move to cpp

parent 31fa166c
......@@ -286,6 +286,11 @@ void FolderCollection::setShortcut(const QKeySequence &sc)
}
}
const QKeySequence &FolderCollection::shortcut() const
{
return mShortcut;
}
void FolderCollection::setUseDefaultIdentity(bool useDefaultIdentity)
{
if (mUseDefaultIdentity != useDefaultIdentity) {
......@@ -297,6 +302,11 @@ void FolderCollection::setUseDefaultIdentity(bool useDefaultIdentity)
}
}
bool FolderCollection::useDefaultIdentity() const
{
return mUseDefaultIdentity;
}
void FolderCollection::setIdentity(uint identity)
{
if (mIdentity != identity) {
......@@ -360,6 +370,11 @@ void FolderCollection::setMailingListEnabled(bool enabled)
}
}
bool FolderCollection::isMailingListEnabled() const
{
return mMailingListEnabled;
}
void FolderCollection::setMailingList(const MailingList &mlist)
{
if (mMailingList == mlist) {
......@@ -370,5 +385,30 @@ void FolderCollection::setMailingList(const MailingList &mlist)
writeConfig();
}
MessageCore::MailingList FolderCollection::mailingList() const
{
return mMailingList;
}
bool FolderCollection::putRepliesInSameFolder() const
{
return mPutRepliesInSameFolder;
}
void FolderCollection::setPutRepliesInSameFolder(bool b)
{
mPutRepliesInSameFolder = b;
}
bool FolderCollection::hideInSelectionDialog() const
{
return mHideInSelectionDialog;
}
void FolderCollection::setHideInSelectionDialog(bool hide)
{
mHideInSelectionDialog = hide;
}
}
......@@ -77,20 +77,14 @@ public:
Akonadi::CollectionStatistics statistics() const;
void setShortcut(const QKeySequence &);
const QKeySequence &shortcut() const
{
return mShortcut;
}
const QKeySequence &shortcut() const;
/**
* Get / set whether the default identity should be used instead of the
* identity specified by setIdentity().
*/
void setUseDefaultIdentity(bool useDefaultIdentity);
bool useDefaultIdentity() const
{
return mUseDefaultIdentity;
}
bool useDefaultIdentity() const;
void setIdentity(uint identity);
uint identity() const;
......@@ -99,42 +93,24 @@ public:
* Returns true if this folder is associated with a mailing-list.
*/
void setMailingListEnabled(bool enabled);
bool isMailingListEnabled() const
{
return mMailingListEnabled;
}
bool isMailingListEnabled() const;
void setMailingList(const MailingList &mlist);
MailingList mailingList() const
{
return mMailingList;
}
MailingList mailingList() const;
/**
* Returns true if the replies to mails from this folder should be
* put in the same folder.
*/
bool putRepliesInSameFolder() const
{
return mPutRepliesInSameFolder;
}
void setPutRepliesInSameFolder(bool b)
{
mPutRepliesInSameFolder = b;
}
bool putRepliesInSameFolder() const;
void setPutRepliesInSameFolder(bool b);
/**
* Returns true if this folder should be hidden from all folder selection dialogs
*/
bool hideInSelectionDialog() const
{
return mHideInSelectionDialog;
}
void setHideInSelectionDialog(bool hide)
{
mHideInSelectionDialog = hide;
}
bool hideInSelectionDialog() const;
void setHideInSelectionDialog(bool hide);
QString mailingListPostAddress() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment