Diffstat (limited to 'kaddressbook/details/look_basic.h') (more/less context) (show whitespace changes)
-rw-r--r-- | kaddressbook/details/look_basic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kaddressbook/details/look_basic.h b/kaddressbook/details/look_basic.h index 7e8baff..a65c99c 100644 --- a/kaddressbook/details/look_basic.h +++ b/kaddressbook/details/look_basic.h @@ -30,98 +30,100 @@ class KConfig; /** This is a pure virtual base class that defines the interface for how to display and change entries of the KDE addressbook. This basic widget does not show anything in its client space. Derive it and implement its look and how the user may edit the entry. The paintEvent() has to paint the whole widget, since repaint() calls will not delete the widgets background. */ class KABBasicLook : public QVBox { Q_OBJECT public: /** The constructor. */ KABBasicLook( QWidget *parent = 0, const char *name = 0 ); /** Set the entry. It will be displayed automatically. */ virtual void setAddressee( const KABC::Addressee& addressee ); /** Get the current entry. */ virtual KABC::Addressee addressee(); /** Configure the view from the configuration file. */ virtual void restoreSettings( KConfig* ); /** Save the view settings to the configuration file. */ virtual void saveSettings( KConfig* ); /** Retrieve read-write state. */ bool isReadOnly() const; + void printView(){ emit printMyView();} signals: + void printMyView(); /** This signal is emitted when the user changed the entry. */ void entryChanged(); /** This signal indicates that the entry needs to be changed immidiately in the database. This might be due to changes in values that are available in menus. */ void saveMe(); /** The user acticated the email address displayed. This may happen by, for example, clicking on the displayed mailto-URL. */ void sendEmail( const QString &email ); /** The user activated one of the displayed HTTP URLs. For example by clicking on the displayed homepage address. */ void browse( const QString &url ); public slots: /** Set read-write state. */ virtual void setReadOnly( bool state ); private: KABC::Addressee mAddressee; bool mReadOnly; }; class KABLookFactory { public: KABLookFactory( QWidget *parent = 0, const char *name = 0 ); virtual ~KABLookFactory(); virtual KABBasicLook *create() = 0; /** Overload this method to provide a one-liner description for your look. */ virtual QString description() = 0; |