fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kparts / part.h
blobc95117fe3414bb44322a760d97a0ba973d84d7fc
1 /* This file is part of the KDE project
2 Copyright (C) 1999 Simon Hausmann <hausmann@kde.org>
3 (C) 1999 David Faure <faure@kde.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
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.
15 You should have received a copy of the GNU Library 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.
20 #ifndef _KPART_H
21 #define _KPART_H
23 #include <QtCore/QPointer>
24 #include <QtCore/QEvent>
25 #include <QtCore/QSharedDataPointer>
26 #include <QtXml/QDomElement> // KDE5: remove
28 #include <kurl.h>
29 #include <kxmlguiclient.h>
31 #include <kparts/kparts_export.h>
33 #define KPARTS_DECLARE_PRIVATE(Class) \
34 inline Class##Private* d_func() { return reinterpret_cast<Class##Private *>(PartBase::d_ptr); } \
35 inline const Class##Private* d_func() const { return reinterpret_cast<const Class##Private *>(PartBase::d_ptr); } \
36 friend class Class##Private;
38 class KIconLoader;
39 class KComponentData;
40 class QWidget;
41 class QEvent;
42 class QPoint;
43 struct QUnknownInterface;
45 class KJob;
46 namespace KIO {
47 class Job;
50 namespace KParts
53 class PartManager;
54 class Plugin;
55 class PartPrivate;
56 class PartActivateEvent;
57 class PartSelectEvent;
58 class GUIActivateEvent;
59 class PartBasePrivate;
61 /**
62 * @short Base class for all parts.
64 class KPARTS_EXPORT PartBase : virtual public KXMLGUIClient
66 KPARTS_DECLARE_PRIVATE(PartBase)
68 public:
70 /**
71 * Constructor.
73 PartBase();
75 /**
76 * Destructor.
78 virtual ~PartBase();
80 /**
81 * Internal method. Called by KParts::Part to specify the parent object for plugin objects.
83 * @internal
85 void setPartObject( QObject *object );
86 QObject *partObject() const;
88 protected:
89 /**
90 * Set the componentData(KComponentData) for this part.
92 * Call this *first* in the inherited class constructor,
93 * because it loads the i18n catalogs.
95 virtual void setComponentData(const KComponentData &componentData);
97 /**
98 * Set the componentData(KComponentData) for this part.
100 * Call this *first* in the inherited class constructor,
101 * because it loads the i18n catalogs.
103 * It is recommended to call setComponentData with loadPlugins set to false,
104 * and to load plugins at the end of your part constructor (in the case of
105 * KParts::MainWindow, plugins are automatically loaded in createGUI anyway,
106 * so set loadPlugins to false for KParts::MainWindow as well).
108 virtual void setComponentData(const KComponentData &componentData, bool loadPlugins);
109 // TODO KDE5: merge the above two methods, using loadPlugins=true. Or better, remove loadPlugins
110 // altogether and change plugins to call loadPlugins() manually at the end of their ctor.
111 // In the case of KParts MainWindows, plugins are automatically loaded in createGUI anyway,
112 // so setComponentData() should really not load the plugins.
115 * We have three different policies, whether to load new plugins or not. The
116 * value in the KConfig object of the KComponentData object always overrides
117 * LoadPlugins and LoadPluginsIfEnabled.
119 enum PluginLoadingMode {
121 * Don't load any plugins at all.
123 DoNotLoadPlugins = 0,
125 * Load new plugins automatically. Can be
126 * overridden by the plugin if it sets
127 * EnabledByDefault=false in the corresponding
128 * .desktop file.
130 LoadPlugins = 1,
132 * New plugins are disabled by default. Can be
133 * overridden by the plugin if it sets
134 * EnabledByDefault=true in the corresponding
135 * .desktop file.
137 LoadPluginsIfEnabled = 2
141 * Load the Plugins honoring the PluginLoadingMode.
143 * If you call this method in an already constructed GUI (like when the user
144 * has changed which plugins are enabled) you need to add the new plugins to
145 * the KXMLGUIFactory:
146 * \code
147 * if( factory() )
149 * QList<KParts::Plugin *> plugins = KParts::Plugin::pluginObjects( this );
150 * for(int i = 0; i != plugins.size(); ++i) {
151 * factory()->addClient( plugins[i] );
154 * \endcode
156 void loadPlugins(QObject *parent, KXMLGUIClient *parentGUIClient, const KComponentData &componentData);
159 * Set how plugins should be loaded
160 * @param loadingMode see PluginLoadingMode
162 * For a KParts::Part: call this before setComponentData.
163 * For a KParts::MainWindow: call this before createGUI.
165 void setPluginLoadingMode( PluginLoadingMode loadingMode );
168 * If you change the binary interface offered by your part, you can avoid crashes
169 * from old plugins lying around by setting X-KDE-InterfaceVersion=2 in the
170 * .desktop files of the plugins, and calling setPluginInterfaceVersion( 2 ), so that
171 * the old plugins are not loaded. Increase both numbers every time a
172 * binary incompatible change in the application's plugin interface is made.
174 * @param version the interface version that plugins must have in order to be loaded.
176 * For a KParts::Part: call this before setComponentData.
177 * For a KParts::MainWindow: call this before createGUI.
179 void setPluginInterfaceVersion( int version );
181 protected:
182 PartBase(PartBasePrivate &dd);
184 PartBasePrivate *d_ptr;
186 private:
187 Q_DISABLE_COPY(PartBase)
191 * Base class for parts.
193 * A "part" is a GUI component, featuring:
194 * @li A widget embeddedable in any application.
195 * @li GUI elements that will be merged in the "host" user interface
196 * (menubars, toolbars... ).
198 * <b>About the widget:</b>\n
200 * Note that KParts::Part does not inherit QWidget.
201 * This is due to the fact that the "visual representation"
202 * will probably not be a mere QWidget, but an elaborate one.
203 * That's why when implementing your KParts::Part (or derived)
204 * you should call KParts::Part::setWidget() in your constructor.
206 * <b>About the GUI elements:</b>\n
208 * Those elements trigger actions, defined by the part ( action()).
209 * The layout of the actions in the GUI is defined by an XML file ( setXMLFile()).
211 * See also ReadOnlyPart and ReadWritePart, which define the
212 * framework for a "viewer" part and for an "editor"-like part.
213 * Use Part directly only if your part doesn't fit into those.
215 class KPARTS_EXPORT Part : public QObject, public PartBase
217 Q_OBJECT
219 KPARTS_DECLARE_PRIVATE(Part)
221 public:
224 * Constructor.
226 * @param parent Parent object of the part.
228 explicit Part( QObject *parent = 0 );
231 * Destructor.
233 virtual ~Part();
236 * Embed this part into a host widget.
238 * You don't need to do this if you created the widget with the
239 * correct parent widget - this is just a QWidget::reparent().
240 * Note that the Part is still the holder
241 * of the QWidget, meaning that if you delete the Part,
242 * then the widget gets destroyed as well, and vice-versa.
243 * This method is not recommended since creating the widget with the correct
244 * parent is simpler anyway.
246 virtual void embed( QWidget * parentWidget );
249 * @return The widget defined by this part, set by setWidget().
251 virtual QWidget *widget();
254 * @internal
255 * Used by the part manager.
257 virtual void setManager( PartManager * manager );
260 * Returns the part manager handling this part, if any (0L otherwise).
262 PartManager * manager() const;
265 * By default, the widget is deleted by the part when the part is deleted.
266 * The hosting application can call setAutoDeleteWidget(false) to
267 * disable this behavior, given that the widget is usually deleted by
268 * its parent widget anyway.
269 * This is a method for the hosting application only, Part subclasses
270 * should never call this.
272 void setAutoDeleteWidget(bool autoDeleteWidget);
275 * By default, the part deletes itself when its widget is deleted.
276 * The hosting application can call setAutoDeletePart(false) to
277 * disable this behavior, to be able to delete the widget and then the part,
278 * independently.
279 * This is a method for the hosting application only, Part subclasses
280 * should never call this.
282 void setAutoDeletePart(bool autoDeletePart);
285 * Returns the part (this, or a child part) at the given global position.
286 * This is called by the part manager to ask whether a part should be activated
287 * when clicking somewhere. In most cases the default implementation is enough.
288 * Reimplement this if your part has child parts in some areas (like in khtml or koffice)
289 * @param widget the part widget being clicked - usually the same as widget(), except in koffice.
290 * @param globalPos the mouse coordinates in global coordinates
292 virtual Part *hitTest( QWidget *widget, const QPoint &globalPos );
295 * @param selectable Indicates whether the part is selectable or not.
297 virtual void setSelectable( bool selectable );
300 * Returns whether the part is selectable or not.
302 bool isSelectable() const;
305 * Use this icon loader to load any icons that are specific to this part,
306 * i.e. icons installed into this part's own directories as opposed to standard
307 * kde icons. Use KIcon("myicon", iconLoader()).
309 * Make sure to call setComponentData before calling iconLoader.
311 KIconLoader* iconLoader();
313 Q_SIGNALS:
315 * Emitted by the part, to set the caption of the window(s)
316 * hosting this part
318 void setWindowCaption( const QString & caption );
320 * Emitted by the part, to set a text in the statusbar of the window(s)
321 * hosting this part
323 void setStatusBarText( const QString & text );
325 protected:
327 * Set the main widget.
329 * Call this in the Part-inherited class constructor.
331 virtual void setWidget( QWidget * widget );
334 * @internal
336 virtual void customEvent( QEvent *event );
339 * Convenience method which is called when the Part received a PartActivateEvent .
340 * Reimplement this if you don't want to reimplement event and test for the event yourself
341 * or even install an event filter.
343 virtual void partActivateEvent( PartActivateEvent *event );
346 * Convenience method which is called when the Part received a
347 * PartSelectEvent .
348 * Reimplement this if you don't want to reimplement event and
349 * test for the event yourself or even install an event filter.
351 virtual void partSelectEvent( PartSelectEvent *event );
354 * Convenience method which is called when the Part received a
355 * GUIActivateEvent .
356 * Reimplement this if you don't want to reimplement event and
357 * test for the event yourself or even install an event filter.
359 virtual void guiActivateEvent( GUIActivateEvent *event );
362 * Convenience method for KXMLGUIFactory::container.
363 * @return a container widget owned by the Part's GUI.
365 QWidget *hostContainer( const QString &containerName );
368 * Load this part's plugins now.
369 * Normally you want to call this at the end of the part constructor,
370 * if you used setComponentData(componentData, false)
371 * @since 4.1
373 void loadPlugins();
374 using PartBase::loadPlugins;
376 protected Q_SLOTS:
378 * @internal
380 void slotWidgetDestroyed();
382 protected:
383 Part(PartPrivate &dd, QObject *parent);
385 private:
386 Q_DISABLE_COPY(Part)
389 class ReadWritePart;
390 class ReadOnlyPartPrivate;
391 class BrowserExtension;
392 class OpenUrlArgumentsPrivate;
395 * OpenUrlArguments is the set of arguments that specify
396 * how a URL should be opened by KParts::ReadOnlyPart::openUrl().
398 * For instance reload() indicates that the url should be loaded
399 * from the network even if it matches the current url of the part.
401 * All setter methods in this class are for the class that calls openUrl
402 * (usually the hosting application), all the getter methods are for the part.
404 class KPARTS_EXPORT OpenUrlArguments
406 public:
407 OpenUrlArguments();
408 OpenUrlArguments(const OpenUrlArguments &other);
409 OpenUrlArguments &operator=( const OpenUrlArguments &other);
410 ~OpenUrlArguments();
413 * @return true to indicate that the part should reload the URL,
414 * i.e. the cache shouldn't be used (forced reload).
416 bool reload() const;
418 * Indicates that the url should be loaded
419 * from the network even if it matches the current url of the part.
421 void setReload(bool b);
424 * xOffset is the horizontal scrolling of the part's widget
425 * (in case it's a scrollview). This is saved into the history
426 * and restored when going back in the history.
428 int xOffset() const;
429 void setXOffset(int x);
432 * yOffset is the horizontal scrolling of the part's widget
433 * (in case it's a scrollview). This is saved into the history
434 * and restored when going back in the history.
436 int yOffset() const;
437 void setYOffset(int y);
440 * The mimetype to use when opening the url, when known by the calling application.
442 QString mimeType() const;
443 void setMimeType(const QString& mime);
446 * True if the user requested that the URL be opened.
447 * False if the URL should be opened due to an external event, like javascript popups
448 * or automatic redirections.
449 * This is true by default
450 * @since 4.1
452 bool actionRequestedByUser() const;
453 void setActionRequestedByUser(bool userRequested);
456 * Meta-data to associate with the KIO operation that will be used to open the URL.
457 * This method can be used to add or retrieve metadata.
458 * @see KIO::TransferJob etc.
460 QMap<QString, QString> &metaData();
461 const QMap<QString, QString> &metaData() const;
463 private:
464 QSharedDataPointer<OpenUrlArgumentsPrivate> d;
469 * Base class for any "viewer" part.
471 * This class takes care of network transparency for you,
472 * in the simplest way (downloading to a temporary file, then letting the part
473 * load from the temporary file).
474 * To use the built-in network transparency, you only need to implement
475 * openFile(), not openUrl().
477 * To implement network transparency differently (e.g. for progressive loading,
478 * like a web browser does for instance), or to prevent network transparency
479 * (but why would you do that?), you can override openUrl().
481 * KParts Application can use the signals to show feedback while the URL is being loaded.
483 * ReadOnlyPart handles the window caption by setting it to the current URL
484 * (set in openUrl(), and each time the part is activated).
485 * If you want another caption, set it in openFile() and
486 * (if the part might ever be used with a part manager) in guiActivateEvent()
488 class KPARTS_EXPORT ReadOnlyPart : public Part
490 Q_OBJECT
492 Q_PROPERTY( KUrl url READ url )
494 KPARTS_DECLARE_PRIVATE(ReadOnlyPart)
496 public:
498 * Constructor
499 * See also Part for the setXXX methods to call.
501 explicit ReadOnlyPart( QObject *parent = 0 );
504 * Destructor
506 virtual ~ReadOnlyPart();
509 * Call this to turn off the progress info dialog used by
510 * the internal KIO job. Use this if you provide another way
511 * of displaying progress info (e.g. a statusbar), using the
512 * signals emitted by this class, and/or those emitted by
513 * the Job given by started.
515 void setProgressInfoEnabled( bool show );
518 * Returns whether the part shows the progress info dialog used by internal
519 * KIO job.
521 bool isProgressInfoEnabled() const;
523 #ifndef KDE_NO_COMPAT
524 void showProgressInfo( bool show );
525 #endif
527 public Q_SLOTS:
529 * Only reimplement openUrl if you don't want the network transparency support
530 * to download from the url into a temporary file (when the url isn't local).
531 * Otherwise, reimplement openFile() only .
533 * If you reimplement it, don't forget to set the caption, usually with
534 * emit setWindowCaption( url.prettyUrl() );
536 virtual bool openUrl( const KUrl &url );
538 public:
540 * Returns the URL currently opened in this part.
542 * @return The current URL.
544 KUrl url() const;
547 * Called when closing the current url (e.g. document), for instance
548 * when switching to another url (note that openUrl() calls it
549 * automatically in this case).
550 * If the current URL is not fully loaded yet, aborts loading.
551 * Deletes the temporary file used when the url is remote.
552 * @return always true, but the return value exists for reimplementations
554 virtual bool closeUrl();
557 * This convenience method returns the browserExtension for this part,
558 * or 0 if there isn't any.
560 BrowserExtension* browserExtension() const;
563 * Sets the arguments to use for the next openUrl call.
565 void setArguments(const OpenUrlArguments& arguments);
566 // TODO to avoid problems with the case where the loading fails, this could also be a openUrl() argument (heavy porting!).
567 // However we need to have setArguments in any case for updated made by the part, see e.g. KHTMLPart::openUrl.
568 // Well, maybe we should have setArguments (affects next openurl call) and updateArguments?
572 * @return the arguments that were used to open this URL.
574 OpenUrlArguments arguments() const;
576 public:
578 * Initiate sending data to this part.
579 * This is an alternative to openUrl, which allows the user of the part
580 * to load the data itself, and send it progressively to the part.
582 * @param mimeType the type of data that is going to be sent to this part.
583 * @param url the URL representing this data. Although not directly used,
584 * every ReadOnlyPart has a URL (see url()), so this simply sets it.
585 * @return true if the part supports progressive loading and accepts data, false otherwise.
587 bool openStream( const QString& mimeType, const KUrl& url );
590 * Send some data to the part. openStream must have been called previously,
591 * and must have returned true.
592 * @return true if the data was accepted by the part. If false is returned,
593 * the application should stop sending data, and doesn't have to call closeStream.
595 bool writeStream( const QByteArray& data );
598 * Terminate the sending of data to the part.
599 * With some data types (text, html...) closeStream might never actually be called,
600 * in the case of continuous streams, for instance plain text or HTML data.
602 bool closeStream();
604 private: // Makes no sense for inherited classes to call those. But make it protected there.
607 * Called by openStream to initiate sending of data.
608 * Parts which implement progress loading should check the @p mimeType
609 * parameter, and return true if they can accept a data stream of that type.
611 virtual bool doOpenStream( const QString& /*mimeType*/ ) { return false; }
613 * Receive some data from the hosting application.
614 * In this method the part should attempt to display the data progressively.
615 * With some data types (text, html...) closeStream might never actually be called,
616 * in the case of continuous streams. This can't happen with e.g. images.
618 virtual bool doWriteStream( const QByteArray& /*data*/ ) { return false; }
620 * This is called by closeStream(), to indicate that all the data has been sent.
621 * Parts should ensure that all of the data is displayed at this point.
622 * @return whether the data could be displayed correctly.
624 virtual bool doCloseStream() { return false; }
626 Q_SIGNALS:
628 * The part emits this when starting data.
629 * If using a KIO::Job, it sets the job in the signal, so that
630 * progress information can be shown. Otherwise, job is 0.
632 void started( KIO::Job * );
635 * Emit this when you have completed loading data.
636 * Hosting apps will want to know when the process of loading the data
637 * is finished, so that they can access the data when everything is loaded.
639 void completed();
642 * Same as the above signal except it indicates whether there is
643 * a pending action to be executed on a delay timer. An example of
644 * this is the meta-refresh tags on web pages used to reload/redirect
645 * after a certain period of time. This signal is useful if you want
646 * to give the user the ability to cancel such pending actions.
648 * @p pendingAction true if a pending action exists, false otherwise.
650 void completed( bool pendingAction );
653 * Emit this if loading is canceled by the user or by an error.
654 * @param errMsg the error message, empty if the user canceled the loading voluntarily.
656 void canceled( const QString &errMsg );
658 protected:
660 * If the part uses the standard implementation of openUrl(),
661 * it must reimplement this, to open the local file.
662 * Otherwise simply define it to { return false; }
664 virtual bool openFile() = 0;
667 * @internal
669 void abortLoad();
672 * Reimplemented from Part, so that the window caption is set to
673 * the current url (decoded) when the part is activated
674 * This is the usual behavior in 99% of the apps
675 * Reimplement if you don't like it - test for event->activated() !
677 * Technical note : this is done with GUIActivateEvent and not with
678 * PartActivateEvent because it's handled by the mainwindow
679 * (which gets the even after the PartActivateEvent events have been sent)
681 virtual void guiActivateEvent( GUIActivateEvent *event );
684 * @internal
686 KDE_DEPRECATED bool isLocalFileTemporary() const;
689 * @internal
691 KDE_DEPRECATED void setLocalFileTemporary( bool temp );
694 * Sets the url associated with this part.
696 void setUrl(const KUrl &url);
699 * Returns the local file path associated with this part.
701 QString localFilePath() const;
704 * Sets the local file path associated with this part.
706 void setLocalFilePath( const QString &localFilePath );
708 protected:
709 ReadOnlyPart(ReadOnlyPartPrivate &dd, QObject *parent);
711 private:
712 Q_PRIVATE_SLOT(d_func(), void _k_slotJobFinished( KJob * job ))
713 Q_PRIVATE_SLOT(d_func(), void _k_slotGotMimeType(KIO::Job *job, const QString &mime))
715 Q_DISABLE_COPY(ReadOnlyPart)
717 class ReadWritePartPrivate;
720 * Base class for an "editor" part.
722 * This class handles network transparency for you.
723 * Anything that can open a URL, allow modifications, and save
724 * (to the same URL or a different one).
726 * A read-write part can be set to read-only mode, using setReadWrite().
728 * Part writers :
729 * Any part inheriting ReadWritePart should check isReadWrite
730 * before allowing any action that modifies the part.
731 * The part probably wants to reimplement setReadWrite, disable those
732 * actions. Don't forget to call the parent setReadWrite.
734 class KPARTS_EXPORT ReadWritePart : public ReadOnlyPart
736 Q_OBJECT
738 KPARTS_DECLARE_PRIVATE(ReadWritePart)
740 public:
742 * Constructor
743 * See parent constructor for instructions.
745 explicit ReadWritePart( QObject *parent = 0 );
747 * Destructor
748 * Applications using a ReadWritePart should make sure, before
749 * destroying it, to call closeUrl().
750 * In KMainWindow::queryClose(), for instance, they should allow
751 * closing only if the return value of closeUrl() was true.
752 * This allows to cancel.
754 virtual ~ReadWritePart();
757 * @return true if the part is in read-write mode
759 bool isReadWrite() const;
762 * Changes the behavior of this part to readonly or readwrite.
763 * @param readwrite set to true to enable readwrite mode
765 virtual void setReadWrite ( bool readwrite = true );
768 * @return true if the document has been modified.
770 bool isModified() const;
773 * If the document has been modified, ask the user to save changes.
774 * This method is meant to be called from KMainWindow::queryClose().
775 * It will also be called from closeUrl().
777 * @return true if closeUrl() can be called without the user losing
778 * important data, false if the user chooses to cancel.
780 virtual bool queryClose();
783 * Called when closing the current url (e.g. document), for instance
784 * when switching to another url (note that openUrl() calls it
785 * automatically in this case).
787 * If the current URL is not fully loaded yet, aborts loading.
789 * If isModified(), queryClose() will be called.
791 * @return false on cancel
793 virtual bool closeUrl();
796 * Call this method instead of the above if you need control if
797 * the save prompt is shown. For example, if you call queryClose()
798 * from KMainWindow::queryClose(), you would not want to prompt
799 * again when closing the url.
801 * Equivalent to promptToSave ? closeUrl() : ReadOnlyPart::closeUrl()
803 virtual bool closeUrl( bool promptToSave );
806 * Save the file to a new location.
808 * Calls save(), no need to reimplement
810 virtual bool saveAs( const KUrl &url );
813 * Sets the modified flag of the part.
815 virtual void setModified( bool modified );
817 Q_SIGNALS:
819 * set handled to true, if you don't want the default handling
820 * set abortClosing to true, if you handled the request,
821 * but for any reason don't want to allow closing the document
823 void sigQueryClose(bool *handled, bool* abortClosing);
825 public Q_SLOTS:
827 * Call setModified() whenever the contents get modified.
828 * This is a slot for convenience, since it simply calls setModified(true),
829 * so that you can connect it to a signal, like textChanged().
831 void setModified();
834 * Save the file in the location from which it was opened.
835 * You can connect this to the "save" action.
836 * Calls saveFile() and saveToUrl(), no need to reimplement.
838 virtual bool save();
841 * Waits for any pending upload job to finish and returns whether the
842 * last save() action was successful.
844 bool waitSaveComplete();
846 protected:
848 * Save to a local file.
849 * You need to implement it, to save to the local file.
850 * The framework takes care of re-uploading afterwards.
852 * @return true on success, false on failure.
853 * On failure the function should inform the user about the
854 * problem with an appropriate message box. Standard error
855 * messages can be constructed using KIO::buildErrorString()
856 * in combination with the error codes defined in kio/global.h
858 virtual bool saveFile() = 0;
861 * Save the file.
863 * Uploads the file, if @p url is remote.
864 * This will emit started(), and either completed() or canceled(),
865 * in case you want to provide feedback.
866 * @return true on success, false on failure.
868 virtual bool saveToUrl();
870 private:
871 Q_PRIVATE_SLOT(d_func(), void _k_slotUploadFinished( KJob * job ))
873 Q_DISABLE_COPY(ReadWritePart)
876 } // namespace
879 #undef KPARTS_DECLARE_PRIVATE
881 #endif