kmobiletools
addaddresseedialog.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 Copyright (C) 2007 by Matthias Lechner <matthias@lmme.de> 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the 00016 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 ***************************************************************************/ 00019 00020 #ifndef ADDADDRESSEEDIALOG_H 00021 #define ADDADDRESSEEDIALOG_H 00022 00023 #include <QtGui/QWidget> 00024 #include <KDialog> 00025 00026 #include <libkmobiletools/addressbookentry.h> 00027 00028 class KPushButton; 00029 class QComboBox; 00030 class QTableWidget; 00031 class KLineEdit; 00035 class AddAddresseeDialog : public KDialog 00036 { 00037 Q_OBJECT 00038 public: 00039 AddAddresseeDialog( QWidget* parent = 0 ); 00040 00041 ~AddAddresseeDialog(); 00042 00043 public Q_SLOTS: 00044 void availableSlots( KMobileTools::AddressbookEntry::MemorySlots ); 00045 void accept(); 00046 void show(); 00047 00048 private Q_SLOTS: 00049 void addPhoneNumber(); 00050 void removePhoneNumber(); 00051 00052 Q_SIGNALS: 00053 void addAddressee( const KMobileTools::AddressbookEntry& ); 00054 00055 private: 00056 void setupGui(); 00057 00058 QString memorySlotToString( KMobileTools::AddressbookEntry::MemorySlot memorySlot ); 00059 00060 QWidget* m_widget; 00061 KLineEdit* m_name; 00062 KLineEdit* m_email; 00063 00064 KLineEdit* m_phoneNumber; 00065 QTableWidget* m_phoneNumberTable; 00066 QComboBox* m_phoneNumberTypes; 00067 KPushButton* m_addPhoneNumber; 00068 KPushButton* m_removePhoneNumber; 00069 00070 QComboBox* m_storageLocation; 00071 }; 00072 00073 #endif
KDE 4.2 API Reference