• 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
  • gravatar
  • job
gravatarupdatejob.h
Go to the documentation of this file.
1 /*
2  This file is part of KAddressBook.
3 
4  Copyright (c) 2015 Laurent Montel <montel@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU 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 
22 #ifndef GRAVATARUPDATEJOB_H
23 #define GRAVATARUPDATEJOB_H
24 
25 #include <QObject>
26 #include <Akonadi/Item>
27 namespace PimCommon {
28 class GravatarResolvUrlJob;
29 }
30 namespace KABGravatar {
31 class GravatarUpdateJob : public QObject
32 {
33  Q_OBJECT
34 public:
35  explicit GravatarUpdateJob(QObject *parent = 0);
36  ~GravatarUpdateJob();
37 
38  void start();
39  bool canStart() const;
40 
41  QString email() const;
42  void setEmail(const QString &email);
43 
44  Akonadi::Item item() const;
45  void setItem(const Akonadi::Item &item);
46 
47 Q_SIGNALS:
48  void resolvedUrl(const KUrl &url);
49  void gravatarPixmap(const QPixmap &pix);
50 
51 private Q_SLOTS:
52  void slotGravatarResolvUrlFinished(PimCommon::GravatarResolvUrlJob *job);
53 
54  void slotUpdateGravatarDone(KJob *job);
55 private:
56  void updatePixmap(const QPixmap &pix);
57  QString mEmail;
58  Akonadi::Item mItem;
59 };
60 }
61 
62 #endif // GRAVATARUPDATEJOB_H
KABGravatar::GravatarUpdateJob
Definition: gravatarupdatejob.h:31
KABGravatar::GravatarUpdateJob::resolvedUrl
void resolvedUrl(const KUrl &url)
KABGravatar::GravatarUpdateJob::email
QString email() const
Definition: gravatarupdatejob.cpp:66
KABGravatar::GravatarUpdateJob::setItem
void setItem(const Akonadi::Item &item)
Definition: gravatarupdatejob.cpp:81
KABGravatar::GravatarUpdateJob::canStart
bool canStart() const
Definition: gravatarupdatejob.cpp:61
KABGravatar::GravatarUpdateJob::~GravatarUpdateJob
~GravatarUpdateJob()
Definition: gravatarupdatejob.cpp:38
KABGravatar::GravatarUpdateJob::start
void start()
Definition: gravatarupdatejob.cpp:43
KABGravatar::GravatarUpdateJob::item
Akonadi::Item item() const
Definition: gravatarupdatejob.cpp:76
QObject
KABGravatar::GravatarUpdateJob::gravatarPixmap
void gravatarPixmap(const QPixmap &pix)
QString
QPixmap
KABGravatar::GravatarUpdateJob::GravatarUpdateJob
GravatarUpdateJob(QObject *parent=0)
Definition: gravatarupdatejob.cpp:32
KABGravatar::GravatarUpdateJob::setEmail
void setEmail(const QString &email)
Definition: gravatarupdatejob.cpp:71
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