]> cloud.milkyroute.net Git - dolphin.git/blob - src/views/dolphinview.h
Added implementation of the FileInfoExtension to allow KPart plugins to obtain such...
[dolphin.git] / src / views / dolphinview.h
1 /***************************************************************************
2 * Copyright (C) 2006-2009 by Peter Penz <peter.penz@gmx.at> *
3 * Copyright (C) 2006 by Gregor Kališnik <gregor@podnapisi.net> *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program 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 *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
20
21
22 #ifndef DOLPHINVIEW_H
23 #define DOLPHINVIEW_H
24
25 #include <config-nepomuk.h>
26
27 #include "libdolphin_export.h"
28
29 #include <kparts/part.h>
30 #include <kfileitem.h>
31 #include <kfileitemdelegate.h>
32 #include <kio/fileundomanager.h>
33 #include <kio/job.h>
34
35 #include <QBoxLayout>
36 #include <QKeyEvent>
37 #include <QLinkedList>
38 #include <QListView>
39 #include <QSet>
40 #include <QWidget>
41
42 typedef KIO::FileUndoManager::CommandType CommandType;
43
44 class DolphinColumnViewContainer;
45 class DolphinDetailsView;
46 class DolphinIconsView;
47 class DolphinModel;
48 class DolphinSortFilterProxyModel;
49 class DolphinViewController;
50 class KAction;
51 class KActionCollection;
52 class KDirLister;
53 class KUrl;
54 class ViewModeController;
55 class ViewProperties;
56 class DolphinDetailsViewExpander;
57
58 /**
59 * @short Represents a view for the directory content.
60 *
61 * View modes for icons, details and columns are supported. It's
62 * possible to adjust:
63 * - sort order
64 * - sort type
65 * - show hidden files
66 * - show previews
67 *
68 * @see DolphinIconsView
69 * @see DolphinDetailsView
70 * @see DolphinColumnView
71 */
72 class LIBDOLPHINPRIVATE_EXPORT DolphinView : public QWidget
73 {
74 Q_OBJECT
75
76 public:
77 /**
78 * Defines the view mode for a directory. The view mode
79 * can be defined when constructing a DolphinView. The
80 * view mode is automatically updated if the directory itself
81 * defines a view mode (see class ViewProperties for details).
82 */
83 enum Mode
84 {
85 /**
86 * The directory items are shown as icons including an
87 * icon name.
88 */
89 IconsView = 0,
90
91 /**
92 * The icon, the name and at least the size of the directory
93 * items are shown in a table. It is possible to add columns
94 * for date, group and permissions.
95 */
96 DetailsView = 1,
97
98 /**
99 * Each folder is shown in a separate column.
100 */
101 ColumnView = 2,
102 MaxModeEnum = ColumnView
103 };
104
105 /** Defines the sort order for the items of a directory. */
106 enum Sorting
107 {
108 SortByName = 0,
109 SortBySize,
110 SortByDate,
111 SortByPermissions,
112 SortByOwner,
113 SortByGroup,
114 SortByType,
115 SortByDestination,
116 SortByPath,
117 MaxSortingEnum = SortByPath
118 };
119
120 /**
121 * @param parent Parent widget of the view.
122 * @param url Specifies the content which should be shown.
123 * @param proxyModel Used proxy model which specifies the sorting. The
124 * model is not owned by the view and won't get
125 * deleted.
126 */
127 DolphinView(QWidget* parent,
128 const KUrl& url,
129 DolphinSortFilterProxyModel* proxyModel);
130
131 virtual ~DolphinView();
132
133 /**
134 * Returns the current active URL, where all actions are applied.
135 * The URL navigator is synchronized with this URL.
136 */
137 KUrl url() const;
138
139 /**
140 * Returns the root URL of the view, which is defined as the first
141 * visible path of DolphinView::url(). Usually the root URL is
142 * equal to DolphinView::url(), but in the case of the column view
143 * when 2 columns are shown, the root URL might be:
144 * /home/peter/Documents
145 * and DolphinView::url() might return
146 * /home/peter/Documents/Music/
147 */
148 KUrl rootUrl() const;
149
150 /**
151 * If \a active is true, the view will marked as active. The active
152 * view is defined as view where all actions are applied to.
153 */
154 void setActive(bool active);
155 bool isActive() const;
156
157 /**
158 * Changes the view mode for the current directory to \a mode.
159 * If the view properties should be remembered for each directory
160 * (GeneralSettings::globalViewProps() returns false), then the
161 * changed view mode will be stored automatically.
162 */
163 void setMode(Mode mode);
164 Mode mode() const;
165
166 /** See setShowPreview */
167 bool showPreview() const;
168
169 /** See setShowHiddenFiles */
170 bool showHiddenFiles() const;
171
172 /** See setCategorizedSorting */
173 bool categorizedSorting() const;
174
175 /**
176 * Returns true, if the categorized sorting is supported by the current
177 * used mode (see DolphinView::setMode()). Currently only DolphinView::IconsView
178 * supports categorizations. To check whether the categorized
179 * sorting is set, use DolphinView::categorizedSorting().
180 */
181 bool supportsCategorizedSorting() const;
182
183 /**
184 * Marks the items indicated by \p urls to get selected after the
185 * directory DolphinView::url() has been loaded. Note that nothing
186 * gets selected if no loading of a directory has been triggered
187 * by DolphinView::setUrl() or DolphinView::reload().
188 */
189 void markUrlsAsSelected(const QList<KUrl>& urls);
190
191 /**
192 * Returns the selected items. The list is empty if no item has been
193 * selected.
194 * @see DolphinView::selectedUrls()
195 */
196 KFileItemList selectedItems() const;
197
198 /**
199 * Returns the number of selected items (this is faster than
200 * invoking selectedItems().count()).
201 */
202 int selectedItemsCount() const;
203
204 QItemSelectionModel* selectionModel() const;
205
206 /**
207 * Sets the zoom level to \a level. It is assured that the used
208 * level is adjusted to be inside the range ZoomLevelInfo::minimumLevel() and
209 * ZoomLevelInfo::maximumLevel().
210 */
211 void setZoomLevel(int level);
212 int zoomLevel() const;
213
214 /**
215 * Returns true, if zooming in is possible. If false is returned,
216 * the maximum zooming level has been reached.
217 */
218 bool isZoomInPossible() const;
219
220 /**
221 * Returns true, if zooming out is possible. If false is returned,
222 * the minimum zooming level has been reached.
223 */
224 bool isZoomOutPossible() const;
225
226 /** Sets the sort order of the items inside a directory (see DolphinView::Sorting). */
227 void setSorting(Sorting sorting);
228
229 /** Returns the sort order of the items inside a directory (see DolphinView::Sorting). */
230 Sorting sorting() const;
231
232 /** Sets the sort order (Qt::Ascending or Qt::Descending) for the items. */
233 void setSortOrder(Qt::SortOrder order);
234
235 /** Returns the current used sort order (Qt::Ascending or Qt::Descending). */
236 Qt::SortOrder sortOrder() const;
237
238 /** Sets a separate sorting with folders first (true) or a mixed sorting of files and folders (false). */
239 void setSortFoldersFirst(bool foldersFirst);
240
241 /** Returns if files and folders are sorted separately or not. */
242 bool sortFoldersFirst() const;
243
244 /** Sets the additional information which should be shown for the items. */
245 void setAdditionalInfo(KFileItemDelegate::InformationList info);
246
247 /** Returns the additional information which should be shown for the items. */
248 KFileItemDelegate::InformationList additionalInfo() const;
249
250 /** Reloads the current directory. */
251 void reload();
252
253 void stopLoading();
254
255 /**
256 * Refreshes the view to get synchronized with the (updated) Dolphin settings.
257 * This method only needs to get invoked if the view settings for the Icons View,
258 * Details View or Columns View have been changed.
259 */
260 void refresh();
261
262 /**
263 * Filters the currently shown items by \a nameFilter. All items
264 * which contain the given filter string will be shown.
265 */
266 void setNameFilter(const QString& nameFilter);
267
268 /**
269 * Calculates the number of currently shown files into
270 * \a fileCount and the number of folders into \a folderCount.
271 * The size of all files is written into \a totalFileSize.
272 * It is recommend using this method instead of asking the
273 * directory lister or the model directly, as it takes
274 * filtering and hierarchical previews into account.
275 */
276 void calculateItemCount(int& fileCount, int& folderCount, KIO::filesize_t& totalFileSize) const;
277
278 /**
279 * Returns a textual representation of the state of the current
280 * folder or selected items, suitable for use in the status bar.
281 */
282 QString statusBarText() const;
283
284 /**
285 * Returns the version control actions that are provided for the items \p items.
286 * Usually the actions are presented in the context menu.
287 */
288 QList<QAction*> versionControlActions(const KFileItemList& items) const;
289
290 /**
291 * Updates the state of the 'Additional Information' actions in \a collection.
292 */
293 void updateAdditionalInfoActions(KActionCollection* collection);
294
295 /**
296 * Returns the state of the paste action:
297 * first is whether the action should be enabled
298 * second is the text for the action
299 */
300 QPair<bool, QString> pasteInfo() const;
301
302 /**
303 * If \a tabsForFiles is true, the signal tabRequested() will also
304 * emitted also for files. Per default tabs for files is disabled
305 * and hence the signal tabRequested() will only be emitted for
306 * directories.
307 */
308 void setTabsForFilesEnabled(bool tabsForFiles);
309 bool isTabsForFilesEnabled() const;
310
311 /**
312 * Returns true if the current view allows folders to be expanded,
313 * i.e. presents a hierarchical view to the user.
314 */
315 bool itemsExpandable() const;
316
317 /**
318 * Restores the view state (current item, contents position, details view expansion state)
319 */
320 void restoreState(QDataStream& stream);
321
322 /**
323 * Saves the view state (current item, contents position, details view expansion state)
324 */
325 void saveState(QDataStream& stream);
326
327 /**
328 * Returns all the items in the current view.
329 */
330 KFileItemList allItems() const;
331
332 public slots:
333 /**
334 * Changes the directory to \a url. If the current directory is equal to
335 * \a url, nothing will be done (use DolphinView::reload() instead).
336 */
337 void setUrl(const KUrl& url);
338
339 /**
340 * Selects all items.
341 * @see DolphinView::selectedItems()
342 */
343 void selectAll();
344
345 /**
346 * Inverts the current selection: selected items get unselected,
347 * unselected items get selected.
348 * @see DolphinView::selectedItems()
349 */
350 void invertSelection();
351
352 /** Returns true, if at least one item is selected. */
353 bool hasSelection() const;
354
355 void clearSelection();
356
357 /**
358 * Triggers the renaming of the currently selected items, where
359 * the user must input a new name for the items.
360 */
361 void renameSelectedItems();
362
363 /**
364 * Moves all selected items to the trash.
365 */
366 void trashSelectedItems();
367
368 /**
369 * Deletes all selected items.
370 */
371 void deleteSelectedItems();
372
373 /**
374 * Copies all selected items to the clipboard and marks
375 * the items as cut.
376 */
377 void cutSelectedItems();
378
379 /** Copies all selected items to the clipboard. */
380 void copySelectedItems();
381
382 /** Pastes the clipboard data to this view. */
383 void paste();
384
385 /**
386 * Pastes the clipboard data into the currently selected
387 * folder. If the current selection is not exactly one folder, no
388 * paste operation is done.
389 */
390 void pasteIntoFolder();
391
392 /**
393 * Turns on the file preview for the all files of the current directory,
394 * if \a show is true.
395 * If the view properties should be remembered for each directory
396 * (GeneralSettings::globalViewProps() returns false), then the
397 * preview setting will be stored automatically.
398 */
399 void setShowPreview(bool show);
400
401 /**
402 * Shows all hidden files of the current directory,
403 * if \a show is true.
404 * If the view properties should be remembered for each directory
405 * (GeneralSettings::globalViewProps() returns false), then the
406 * show hidden file setting will be stored automatically.
407 */
408 void setShowHiddenFiles(bool show);
409
410 /**
411 * Summarizes all sorted items by their category \a categorized
412 * is true.
413 * If the view properties should be remembered for each directory
414 * (GeneralSettings::globalViewProps() returns false), then the
415 * categorized sorting setting will be stored automatically.
416 */
417 void setCategorizedSorting(bool categorized);
418
419 signals:
420 /**
421 * Is emitted if the view has been activated by e. g. a mouse click.
422 */
423 void activated();
424
425 /** Is emitted if URL of the view has been changed to \a url. */
426 void urlChanged(const KUrl& url);
427
428 /**
429 * Is emitted when clicking on an item with the left mouse button.
430 */
431 void itemTriggered(const KFileItem& item);
432
433 /**
434 * Is emitted if a new tab should be opened for the URL \a url.
435 */
436 void tabRequested(const KUrl& url);
437
438 /**
439 * Is emitted if the view mode (IconsView, DetailsView,
440 * PreviewsView) has been changed.
441 */
442 void modeChanged();
443
444 /** Is emitted if the 'show preview' property has been changed. */
445 void showPreviewChanged();
446
447 /** Is emitted if the 'show hidden files' property has been changed. */
448 void showHiddenFilesChanged();
449
450 /** Is emitted if the 'categorized sorting' property has been changed. */
451 void categorizedSortingChanged();
452
453 /** Is emitted if the sorting by name, size or date has been changed. */
454 void sortingChanged(DolphinView::Sorting sorting);
455
456 /** Is emitted if the sort order (ascending or descending) has been changed. */
457 void sortOrderChanged(Qt::SortOrder order);
458
459 /** Is emitted if the sorting of files and folders (separate with folders first or mixed) has been changed. */
460 void sortFoldersFirstChanged(bool foldersFirst);
461
462 /** Is emitted if the additional information shown for this view has been changed. */
463 void additionalInfoChanged();
464
465 /** Is emitted if the zoom level has been changed by zooming in or out. */
466 void zoomLevelChanged(int level);
467
468 /**
469 * Is emitted if information of an item is requested to be shown e. g. in the panel.
470 * If item is null, no item information request is pending.
471 */
472 void requestItemInfo(const KFileItem& item);
473
474 /**
475 * Is emitted whenever the selection has been changed.
476 */
477 void selectionChanged(const KFileItemList& selection);
478
479 /**
480 * Is emitted if a context menu is requested for the item \a item,
481 * which is part of \a url. If the item is null, the context menu
482 * for the URL should be shown and the custom actions \a customActions
483 * will be added.
484 */
485 void requestContextMenu(const KFileItem& item,
486 const KUrl& url,
487 const QList<QAction*>& customActions);
488
489 /**
490 * Is emitted if an information message with the content \a msg
491 * should be shown.
492 */
493 void infoMessage(const QString& msg);
494
495 /**
496 * Is emitted if an error message with the content \a msg
497 * should be shown.
498 */
499 void errorMessage(const QString& msg);
500
501 /**
502 * Is emitted if an "operation completed" message with the content \a msg
503 * should be shown.
504 */
505 void operationCompletedMessage(const QString& msg);
506
507 /**
508 * Is emitted after DolphinView::setUrl() has been invoked and
509 * the path \a url is currently loaded. If this signal is emitted,
510 * it is assured that the view contains already the correct root
511 * URL and property settings.
512 */
513 void startedPathLoading(const KUrl& url);
514
515 /**
516 * Is emitted after the path triggered by DolphinView::setUrl()
517 * has been loaded.
518 */
519 void finishedPathLoading(const KUrl& url);
520
521 /**
522 * Emitted when KDirLister emits redirection.
523 * Testcase: fish://localhost
524 */
525 void redirection(const KUrl& oldUrl, const KUrl& newUrl);
526
527 protected:
528 /** @see QWidget::mouseReleaseEvent */
529 virtual void mouseReleaseEvent(QMouseEvent* event);
530 virtual bool eventFilter(QObject* watched, QEvent* event);
531
532 private slots:
533 /**
534 * Marks the view as active (DolphinView:isActive() will return true)
535 * and emits the 'activated' signal if it is not already active.
536 */
537 void activate();
538
539 /**
540 * If the item \a item is a directory, then this
541 * directory will be loaded. If the item is a file, the corresponding
542 * application will get started.
543 */
544 void triggerItem(const KFileItem& index);
545
546 /**
547 * Emits the signal \a selectionChanged() with a small delay. This is
548 * because getting all file items for the signal can be an expensive
549 * operation. Fast selection changes are collected in this case and
550 * the signal is emitted only after no selection change has been done
551 * within a small delay.
552 */
553 void slotSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
554
555 /**
556 * Is called by emitDelayedSelectionChangedSignal() and emits the
557 * signal \a selectionChanged() with all selected file items as parameter.
558 */
559 void emitSelectionChangedSignal();
560
561 /**
562 * Opens the context menu on position \a pos. The position
563 * is used to check whether the context menu is related to an
564 * item or to the viewport.
565 */
566 void openContextMenu(const QPoint& pos, const QList<QAction*>& customActions);
567
568 /**
569 * Drops dragged URLs to the destination path \a destPath. If
570 * the URLs are dropped above an item inside the destination path,
571 * the item is indicated by \a destItem.
572 */
573 void dropUrls(const KFileItem& destItem,
574 const KUrl& destPath,
575 QDropEvent* event);
576
577 /**
578 * Updates the view properties of the current URL to the
579 * sorting given by \a sorting.
580 */
581 void updateSorting(DolphinView::Sorting sorting);
582
583 /**
584 * Updates the view properties of the current URL to the
585 * sort order given by \a order.
586 */
587 void updateSortOrder(Qt::SortOrder order);
588
589 /**
590 * Updates the view properties of the current URL to the
591 * sorting of files and folders (separate with folders first or mixed) given by \a foldersFirst.
592 */
593 void updateSortFoldersFirst(bool foldersFirst);
594
595 /**
596 * Updates the view properties of the current URL to the
597 * additional information given by \a info.
598 */
599 void updateAdditionalInfo(const KFileItemDelegate::InformationList& info);
600
601 /**
602 * Updates the status bar to show hover information for the
603 * item \a item. If currently other items are selected,
604 * no hover information is shown.
605 * @see DolphinView::clearHoverInformation()
606 */
607 void showHoverInformation(const KFileItem& item);
608
609 /**
610 * Clears the hover information shown in the status bar.
611 * @see DolphinView::showHoverInformation().
612 */
613 void clearHoverInformation();
614
615 /**
616 * Indicates in the status bar that the delete operation
617 * of the job \a job has been finished.
618 */
619 void slotDeleteFileFinished(KJob* job);
620
621 /**
622 * Invoked when the directory lister has completed the loading of
623 * items. Assures that pasted items and renamed items get seleced.
624 */
625 void slotDirListerCompleted();
626
627 /**
628 * Invoked when the loading of the directory is finished.
629 * Restores the active item and the scroll position if possible.
630 */
631 void slotLoadingCompleted();
632
633 /**
634 * Is invoked when the KDirLister indicates refreshed items.
635 */
636 void slotRefreshItems();
637
638 /**
639 * Observes the item with the URL \a url. As soon as the directory
640 * model indicates that the item is available, the item will
641 * get selected and it is assure that the item stays visible.
642 *
643 * @see selectAndScrollToCreatedItem()
644 */
645 void observeCreatedItem(const KUrl& url);
646
647 /**
648 * Selects and scrolls to the item that got observed
649 * by observeCreatedItem().
650 */
651 void selectAndScrollToCreatedItem();
652
653 /**
654 * Called when a redirection happens.
655 * Testcase: fish://localhost
656 */
657 void slotRedirection(const KUrl& oldUrl, const KUrl& newUrl);
658
659 /**
660 * Restores the contents position, if history information about the old position is available.
661 */
662 void restoreContentsPosition();
663
664 private:
665 void loadDirectory(const KUrl& url, bool reload = false);
666
667 /**
668 * Applies the view properties which are defined by the current URL
669 * to the DolphinView properties.
670 */
671 void applyViewProperties();
672
673 /**
674 * Creates a new view representing the given view mode (DolphinView::mode()).
675 * The current view will get deleted.
676 */
677 void createView();
678
679 void deleteView();
680
681 /**
682 * Helper method for DolphinView::paste() and DolphinView::pasteIntoFolder().
683 * Pastes the clipboard data into the URL \a url.
684 */
685 void pasteToUrl(const KUrl& url);
686
687 /**
688 * Checks whether the current item view has the same zoom level
689 * as \a oldZoomLevel. If this is not the case, the zoom level
690 * of the controller is updated and a zoomLevelChanged() signal
691 * is emitted.
692 */
693 void updateZoomLevel(int oldZoomLevel);
694
695 /**
696 * Returns a list of URLs for all selected items. The list is
697 * simplified, so that when the URLs are part of different tree
698 * levels, only the parent is returned.
699 */
700 KUrl::List simplifiedSelectedUrls() const;
701
702 /**
703 * Returns the MIME data for all selected items.
704 */
705 QMimeData* selectionMimeData() const;
706
707 /**
708 * Is invoked after a paste operation or a drag & drop
709 * operation and adds the filenames of all URLs from \a mimeData to
710 * m_newFileNames. This allows to select all newly added
711 * items in slotDirListerCompleted().
712 */
713 void addNewFileNames(const QMimeData* mimeData);
714
715 private:
716 /**
717 * Abstracts the access to the different view implementations
718 * for icons-, details- and column-view.
719 */
720 class ViewAccessor
721 {
722 public:
723 ViewAccessor(DolphinSortFilterProxyModel* proxyModel);
724 ~ViewAccessor();
725
726 void createView(QWidget* parent,
727 DolphinViewController* dolphinViewController,
728 const ViewModeController* viewModeController,
729 Mode mode);
730 void deleteView();
731
732 /**
733 * Must be invoked before the URL has been changed and allows view implementations
734 * like the column view to create a new column.
735 */
736 void prepareUrlChange(const KUrl& url);
737
738 QAbstractItemView* itemView() const;
739 KFileItemDelegate* itemDelegate() const;
740
741 /**
742 * Returns the widget that should be added to the layout as target. Usually
743 * the item view itself is returned, but in the case of the column view
744 * a container widget is returned.
745 */
746 QWidget* layoutTarget() const;
747
748 KUrl rootUrl() const;
749
750 bool supportsCategorizedSorting() const;
751 bool itemsExpandable() const;
752 QSet<KUrl> expandedUrls() const;
753 const DolphinDetailsViewExpander* setExpandedUrls(const QSet<KUrl>& urlsToExpand);
754
755 /**
756 * Returns true, if a reloading of the items is required
757 * when the additional information properties have been changed
758 * by the user.
759 */
760 bool reloadOnAdditionalInfoChange() const;
761
762 DolphinModel* dirModel() const;
763 DolphinSortFilterProxyModel* proxyModel() const;
764 KDirLister* dirLister() const;
765
766 private:
767 DolphinIconsView* m_iconsView;
768 DolphinDetailsView* m_detailsView;
769 DolphinColumnViewContainer* m_columnsContainer;
770 DolphinSortFilterProxyModel* m_proxyModel;
771 QAbstractItemView* m_dragSource;
772 QPointer<DolphinDetailsViewExpander> m_detailsViewExpander;
773 };
774
775 bool m_active : 1;
776 bool m_showPreview : 1;
777 bool m_storedCategorizedSorting : 1;
778 bool m_tabsForFiles : 1;
779 bool m_isContextMenuOpen : 1; // TODO: workaround for Qt-issue 207192
780 bool m_assureVisibleCurrentIndex : 1;
781 bool m_expanderActive : 1;
782
783 Mode m_mode;
784
785 QVBoxLayout* m_topLayout;
786
787 DolphinViewController* m_dolphinViewController;
788 ViewModeController* m_viewModeController;
789 ViewAccessor m_viewAccessor;
790
791 QTimer* m_selectionChangedTimer;
792
793 KUrl m_rootUrl;
794 KUrl m_activeItemUrl;
795 QPoint m_restoredContentsPosition;
796 KUrl m_createdItemUrl; // URL for a new item that got created by the "Create New..." menu
797 KFileItemList m_selectedItems; // this is used for making the View to remember selections after F5
798
799 /**
800 * Remembers the filenames that have been added by a paste operation
801 * or a drag & drop operation. Allows to select the items in
802 * slotDirListerCompleted().
803 */
804 QSet<QString> m_newFileNames;
805
806 // For unit tests
807 friend class TestBase;
808 };
809
810 /// Allow using DolphinView::Mode in QVariant
811 Q_DECLARE_METATYPE(DolphinView::Mode)
812
813 #endif // DOLPHINVIEW_H