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

kaddressbook

  • sources
  • kde-4.14
  • kdepim
  • kaddressbook
  • sendmail
mailsenderjob.h
Go to the documentation of this file.
1 /*
2  This file is part of KAddressBook.
3 
4  Copyright (c) 2014-2015 Laurent Montel <montel@kde.org>
5  based on code from Copyright (c) 2014 ClĂ©ment Vannier <clement.vannier@free.fr>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License along
18  with this program; if not, write to the Free Software Foundation, Inc.,
19  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef MAILSENDERJOB_H
23 #define MAILSENDERJOB_H
24 
25 #include <Akonadi/Item>
26 #include <QObject>
27 #include <QStringList>
28 
29 class KJob;
30 namespace KABMailSender {
31 class MailSenderJob : public QObject
32 {
33  Q_OBJECT
34 
35 public:
36  explicit MailSenderJob(const Akonadi::Item::List &listItem, QObject* parent = 0);
37  ~MailSenderJob();
38 
39  void start();
40 
41 Q_SIGNALS:
42  void sendMails(const QStringList &emails);
43 
44 private Q_SLOTS:
45  void fetchJobFinished(KJob* job);
46 
47 private:
48  void finishJob();
49  void fetchItem(const Akonadi::Item &item);
50  void fetchNextItem();
51  Akonadi::Item::List mListItem;
52  Akonadi::Item::List mItemToFetch;
53  QStringList mEmailAddresses;
54  int mFetchJobCount;
55 };
56 }
57 
58 #endif
KABMailSender::MailSenderJob::MailSenderJob
MailSenderJob(const Akonadi::Item::List &listItem, QObject *parent=0)
Definition: mailsenderjob.cpp:39
KABMailSender::MailSenderJob::start
void start()
Definition: mailsenderjob.cpp:51
QObject
QStringList
KABMailSender::MailSenderJob::~MailSenderJob
~MailSenderJob()
Definition: mailsenderjob.cpp:46
KABMailSender::MailSenderJob
Definition: mailsenderjob.h:31
KABMailSender::MailSenderJob::sendMails
void sendMails(const QStringList &emails)
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

Skip menu "kaddressbook"
  • 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