Changeset View
Changeset View
Standalone View
Standalone View
krusader/GUI/mediabutton.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 47 | public slots: | |||
---|---|---|---|---|---|
56 | void updateIcon(const QString &mountPoint); | 56 | void updateIcon(const QString &mountPoint); | ||
57 | 57 | | |||
58 | signals: | 58 | signals: | ||
59 | void openUrl(const QUrl&); | 59 | void openUrl(const QUrl&); | ||
60 | void newTab(const QUrl&); | 60 | void newTab(const QUrl&); | ||
61 | void aboutToShow(); | 61 | void aboutToShow(); | ||
62 | 62 | | |||
63 | protected: | 63 | protected: | ||
64 | bool eventFilter(QObject *o, QEvent *e) Q_DECL_OVERRIDE; | 64 | bool eventFilter(QObject *o, QEvent *e) override; | ||
65 | bool getNameAndIcon(Solid::Device &, QString &, QIcon &); | 65 | bool getNameAndIcon(Solid::Device &, QString &, QIcon &); | ||
66 | 66 | | |||
67 | private: | 67 | private: | ||
68 | void createMediaList(); | 68 | void createMediaList(); | ||
69 | void toggleMount(const QString& udi); | 69 | void toggleMount(const QString& udi); | ||
70 | void getStatus(const QString& udi, bool &mounted, QString *mountPointOut = nullptr, bool *ejectableOut = nullptr); | 70 | void getStatus(const QString& udi, bool &mounted, QString *mountPointOut = nullptr, bool *ejectableOut = nullptr); | ||
71 | void mount(const QString&, bool open = false, bool newtab = false); | 71 | void mount(const QString&, bool open = false, bool newtab = false); | ||
72 | void umount(const QString&); | 72 | void umount(const QString&); | ||
Show All 21 Lines |