Source: kalcatel/editcontactdialog.h
|
|
|
|
/*
* editcontactdialog.h
*
* contact editing dialog
*
* Copyright (c) 2002-2003 by Michal Cihar
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* In addition to GNU GPL this code may be used also in non GPL programs but
* if and only if programmer/distributor of that code receives written
* permission from author of this code.
*
*/
/* $Id: editcontactdialog.h,v 1.6 2003/05/09 16:52:46 michal Exp $ */
#ifndef EDITCONTACTDIALOG_H
#define EDITCONTACTDIALOG_H
#include
#include
#include "alcatelclasses.h"
class QCheckBox;
class KComboBox;
class QLineEdit;
class KIntNumInput;
enum AlcatelStorage;
/**dialog for editing contact
*@author Michal Cihar
*/
class EditContactDialog : public KDialog {
Q_OBJECT
public:
EditContactDialog(AlcatelCategoryList *cat, AlcatelContactList *lst, const AlcatelContact *cont, QWidget *parent=0, const char *name=0);
~EditContactDialog();
/** empties all editable fields
*/
void emptyFields();
/** loads contact into editable fields, if NULL contact defined in
* constructor will be used
*/
void loadContact(const AlcatelContact *cont = NULL);
public slots:
void slotOK();
void slotCancel();
void slotStorage(int st);
private:
const AlcatelContact *contact;
AlcatelContactList *list;
AlcatelCategoryList *categories;
KComboBox *editStorage;
KIntNumInput *editPosition;
QLineEdit *editLastName;
QLineEdit *editFirstName;
QLineEdit *editCompany;
QLineEdit *editJobTitle;
QLineEdit *editNote;
KComboBox *editCategory;
QCheckBox *editPrivate;
QLineEdit *editWorkNumber;
QLineEdit *editMainNumber;
QLineEdit *editFaxNumber;
QLineEdit *editOtherNumber;
QLineEdit *editPagerNumber;
QLineEdit *editMobileNumber;
QLineEdit *editHomeNumber;
QLineEdit *editEmail1;
QLineEdit *editEmail2;
QLineEdit *editAddress;
QLineEdit *editCity;
QLineEdit *editState;
QLineEdit *editZip;
QLineEdit *editCountry;
QLineEdit *editCustom1;
QLineEdit *editCustom2;
QLineEdit *editCustom3;
QLineEdit *editCustom4;
};
#endif
Generated by: michal on quirk.cic on Fri May 9 19:34:14 2003, using kdoc 2.0a54. |