~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to messageviewer/contactphotomemento.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef CONTACTPHOTOMEMENTO_H
20
20
#define CONTACTPHOTOMEMENTO_H
21
21
 
22
 
#include "interfaces/bodypart.h"
 
22
#include "contactabstractmemento.h"
23
23
 
24
24
#include "viewer.h"
25
25
 
26
26
#include <KABC/Picture>
27
27
 
28
 
#include <KUrl>
29
 
 
30
28
#include <QObject>
31
29
 
32
 
class KJob;
33
 
 
34
30
namespace Akonadi {
35
31
  class ContactSearchJob;
36
32
}
37
33
 
38
34
namespace MessageViewer {
39
35
 
40
 
class ContactPhotoMemento : public QObject, public Interface::BodyPartMemento
 
36
class ContactPhotoMemento : public ContactAbstractMemento
41
37
{
42
38
  Q_OBJECT
43
39
  public:
44
 
    ContactPhotoMemento( const QString &emailAddress );
45
 
 
46
 
    bool finished() const;
 
40
    explicit ContactPhotoMemento( const QString &emailAddress );
 
41
 
 
42
    void processAddress( const KABC::Addressee& addressee );
 
43
 
47
44
    KABC::Picture photo() const;
48
45
 
49
 
    virtual void detach();
50
 
 
51
 
  signals:
52
 
    // TODO: Factor our update and detach into base class
53
 
    void update( MessageViewer::Viewer::UpdateMode );
54
 
 
55
 
  private slots:
56
 
    void slotSearchJobFinished( KJob *job );
57
 
 
58
46
  private:
59
 
    bool mFinished;
60
47
    KABC::Picture mPhoto;
61
48
};
62
49