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 (KOrg::MainWindow *)
void removeWindow (KOrg::MainWindow *)

Public Methods

 KOWindowList (const char *name=0)
virtual ~KOWindowList ()
bool lastInstance ()
KOrg::MainWindowfindInstance (const KURL &url)
KOrg::MainWindowdefaultInstance ()

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, 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 ActionManager class takes care of this.

Definition at line 31 of file kowindowlist.cpp.


Member Function Documentation

bool KOWindowList::lastInstance  
 

Is there only one instance left?

Definition at line 53 of file kowindowlist.cpp.

References QPtrList< KOrg::MainWindow >::count().

KOrg::MainWindow * KOWindowList::findInstance const KURL &    url
 

Is there a instance with this URL?

Definition at line 60 of file kowindowlist.cpp.

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

Referenced by ActionManager::findInstance().

KOrg::MainWindow * KOWindowList::defaultInstance  
 

Return default instance.

This is the main window for the resource based calendar.

Definition at line 69 of file kowindowlist.cpp.

Referenced by ActionManager::findInstance().

void KOWindowList::addWindow KOrg::MainWindow   [slot]
 

Register a main window.

Definition at line 41 of file kowindowlist.cpp.

References QPtrList< KOrg::MainWindow >::append(), and KOrg::MainWindow::hasDocument().

void KOWindowList::removeWindow KOrg::MainWindow   [slot]
 

Unregister a main window.

Definition at line 47 of file kowindowlist.cpp.

References QPtrList< KOrg::MainWindow >::removeRef().


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