#include <QPushButton>
#include <QWidget>
-#if HAVE_KACTIVITIES
-namespace KActivities
+namespace Admin
{
-class ResourceInstance;
+class Bar;
}
-#endif
-
class FilterBar;
class KMessageWidget;
class QAction;
* The URL navigator is synchronized with this URL.
*/
QUrl url() const;
+ KFileItem rootItem() const;
/**
* If \a active is true, the view container will marked as active. The active
*/
void readSettings();
- /** Returns true, if the filter bar is visible. */
+ /** @returns true, if the filter bar is visible.
+ * false, if it is hidden or currently animating towards a hidden state. */
bool isFilterBarVisible() const;
/** Returns true if the search mode is enabled. */
*/
void slotItemsActivated(const KFileItemList &items);
+ /**
+ * Handles middle click of file. It opens the file passed using the second application associated with the file's mimetype.
+ */
+ void slotfileMiddleClickActivated(const KFileItem &item);
+
/**
* Shows the information for the item \a item inside the statusbar. If the
* item is null, the default statusbar information is shown.
*/
void showItemInfo(const KFileItem &item);
+ /**
+ * Sets the Admin::Bar visible or invisible based on whether \a url is an admin url.
+ */
+ void updateAdminBarVisibility(const QUrl &url);
+
void closeFilterBar();
/**
* Gets the search URL from the searchbox and starts searching.
*/
void startSearching();
+ void openSearchBox();
void closeSearchBox();
/**
DolphinSearchBox *m_searchBox;
bool m_searchModeEnabled;
+ /// A bar shown at the top of the view to signify that the view is currently viewed and acted on with elevated privileges.
+ Admin::Bar *m_adminBar;
+
KMessageWidget *m_messageWidget;
/// A bar shown at the top of the view to signify that selection mode is currently active.
* connected to this ViewContainer.
*/
std::unique_ptr<DolphinUrlNavigator::VisualState> m_urlNavigatorVisualState;
-
-#if HAVE_KACTIVITIES
-private:
- KActivities::ResourceInstance *m_activityResourceInstance;
-#endif
};
#endif // DOLPHINVIEWCONTAINER_H