kaddressbook Library API Documentation

look_basic.h

00001 /* -*- C++ -*-
00002    This file implements the base class for kabīs looks.
00003 
00004    the KDE addressbook
00005 
00006    $ Author: Mirko Boehm $
00007    $ Copyright: (C) 1996-2001, Mirko Boehm $
00008    $ Contact: mirko@kde.org
00009          http://www.kde.org $
00010    $ License: GPL with the following explicit clarification:
00011          This code may be linked against any version of the Qt toolkit
00012          from Troll Tech, Norway. $
00013 
00014    $Revision: 1.1 $
00015 */
00016 
00017 #ifndef LOOK_KABBASIC_H
00018 #define LOOK_KABBASIC_H
00019 
00020 #include <kabc/addressbook.h>
00021 #include <qwidget.h>
00022 
00023 class KConfig;
00024 
00035 class KABBasicLook : public QWidget
00036 {
00037     Q_OBJECT
00038 public:
00040     KABBasicLook(QWidget* parent=0, const char* name=0);
00042     virtual void setEntry(const KABC::Addressee& addressee);
00044     virtual KABC::Addressee entry();
00046     virtual void configure(KConfig* config);
00048     bool readonly() const;
00049 signals:
00051     void entryChanged();
00055     void saveMe();
00058     void sendEmail(const QString&);
00061     void browse(const QString&);
00062 public slots:
00064     virtual void setReadonly(bool state);
00065 protected:
00067     KABC::Addressee current;
00069     bool m_ro;
00070 
00071 };
00072 
00073 class KABLookFactory
00074 {
00075 public:
00076     KABLookFactory(QWidget* parent=0, const char* name=0);
00077     virtual ~KABLookFactory();
00078     virtual KABBasicLook *create()=0;
00081     virtual QString description()=0;
00082 protected:
00083     QWidget *parent;
00084     const char* name;
00085 };
00086 
00087 #endif // LOOK_KABBASIC_H
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:37 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001