korganizer

kowindowlist.h
1/*
2 This file is part of KOrganizer.
3
4 Copyright (c) 2000,2003 Cornelius Schumacher <schumacher@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 As a special exception, permission is given to link this program
21 with any edition of TQt, and distribute the resulting executable,
22 without including the source code for TQt in the source distribution.
23*/
24#ifndef KOWINDOWLIST_H
25#define KOWINDOWLIST_H
26
27#include <tqobject.h>
28
29namespace KOrg {
30class MainWindow;
31}
32
33class KURL;
34
43class KOWindowList : public TQObject
44{
45 TQ_OBJECT
46
47 public:
52 KOWindowList( const char *name = 0 );
53 virtual ~KOWindowList();
54
58 bool lastInstance();
59
63 KOrg::MainWindow *findInstance( const KURL &url );
64
70
71 public slots:
80
81 private:
82 TQPtrList<KOrg::MainWindow> mWindowList; // list of all existing KOrganizer instances
83
84 KOrg::MainWindow *mDefaultWindow;
85};
86
87#endif
This class manages a list of KOrganizer instances, each associated with a window displaying a calenda...
Definition: kowindowlist.h:44
KOrg::MainWindow * findInstance(const KURL &url)
Is there a instance with this URL?
bool lastInstance()
Is there only one instance left?
KOWindowList(const char *name=0)
Constructs a new list of KOrganizer windows.
void addWindow(KOrg::MainWindow *)
Register a main window.
void removeWindow(KOrg::MainWindow *)
Unregister a main window.
KOrg::MainWindow * defaultInstance()
Return default instance.
interface for korganizer main window
Definition: mainwindow.h:41