• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kmail

  • sources
  • kde-4.14
  • kdepim
  • kmail
  • collectionpage
collectionmailinglistpage.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2  This file is part of KMail, the KDE mail client.
3  Copyright (c) 2005 Till Adam <adam@kde.org>
4  Copyright (c) 2011-2015 Montel Laurent <montel@kde.org>
5  Copyright (c) 2012 Jonathan Marten <jjm@keelhaul.me.uk>
6 
7  KMail is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License, version 2, as
9  published by the Free Software Foundation.
10 
11  KMail is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef COLLECTIONMAILINGLISTPAGE_H
22 #define COLLECTIONMAILINGLISTPAGE_H
23 
24 #include "messagecore/misc/mailinglist.h"
25 #include "foldercollection.h"
26 
27 #include <akonadi/collectionpropertiespage.h>
28 #include <akonadi/collection.h>
29 
30 
31 class QCheckBox;
32 class QPushButton;
33 
34 template <typename T> class QSharedPointer;
35 
36 class KComboBox;
37 class KJob;
38 class KEditListWidget;
39 class KSqueezedTextLabel;
40 
41 
42 class CollectionMailingListPage : public Akonadi::CollectionPropertiesPage
43 {
44  Q_OBJECT
45 public:
46  explicit CollectionMailingListPage( QWidget *parent = 0 );
47  ~CollectionMailingListPage();
48 
49  void load( const Akonadi::Collection & col );
50  void save( Akonadi::Collection & col );
51 
52  bool canHandle( const Akonadi::Collection & col ) const;
53 
54 protected:
55  void init(const Akonadi::Collection&);
56 
57 protected slots:
58  void slotFetchDone( KJob* job );
59 
60 private slots:
61  /*
62  * Detects mailing-list related stuff
63  */
64  void slotDetectMailingList();
65  void slotInvokeHandler();
66  void slotMLHandling( int element );
67  void slotHoldsML( bool holdsML );
68  void slotAddressChanged( int addr );
69  void slotConfigChanged();
70 
71 private:
72  void fillMLFromWidgets();
73  void fillEditBox();
74 
75  Akonadi::Collection mCurrentCollection;
76  QSharedPointer<MailCommon::FolderCollection> mFolder;
77 
78  MailingList mMailingList;
79  QCheckBox *mHoldsMailingList;
80  KComboBox *mMLHandlerCombo;
81  QPushButton *mDetectButton;
82  KComboBox *mAddressCombo;
83  KEditListWidget *mEditList;
84  KSqueezedTextLabel *mMLId;
85  QWidget *mGroupWidget;
86  int mLastItem;
87  bool changed;
88 };
89 
90 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionMailingListPageFactory, CollectionMailingListPage )
91 
92 #endif /* COLLECTIONMAILINGLISTPAGE_H */
CollectionMailingListPage
Definition: collectionmailinglistpage.h:42
QWidget
CollectionMailingListPage::init
void init(const Akonadi::Collection &)
Definition: collectionmailinglistpage.cpp:74
CollectionMailingListPage::CollectionMailingListPage
CollectionMailingListPage(QWidget *parent=0)
Definition: collectionmailinglistpage.cpp:50
QSharedPointer
Definition: collectionmailinglistpage.h:34
QCheckBox
CollectionMailingListPage::canHandle
bool canHandle(const Akonadi::Collection &col) const
Definition: collectionmailinglistpage.cpp:66
CollectionMailingListPage::slotFetchDone
void slotFetchDone(KJob *job)
Definition: collectionmailinglistpage.cpp:217
KComboBox
QPushButton
CollectionMailingListPage::~CollectionMailingListPage
~CollectionMailingListPage()
Definition: collectionmailinglistpage.cpp:57
CollectionMailingListPage::save
void save(Akonadi::Collection &col)
Definition: collectionmailinglistpage.cpp:174
CollectionMailingListPage::load
void load(const Akonadi::Collection &col)
Definition: collectionmailinglistpage.cpp:157
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal