korganizer Library API Documentation

KOWindowList Class Reference

This class manages a list of KOrganizer instances, each associated with a window displaying a calendar. manages a list of all KOrganizer instances. More...

#include <kowindowlist.h>

Inheritance diagram for KOWindowList:

QObject List of all members.

Public Slots

void addWindow (KOrganizer *)
void removeWindow (KOrganizer *)
void deactivateCalendars (KOrganizer *)
 Deactivating all calendars despite the one given in the argument.


Public Member Functions

 KOWindowList (const char *name=0)
 Constructs a new list of KOrganizer windows.

bool lastInstance ()
 Is there only one instance left?

KOrganizerfindInstance (const KURL &url)
 Is there a instance with this URL?


Detailed Description

This class manages a list of KOrganizer instances, each associated with a window displaying a calendar. manages a list of all KOrganizer instances.

It acts as relay for signals between this windows and manages information like the active calendar, which requires interaction of all instances.

Author:
Cornelius Schumacher

Definition at line 41 of file kowindowlist.h.


Constructor & Destructor Documentation

KOWindowList::KOWindowList const char *  name = 0  ) 
 

Constructs a new list of KOrganizer windows.

There should only be one instance of this class. The KOrganizer class takes care of this.

Definition at line 29 of file kowindowlist.cpp.


Member Function Documentation

bool KOWindowList::lastInstance  ) 
 

Is there only one instance left?

Definition at line 51 of file kowindowlist.cpp.

References QPtrList< KOrganizer >::count().

Referenced by KOrganizer::queryClose().

KOrganizer * KOWindowList::findInstance const KURL &  url  ) 
 

Is there a instance with this URL?

Definition at line 57 of file kowindowlist.cpp.

References QPtrList< KOrganizer >::first(), KOrganizer::getCurrentURL(), and QPtrList< KOrganizer >::next().

Referenced by KOrganizer::findInstance().

void KOWindowList::deactivateCalendars KOrganizer  )  [slot]
 

Deactivating all calendars despite the one given in the argument.

Definition at line 66 of file kowindowlist.cpp.

References QPtrList< KOrganizer >::first(), QPtrList< KOrganizer >::next(), and KOrganizer::setActive().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:32 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001