Documentation: Menus.docbook Composer menu Message and correcct formatting.
[kdepim.git] / korganizer / previewdialog.h
blob1a02fa5f66ba4f6b0f96fce338e890eb1bac8e4a
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 2003,2004 Cornelius Schumacher <schumacher@kde.org>
5 Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
7 Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
8 Author: Sergio Martins, <sergio.martins@kdab.com>
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.
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.
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.
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.
29 #ifndef KORG_PREVIEWDIALOG_H
30 #define KORG_PREVIEWDIALOG_H
32 #include <KCalCore/MemoryCalendar>
34 #include <KDialog>
36 class KOListView;
38 namespace KCalCore {
39 class FileStorage;
42 class PreviewDialog : public KDialog
44 Q_OBJECT
45 public:
46 PreviewDialog( const KUrl &url, QWidget *parent );
47 ~PreviewDialog();
48 bool loadCalendar();
50 public slots:
51 void slotAdd();
52 void slotMerge();
54 signals:
55 void dialogFinished( PreviewDialog * );
56 void openURL( const KUrl &, bool );
57 void addResource( const KUrl & );
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;
64 KUrl mOriginalUrl;
65 KUrl *mLocalUrl;
66 KOListView *mListView;
67 KCalCore::MemoryCalendar::Ptr mCalendar;
68 KCalCore::FileStorage *mFileStorage;
71 #endif