• 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
previewdialog.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2003,2004 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
8  Author: Sergio Martins, <sergio.martins@kdab.com>
9 
10  This program is free software; you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation; either version 2 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 
24  As a special exception, permission is given to link this program
25  with any edition of Qt, and distribute the resulting executable,
26  without including the source code for Qt in the source distribution.
27 */
28 
29 #ifndef KORG_PREVIEWDIALOG_H
30 #define KORG_PREVIEWDIALOG_H
31 
32 #include <KCalCore/MemoryCalendar>
33 
34 #include <KDialog>
35 
36 class KOListView;
37 
38 namespace KCalCore {
39  class FileStorage;
40 }
41 
42 class PreviewDialog : public KDialog
43 {
44  Q_OBJECT
45  public:
46  PreviewDialog( const KUrl &url, QWidget *parent );
47  ~PreviewDialog();
48  bool loadCalendar();
49 
50  public slots:
51  void slotAdd();
52  void slotMerge();
53 
54  signals:
55  void dialogFinished( PreviewDialog * );
56  void openURL( const KUrl &, bool );
57  void addResource( const KUrl & );
58 
59  private:
60  // Checks if mOriginalUrl is a temp file, if it is we ask the user a place to
61  // keep the calendar file
62  bool isTempFile() const;
63 
64  KUrl mOriginalUrl;
65  KUrl *mLocalUrl;
66  KOListView *mListView;
67  KCalCore::MemoryCalendar::Ptr mCalendar;
68  KCalCore::FileStorage *mFileStorage;
69 };
70 
71 #endif
PreviewDialog::dialogFinished
void dialogFinished(PreviewDialog *)
PreviewDialog::openURL
void openURL(const KUrl &, bool)
PreviewDialog::addResource
void addResource(const KUrl &)
QWidget
KDialog
PreviewDialog
Definition: previewdialog.h:42
PreviewDialog::~PreviewDialog
~PreviewDialog()
Definition: previewdialog.cpp:81
KOListView
Definition: kolistview.h:44
PreviewDialog::loadCalendar
bool loadCalendar()
Definition: previewdialog.cpp:91
PreviewDialog::slotAdd
void slotAdd()
Definition: previewdialog.cpp:138
PreviewDialog::slotMerge
void slotMerge()
Definition: previewdialog.cpp:129
PreviewDialog::PreviewDialog
PreviewDialog(const KUrl &url, QWidget *parent)
Definition: previewdialog.cpp:45
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