• Skip to content
  • Skip to link menu
KDE API Documentation - emails.h Source File (KPeople)
  • KDE Home
  • Contact Us
 

KPeople

  • frameworks
  • kpeople
  • src
  • widgets
  • plugins
emails.h
1 /*
2  Copyright 2014 Nilesh Suthar <nileshsuthar@live.in>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef EMAILS_H
20 #define EMAILS_H
21 
22 #include "abstractfieldwidgetfactory.h"
23 #include "plugins/emaillistmodel.h"
24 
25 class KJob;
26 class QModelIndex;
27 
28 namespace KContacts
29 {
30 class Addressee;
31 class Addressee::List;
32 }
33 using namespace KPeople;
34 
35 class Emails : public AbstractFieldWidgetFactory
36 {
37  Q_OBJECT
38 public:
39  explicit Emails(QObject *parent = 0);
40  virtual QString label() const;
41  virtual int sortWeight() const;
42  virtual QWidget *createDetailsWidget(const AbstractContact::Ptr &person, const AbstractContact::List &contacts, QWidget *parent) const;
43 
44 private Q_SLOTS:
45  void onEmailDoubleClicked(const QModelIndex &clicked);
46  void jobFinished(KJob *job);
47 
48 private:
49  QList<EmailItem> m_emailList;
50  EmailListModel *m_emailsModel;
51 
52 };
53 
54 #endif // EMAILS_H
KPeople
The KPeople namespace contains all the classes for Libkpeople.
KContacts
Definition: emails.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri Feb 13 2015 15:16:39 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KPeople

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

Class Picker

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