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

KParts

  • sources
  • kde-4.14
  • kdelibs
  • kparts
browseropenorsavequestion.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009 David Faure <faure@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU Lesser General Public License as published by
6  the Free Software Foundation; either version 2 of the License or ( at
7  your option ) version 3 or, at the discretion of KDE e.V. ( which shall
8  act as a proxy as in section 14 of the GPLv3 ), any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef BROWSEROPENORSAVEQUESTION_H
22 #define BROWSEROPENORSAVEQUESTION_H
23 
24 #include "kparts_export.h"
25 #include <kdialog.h>
26 #include "browserrun.h"
27 #include <kservice.h>
28 
29 namespace KParts {
30 
31 class BrowserOpenOrSaveQuestionPrivate;
32 
41 class KPARTS_EXPORT BrowserOpenOrSaveQuestion
42 {
43 public:
49  BrowserOpenOrSaveQuestion(QWidget* parent, const KUrl& url, const QString& mimeType);
50  ~BrowserOpenOrSaveQuestion();
51 
56  void setSuggestedFileName(const QString& suggestedFileName);
57 
64  enum Feature { BasicFeatures = 0,
65  ServiceSelection = 1
66  };
67  Q_DECLARE_FLAGS(Features, Feature)
68 
69 
72  void setFeatures(Features features);
73 
74  enum Result { Save, Open, Embed, Cancel };
75 
81  Result askOpenOrSave();
82 
91  Result askEmbedOrSave(int flags = 0);
92  // KDE5 TODO: move BrowserRun::AskEmbedOrSaveFlags to this class.
93 
94  // TODO askOpenEmbedOrSave
95 
104  KService::Ptr selectedService() const;
105 
106 private:
107  BrowserOpenOrSaveQuestionPrivate* const d;
108 };
109 
110 }
111 
112 #endif /* BROWSEROPENORSAVEQUESTION_H */
113 
kdialog.h
KSharedPtr< KService >
QWidget
KParts::BrowserOpenOrSaveQuestion::Feature
Feature
Set of features that should be enabled in this dialog.
Definition: browseropenorsavequestion.h:64
KParts::BrowserOpenOrSaveQuestion::Result
Result
Definition: browseropenorsavequestion.h:74
KUrl
KParts::BrowserOpenOrSaveQuestion
This class shows the dialog that asks the user whether to save a url or open a url in another applica...
Definition: browseropenorsavequestion.h:41
browserrun.h
QString
kservice.h
Cancel
Open
KParts::BrowserOpenOrSaveQuestion::Save
Definition: browseropenorsavequestion.h:74
kparts_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KParts

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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