kaddressbook Library API Documentation

nameeditdialog.h

00001 #ifndef NAMEEDITDIALOG_H
00002 #define NAMEEDITDIALOG_H
00003 /*                                                                      
00004     This file is part of KAddressBook.                                  
00005     Copyright (c) 2002 Mike Pilone <mpilone@slac.com>                   
00006                                                                         
00007     This program is free software; you can redistribute it and/or modify
00008     it under the terms of the GNU General Public License as published by
00009     the Free Software Foundation; either version 2 of the License, or   
00010     (at your option) any later version.                                 
00011                                                                         
00012     This program is distributed in the hope that it will be useful,     
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of      
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the        
00015     GNU General Public License for more details.                        
00016                                                                         
00017     You should have received a copy of the GNU General Public License   
00018     along with this program; if not, write to the Free Software         
00019     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.           
00020                                                                         
00021     As a special exception, permission is given to link this program    
00022     with any edition of Qt, and distribute the resulting executable,    
00023     without including the source code for Qt in the source distribution.
00024 */                                                                      
00025 
00026 #include <kdialogbase.h>
00027 #include <kabc/addressee.h>
00028 
00029 #include "addresseeconfig.h"
00030 
00031 class QCheckBox;
00032 
00033 class KLineEdit;
00034 class KComboBox;
00035 
00039 class NameEditDialog : public KDialogBase
00040 {
00041   Q_OBJECT
00042 
00043   public:
00044     NameEditDialog( const KABC::Addressee &addr, QWidget *parent, const char *name = 0);
00045     ~NameEditDialog();
00046    
00047     QString familyName() const;
00048     QString givenName() const;
00049     QString prefix() const;
00050     QString suffix() const;
00051     QString additionalName() const;
00052 
00053     bool changed() const;
00054    
00055   protected slots:
00056     void parseBoxChanged(bool);
00057     void modified();
00058 
00059   private:
00060     KComboBox *mSuffixCombo;
00061     KComboBox *mPrefixCombo;
00062     KLineEdit *mFamilyNameEdit;
00063     KLineEdit *mGivenNameEdit;
00064     KLineEdit *mAdditionalNameEdit;
00065     QCheckBox *mParseBox;
00066 
00067     AddresseeConfig mAddresseeConfig;
00068     bool mChanged;
00069 };
00070 
00071 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:10 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001