~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to messagecomposer/recipientspicker.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2010 Volker Krause <vkrause@kde.org>
 
3
    This file was part of KMail.
 
4
    Copyright (c) 2005 Cornelius Schumacher <schumacher@kde.org>
 
5
 
 
6
    This library is free software; you can redistribute it and/or
 
7
    modify it under the terms of the GNU Library General Public
 
8
    License as published by the Free Software Foundation; either
 
9
    version 2 of the License, or (at your option) any later version.
 
10
 
 
11
    This library 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 GNU
 
14
    Library General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU Library General Public License
 
17
    along with this library; see the file COPYING.LIB.  If not, write to
 
18
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
19
    Boston, MA 02110-1301, USA.
 
20
*/
 
21
#ifndef MESSAGECOMPOSER_RECIPIENTSPICKER_H
 
22
#define MESSAGECOMPOSER_RECIPIENTSPICKER_H
 
23
 
 
24
#include <messagecomposer/recipient.h>
 
25
 
 
26
#include <kabc/addressee.h>
 
27
#include <kdialog.h>
 
28
 
 
29
namespace Akonadi {
 
30
class EmailAddressSelectionWidget;
 
31
}
 
32
 
 
33
namespace KLDAP {
 
34
class LdapSearchDialog;
 
35
}
 
36
 
 
37
namespace MessageComposer {
 
38
 
 
39
// ### temporary export
 
40
class MESSAGECOMPOSER_EXPORT RecipientsPicker : public KDialog
 
41
{
 
42
  Q_OBJECT
 
43
 
 
44
  public:
 
45
    RecipientsPicker( QWidget *parent );
 
46
    ~RecipientsPicker();
 
47
 
 
48
    void setRecipients( const Recipient::List & );
 
49
 
 
50
    void setDefaultType( Recipient::Type );
 
51
 
 
52
  Q_SIGNALS:
 
53
    void pickedRecipient( const Recipient & );
 
54
 
 
55
  protected:
 
56
    void readConfig();
 
57
    void writeConfig();
 
58
 
 
59
    void pick( Recipient::Type );
 
60
 
 
61
    void keyPressEvent( QKeyEvent* );
 
62
 
 
63
  protected Q_SLOTS:
 
64
    void slotToClicked();
 
65
    void slotCcClicked();
 
66
    void slotBccClicked();
 
67
    void slotPicked();
 
68
    void slotSearchLDAP();
 
69
    void ldapSearchResult();
 
70
    void slotSelectionChanged();
 
71
 
 
72
  private:
 
73
    Akonadi::EmailAddressSelectionWidget *mView;
 
74
 
 
75
    QPushButton *mToButton;
 
76
    QPushButton *mCcButton;
 
77
    QPushButton *mBccButton;
 
78
 
 
79
    QPushButton *mSearchLDAPButton;
 
80
    KLDAP::LdapSearchDialog *mLdapSearchDialog;
 
81
 
 
82
    Recipient::Type mDefaultType;
 
83
};
 
84
 
 
85
}
 
86
 
 
87
#endif