kaddressbook Library API Documentation

ViewManager Class Reference

The view manager manages the views and everything related to them. More...

#include <viewmanager.h>

Inheritance diagram for ViewManager:

QWidget List of all members.

Public Slots

void setSelected (const QString &uid=QString::null, bool selected=true)
void refreshView (const QString &uid=QString::null)
void editView ()
void deleteView ()
void addView ()

Signals

void selected (const QString &uid)
void executed (const QString &uid)
void modified ()
void urlDropped (const KURL &)
void sortFieldChanged ()

Public Methods

 ViewManager (KAB::Core *core, QWidget *parent, const char *name=0)
 ~ViewManager ()
void restoreSettings ()
void saveSettings ()
void unloadViews ()
QStringList selectedUids () const
QStringList selectedEmails () const
KABC::Addressee::List selectedAddressees () const
void setFilterSelectionWidget (FilterSelectionWidget *wdg)
KABC::Field * currentSortField () const

Protected Slots

void dropped (QDropEvent *)
void startDrag ()

Detailed Description

The view manager manages the views and everything related to them.

The manager will load the views at startup and display a view when told to make one active.

The view manager will also create and manage all dialogs directly related to views (ie: AddView, ConfigureView, DeleteView, etc).

Definition at line 50 of file viewmanager.h.


Member Function Documentation

void ViewManager::dropped QDropEvent   [protected, slot]
 

Called whenever the user drops something in the active view.

This method will try to decode what was dropped, and if it was a valid addressee, add it to the addressbook.

Definition at line 384 of file viewmanager.cpp.

References modified(), KAddressBookView::refresh(), and urlDropped().

void ViewManager::startDrag   [protected, slot]
 

Called whenever the user attempts to start a drag in the view.

This method will convert all the selected addressees into text (vcard) and create a drag object.

Definition at line 419 of file viewmanager.cpp.

References AddresseeUtil::addresseesToEmails().

void ViewManager::selected const QString   uid [signal]
 

Emitted whenever the user selects an entry in the view.

void ViewManager::executed const QString   uid [signal]
 

Emitted whenever the user activates an entry in the view.

void ViewManager::modified   [signal]
 

Emitted whenever the address book is modified in some way.

Referenced by dropped().

void ViewManager::urlDropped const KURL &    [signal]
 

Emitted whenever a url is dragged on a view.

Referenced by dropped().

void ViewManager::sortFieldChanged   [signal]
 

Emitted whenever the sort field of a view has changed.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:54 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003