• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kabc
 

kabc

  • kabc
addresseedialog.h
1 /*
2  This file is part of libkabc.
3  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KABC_ADDRESSEEDIALOG_H
22 #define KABC_ADDRESSEEDIALOG_H
23 
24 #include <tqdict.h>
25 
26 #include <kdialogbase.h>
27 #include <klineedit.h>
28 #include <klistview.h>
29 
30 #include "addressbook.h"
31 
32 namespace KABC {
33 
37 class KABC_EXPORT AddresseeItem : public TQListViewItem
38 {
39  public:
40 
46  enum columns { Name = 0, Email = 1 };
47 
54  AddresseeItem( TQListView *parent, const Addressee &addressee );
55 
59  Addressee addressee() const { return mAddressee; }
60 
64  virtual TQString key( int column, bool ascending ) const;
65 
66  private:
67  Addressee mAddressee;
68 };
69 
83 class KABC_EXPORT AddresseeDialog : public KDialogBase
84 {
85  Q_OBJECT
86 
87  public:
94  AddresseeDialog( TQWidget *parent=0, bool multiple=false );
95 
99  virtual ~AddresseeDialog();
100 
106  Addressee addressee();
107 
111  Addressee::List addressees();
112 
120  static Addressee getAddressee( TQWidget *parent );
121 
129  static Addressee::List getAddressees( TQWidget *parent );
130 
131  private slots:
132  void selectItem( const TQString & );
133  void updateEdit( TQListViewItem *item );
134  void addSelected( TQListViewItem *item );
135  void removeSelected();
136 
137  protected slots:
138  void addressBookChanged();
139 
140  private:
141  void loadAddressBook();
142  void addCompletionItem( const TQString &str, TQListViewItem *item );
143 
144  bool mMultiple;
145 
146  KListView *mAddresseeList;
147  KLineEdit *mAddresseeEdit;
148 
149  KListView *mSelectedList;
150 
151  AddressBook *mAddressBook;
152 
153  TQDict<TQListViewItem> mItemDict;
154  TQDict<TQListViewItem> mSelectedDict;
155 
156  class AddresseeDialogPrivate;
157  AddresseeDialogPrivate *d;
158 };
159 
160 }
161 #endif
KABC::AddresseeItem
Special ListViewItem, that is used by the AddresseeDialog.
Definition: addresseedialog.h:37
KABC::AddresseeItem::columns
columns
Type of column.
Definition: addresseedialog.h:46
KDialogBase
KListView
KABC::AddresseeItem::addressee
Addressee addressee() const
Returns the addressee.
Definition: addresseedialog.h:59
KABC::Addressee
address book entry
Definition: addressee.src.h:74
KLineEdit
KABC
static data, shared by ALL addressee objects
Definition: address.h:48
KABC::AddressBook
Address Book.
Definition: addressbook.h:43
KABC::AddresseeDialog
Dialog for selecting address book entries.
Definition: addresseedialog.h:83

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kabc

Skip menu "kabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kabc by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |