• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

korganizer

  • sources
  • kde-4.12
  • kdepim
  • korganizer
  • interfaces
  • korganizer
mainwindow.h
Go to the documentation of this file.
1 /*
2  This file is part of the KOrganizer interfaces.
3 
4  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library 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 GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef KORG_INTERFACES_MAINWINDOW_H
23 #define KORG_INTERFACES_MAINWINDOW_H
24 
25 #include "korganizer/korganizer_export.h"
26 
27 class ActionManager;
28 
29 class KActionCollection;
30 class KUrl;
31 class KXMLGUIClient;
32 class KXMLGUIFactory;
33 
34 class QWidget;
35 
36 namespace KOrg {
37 
38 class CalendarViewBase;
39 
44 class KORGANIZER_INTERFACES_EXPORT MainWindow
45 {
46  public:
47  MainWindow();
48  virtual ~MainWindow();
49 
50  virtual void init( bool hasDocument );
51 
52  virtual CalendarViewBase *view() const = 0;
53 
60  virtual bool openURL( const KUrl &url, bool merge = false ) = 0;
62  virtual bool saveURL() = 0;
64  virtual bool saveAsURL( const KUrl &kurl ) = 0;
65 
67  virtual KUrl getCurrentURL() const = 0;
68 
72  virtual KXMLGUIFactory *mainGuiFactory() = 0;
76  virtual KXMLGUIClient *mainGuiClient() = 0;
80  virtual QWidget *topLevelWidget() = 0;
84  virtual ActionManager *actionManager() = 0;
88  virtual KActionCollection *getActionCollection() const = 0;
92  virtual void showStatusMessage( const QString &message ) = 0;
93 
97  virtual void setTitle() = 0;
98 
99  void setHasDocument( bool d );
100  bool hasDocument() const;
101 
102  private:
103  bool mDocument;
104 };
105 
106 }
107 
108 #endif
QWidget
KORGANIZER_INTERFACES_EXPORT
#define KORGANIZER_INTERFACES_EXPORT
Definition: korganizer_export.h:87
KOrg::MainWindow
interface for korganizer main window
Definition: mainwindow.h:44
korganizer_export.h
ActionManager
The ActionManager creates all the actions in KOrganizer.
Definition: actionmanager.h:66
KOrg::CalendarViewBase
interface for main calendar view widget
Definition: calendarviewbase.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal