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

tdeabc

  • tdeabc
addresseedialog.h
1/*
2 This file is part of libtdeabc.
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 <tdelistview.h>
29
30#include "addressbook.h"
31
32namespace TDEABC {
33
37class 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
83class KABC_EXPORT AddresseeDialog : public KDialogBase
84{
85 TQ_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 TDEListView *mAddresseeList;
147 KLineEdit *mAddresseeEdit;
148
149 TDEListView *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
KDialogBase
KLineEdit
TDEABC::AddressBook
Address Book.
Definition: addressbook.h:44
TDEABC::AddresseeDialog
Dialog for selecting address book entries.
Definition: addresseedialog.h:84
TDEABC::AddresseeItem
Special ListViewItem, that is used by the AddresseeDialog.
Definition: addresseedialog.h:38
TDEABC::AddresseeItem::addressee
Addressee addressee() const
Returns the addressee.
Definition: addresseedialog.h:59
TDEABC::AddresseeItem::columns
columns
Type of column.
Definition: addresseedialog.h:46
TDEABC::Addressee
address book entry
Definition: addressee.src.h:75
TDEListView
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.