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

kabc

distributionlisteditor.h
00001 /*
00002     This file is part of libkabc.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 #ifndef KABC_DISTRIBUTIONLISTEDITOR_H
00021 #define KABC_DISTRIBUTIONLISTEDITOR_H
00022 
00023 #include <tqwidget.h>
00024 
00025 #include <kdialogbase.h>
00026 
00027 class TQListView;
00028 class TQComboBox;
00029 class TQButtonGroup;
00030 
00031 namespace KABC {
00032 
00033 class AddressBook;
00034 class DistributionListManager;
00035 
00036 class KABC_EXPORT EmailSelectDialog : public KDialogBase
00037 {
00038   public:
00039     EmailSelectDialog( const TQStringList &emails, const TQString &current,
00040                        TQWidget *parent );
00041     
00042     TQString selected();
00043 
00044     static TQString getEmail( const TQStringList &emails, const TQString &current,
00045                              TQWidget *parent );
00046 
00047   private:
00048     TQButtonGroup *mButtonGroup;
00049 };
00050 
00054 class KABC_EXPORT DistributionListEditor : public TQWidget
00055 {
00056     Q_OBJECT
00057   public:
00058     DistributionListEditor( AddressBook *, TQWidget *parent );
00059     virtual ~DistributionListEditor();
00060 
00061   private slots:
00062     void newList();
00063     void removeList();
00064     void addEntry();
00065     void removeEntry();
00066     void changeEmail();
00067     void updateEntryView();
00068     void updateAddresseeView();
00069     void updateNameCombo();
00070     void slotSelectionEntryViewChanged();
00071     void slotSelectionAddresseeViewChanged();
00072 
00073   private:
00074     TQComboBox *mNameCombo;  
00075     TQListView *mEntryView;
00076     TQListView *mAddresseeView;
00077 
00078     AddressBook *mAddressBook;
00079     DistributionListManager *mManager;
00080     TQPushButton *newButton, *removeButton;
00081     TQPushButton *changeEmailButton,*removeEntryButton,*addEntryButton;
00082 };
00083 
00084 }
00085 
00086 #endif

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.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |