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

kabc

distributionlistdialog.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 
00021 #ifndef KABC_DISTRIBUTIONLISTDIALOG_H
00022 #define KABC_DISTRIBUTIONLISTDIALOG_H
00023 
00024 #include <tqwidget.h>
00025 
00026 #include <kdialogbase.h>
00027 
00028 class TQListView;
00029 class TQComboBox;
00030 class TQButtonGroup;
00031 
00032 namespace KABC {
00033 
00034 class AddressBook;
00035 class DistributionListEditorWidget;
00036 class DistributionListManager;
00037 
00055 class KABC_EXPORT DistributionListDialog : public KDialogBase
00056 {
00057     Q_OBJECT
00058 
00059   public:
00066     DistributionListDialog( AddressBook *ab, TQWidget *parent );
00067 
00071     virtual ~DistributionListDialog();
00072 
00073   private:
00074     DistributionListEditorWidget *mEditor;
00075 
00076     struct Data;
00077     Data *d;
00078 };
00079 
00083 class KABC_EXPORT EmailSelector : public KDialogBase
00084 {
00085   public:
00086     EmailSelector( const TQStringList &emails, const TQString &current,
00087         TQWidget *parent );
00088 
00089     TQString selected();
00090 
00091     static TQString getEmail( const TQStringList &emails, const TQString &current,
00092         TQWidget *parent );
00093 
00094   private:
00095     TQButtonGroup *mButtonGroup;
00096 };
00097 
00101 class KABC_EXPORT DistributionListEditorWidget : public TQWidget
00102 {
00103     Q_OBJECT
00104 
00105   public:
00106     DistributionListEditorWidget( AddressBook *, TQWidget *parent );
00107     virtual ~DistributionListEditorWidget();
00108 
00109   private slots:
00110     void newList();
00111     void editList();
00112     void removeList();
00113     void addEntry();
00114     void removeEntry();
00115     void changeEmail();
00116     void updateEntryView();
00117     void updateAddresseeView();
00118     void updateNameCombo();
00119     void slotSelectionEntryViewChanged();
00120     void slotSelectionAddresseeViewChanged();
00121     void save();
00122 
00123   private:
00124     TQComboBox *mNameCombo;  
00125     TQLabel *mListLabel;
00126     TQListView *mEntryView;
00127     TQListView *mAddresseeView;
00128 
00129     AddressBook *mAddressBook;
00130     DistributionListManager *mManager;
00131     TQPushButton *mNewButton, *mEditButton, *mRemoveButton;
00132     TQPushButton *mChangeEmailButton, *mRemoveEntryButton, *mAddEntryButton;
00133 
00134     struct Data;
00135     Data *d;
00136 };
00137 
00138 }
00139 #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. |