The original action (in the "Folder" menu bar menu) remains present, it opens the "Folder Properties" dialogue at the appropriate tab. This requires commit ea9a9a132e09d2ac1bd359bcccf68cdde3b3c566 to kdepimlibs. CCBUG:115611 REVIEW:107341wilder-work
parent
93d324e0cd
commit
d503db4cbb
6 changed files with 225 additions and 225 deletions
@ -0,0 +1,91 @@ |
||||
/* -*- mode: C++; c-file-style: "gnu" -*-
|
||||
This file is part of KMail, the KDE mail client. |
||||
Copyright (c) 2005 Till Adam <adam@kde.org> |
||||
Copyright (c) 2011 Montel Laurent <montel@kde.org> |
||||
Copyright (c) 2012 Jonathan Marten <jjm@keelhaul.me.uk> |
||||
|
||||
KMail is free software; you can redistribute it and/or modify it |
||||
under the terms of the GNU General Public License, version 2, as |
||||
published by the Free Software Foundation. |
||||
|
||||
KMail is distributed in the hope that it will be useful, but |
||||
WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License along |
||||
with this program; if not, write to the Free Software Foundation, Inc., |
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#ifndef COLLECTIONMAILINGLISTPAGE_H |
||||
#define COLLECTIONMAILINGLISTPAGE_H |
||||
|
||||
#include "messagecore/mailinglist.h" |
||||
#include "foldercollection.h" |
||||
|
||||
#include <akonadi/collectionpropertiespage.h> |
||||
#include <akonadi/collection.h> |
||||
|
||||
|
||||
class QCheckBox; |
||||
class QLabel; |
||||
class QPushButton; |
||||
|
||||
template <typename T> class QSharedPointer; |
||||
|
||||
class KComboBox; |
||||
class KJob; |
||||
class KEditListWidget; |
||||
class KSqueezedTextLabel; |
||||
|
||||
|
||||
class CollectionMailingListPage : public Akonadi::CollectionPropertiesPage |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
explicit CollectionMailingListPage( QWidget *parent = 0 ); |
||||
~CollectionMailingListPage(); |
||||
|
||||
void load( const Akonadi::Collection & col ); |
||||
void save( Akonadi::Collection & col ); |
||||
|
||||
bool canHandle( const Akonadi::Collection & col ) const; |
||||
|
||||
protected: |
||||
void init(const Akonadi::Collection&); |
||||
|
||||
protected slots: |
||||
void slotFetchDone( KJob* job ); |
||||
|
||||
private slots: |
||||
/*
|
||||
* Detects mailing-list related stuff |
||||
*/ |
||||
void slotDetectMailingList(); |
||||
void slotInvokeHandler(); |
||||
void slotMLHandling( int element ); |
||||
void slotHoldsML( bool holdsML ); |
||||
void slotAddressChanged( int addr ); |
||||
|
||||
private: |
||||
void fillMLFromWidgets(); |
||||
void fillEditBox(); |
||||
|
||||
Akonadi::Collection mCurrentCollection; |
||||
QSharedPointer<MailCommon::FolderCollection> mFolder; |
||||
|
||||
int mLastItem; |
||||
MailingList mMailingList; |
||||
QCheckBox *mHoldsMailingList; |
||||
KComboBox *mMLHandlerCombo; |
||||
QPushButton *mDetectButton; |
||||
KComboBox *mAddressCombo; |
||||
KEditListWidget *mEditList; |
||||
KSqueezedTextLabel *mMLId; |
||||
QWidget *mGroupWidget; |
||||
}; |
||||
|
||||
AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionMailingListPageFactory, CollectionMailingListPage ) |
||||
|
||||
#endif /* COLLECTIONMAILINGLISTPAGE_H */ |
||||
@ -1,86 +0,0 @@ |
||||
/*******************************************************************************
|
||||
** |
||||
** Filename : mailinglistpropertiesdialog.h |
||||
** Created on : 30 January, 2005 |
||||
** Copyright : (c) 2005 Till Adam |
||||
** Email : adam@kde.org |
||||
** |
||||
*******************************************************************************/ |
||||
|
||||
/*******************************************************************************
|
||||
** |
||||
** This program is free software; you can redistribute it and/or modify |
||||
** it under the terms of the GNU General Public License as published by |
||||
** the Free Software Foundation; either version 2 of the License, or |
||||
** (at your option) any later version. |
||||
** |
||||
** In addition, as a special exception, the copyright holders give |
||||
** permission to link the code of this program with any edition of |
||||
** the Qt library by Trolltech AS, Norway (or with modified versions |
||||
** of Qt that use the same license as Qt), and distribute linked |
||||
** combinations including the two. You must obey the GNU General |
||||
** Public License in all respects for all of the code used other than |
||||
** Qt. If you modify this file, you may extend this exception to |
||||
** your version of the file, but you are not obligated to do so. If |
||||
** you do not wish to do so, delete this exception statement from |
||||
** your version. |
||||
*******************************************************************************/ |
||||
|
||||
#ifndef MAILINGLISTPROPERTIESDIALOG_H |
||||
#define MAILINGLISTPROPERTIESDIALOG_H |
||||
|
||||
#include "messagecore/mailinglist.h" |
||||
#include <kdialog.h> |
||||
#include "foldercollection.h" |
||||
class QCheckBox; |
||||
class QPushButton; |
||||
class QLabel; |
||||
class KComboBox; |
||||
class KEditListWidget; |
||||
|
||||
namespace KMail |
||||
{ |
||||
|
||||
class MailingListFolderPropertiesDialog : public KDialog |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
explicit MailingListFolderPropertiesDialog( QWidget *parent, const QSharedPointer<MailCommon::FolderCollection>& folder ); |
||||
~MailingListFolderPropertiesDialog(); |
||||
|
||||
protected: |
||||
void load(); |
||||
void save(); |
||||
|
||||
protected slots: |
||||
void slotOk(); |
||||
void slotFetchDone( KJob* job ); |
||||
|
||||
private slots: |
||||
/*
|
||||
* Detects mailing-list related stuff |
||||
*/ |
||||
void slotDetectMailingList(); |
||||
void slotInvokeHandler(); |
||||
void slotMLHandling( int element ); |
||||
void slotHoldsML( bool holdsML ); |
||||
void slotAddressChanged( int addr ); |
||||
|
||||
private: |
||||
QSharedPointer<MailCommon::FolderCollection> mFolder; |
||||
void fillMLFromWidgets(); |
||||
void fillEditBox(); |
||||
|
||||
int mLastItem; |
||||
MailingList mMailingList; |
||||
QCheckBox *mHoldsMailingList; |
||||
KComboBox *mMLHandlerCombo; |
||||
QPushButton *mDetectButton; |
||||
KComboBox *mAddressCombo; |
||||
KEditListWidget *mEditList; |
||||
QLabel *mMLId; |
||||
}; // End of class MailingListFolderProperties
|
||||
|
||||
} // End of namespace KMail
|
||||
|
||||
#endif // MAILINGLISTPROPERTIESDIALOG_H
|
||||
Loading…
Reference in new issue