Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > 598341c1887427ab768752b2f2b5c890 > files > 33

kmobiletools-debug-0.5.0-0.beta3.5mdv2008.1.i586.rpm

/***************************************************************************
   Copyright (C) 2007
   by Marco Gulino <marco@kmobiletools.org>

   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 program 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.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the
   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.
 ***************************************************************************/
#ifndef EDITADDRESSEE_H
#define EDITADDRESSEE_H

#include "editaddressee_ui.h"

#include <kdialogbase.h>
#include <kabc/addressee.h>
/**
@author Marco Gulino
*/
class editAddressee : public KDialogBase
{
Q_OBJECT
public:
    editAddressee(int phoneManufacturer,  int pbslots=0, int index=0, QWidget *parent = 0, const char *name = 0);
    editAddressee(KABC::Addressee *addressee, int phoneManufacturer,  int pbslots=0, int index=0, QWidget *parent = 0, const char *name = 0);

    ~editAddressee();

    KABC::Addressee *getAddressee() { return addressee; }
    int pbSlot();
private:
    editAddressee_ui *mainWidget;
    KABC::Addressee *addressee;
    void setupWidgets( int phoneManufacturer,  int pbslots=0, int index=0 );

public slots:
    void slotAddClicked();
    void slotDelClicked();
    void slotCheckIsOk();
protected:
    void done(int r);
};

#endif