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

libkdepim

  • sources
  • kde-4.14
  • kdepim
  • libkdepim
  • addressline
  • recentaddress
recentaddresswidget.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2015 Montel Laurent <montel@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 
19 */
20 
21 #ifndef RECENTADDRESSWIDGET_H
22 #define RECENTADDRESSWIDGET_H
23 
24 #include <QWidget>
25 #include <kabc/addressee.h>
26 #include <QStringList>
27 class KConfig;
28 class KPushButton;
29 class QListWidget;
30 class KLineEdit;
31 
32 namespace KPIM {
33 class RecentAddressWidget : public QWidget
34 {
35  Q_OBJECT
36 public:
37  explicit RecentAddressWidget(QWidget *parent = 0);
38  ~RecentAddressWidget();
39 
40  void setAddresses( const QStringList &addrs );
41  void storeAddresses(KConfig *config);
42  bool wasChanged() const;
43 
44 private slots:
45  void slotAddItem();
46  void slotRemoveItem();
47  void slotSelectionChanged();
48  void slotTypedSomething(const QString&);
49 
50 protected:
51  void updateButtonState();
52  bool eventFilter( QObject* o, QEvent* e );
53 
54 private:
55  KPushButton* mNewButton, *mRemoveButton;
56  QListWidget *mListView;
57  KLineEdit *mLineEdit;
58  bool mDirty;
59 };
60 }
61 #endif // RECENTADDRESSWIDGET_H
QEvent
QWidget
KPIM::RecentAddressWidget::updateButtonState
void updateButtonState()
Definition: recentaddresswidget.cpp:142
KPIM::RecentAddressWidget::RecentAddressWidget
RecentAddressWidget(QWidget *parent=0)
Definition: recentaddresswidget.cpp:42
KPIM::RecentAddressWidget
Definition: recentaddresswidget.h:33
KPIM::RecentAddressWidget::setAddresses
void setAddresses(const QStringList &addrs)
Definition: recentaddresswidget.cpp:164
KPIM::RecentAddressWidget::storeAddresses
void storeAddresses(KConfig *config)
Definition: recentaddresswidget.cpp:183
QListWidget
QObject
QString
QStringList
KLineEdit
KPIM::RecentAddressWidget::~RecentAddressWidget
~RecentAddressWidget()
Definition: recentaddresswidget.cpp:87
KPIM::RecentAddressWidget::eventFilter
bool eventFilter(QObject *o, QEvent *e)
Definition: recentaddresswidget.cpp:170
KPIM::RecentAddressWidget::wasChanged
bool wasChanged() const
Definition: recentaddresswidget.cpp:191
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:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

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

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