aboutsummaryrefslogtreecommitdiff
path: root/src/core/kdesktopfile.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-04-18 21:46:56 +0200
committerDavid Faure <faure@kde.org>2021-04-18 21:05:32 +0000
commit533ff88a5430655f3b969b3e1a86ac71064c57ef (patch)
tree059f62cbe26d443d60f75a93cf19b9aee7d19786 /src/core/kdesktopfile.h
parent6a4b1b412bb4f02b509902b5a273f83303f79fcb (diff)
downloadkconfig-533ff88a5430655f3b969b3e1a86ac71064c57ef.tar.gz
kconfig-533ff88a5430655f3b969b3e1a86ac71064c57ef.tar.bz2
Deprecate KDesktopFile::readDevice()
Since the FSDevice .desktop template hasn't been installed for a long time, this method in KDesktopFile hasn't been useful. The whole FSDesktop concept seems to be redundant nowadays, since CDRom and Floppy drives have been replaced by USB sticks. See this KF6 taks for more details: https://phabricator.kde.org/T14295#253759
Diffstat (limited to 'src/core/kdesktopfile.h')
-rw-r--r--src/core/kdesktopfile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/kdesktopfile.h b/src/core/kdesktopfile.h
index c98bf1bb..25420083 100644
--- a/src/core/kdesktopfile.h
+++ b/src/core/kdesktopfile.h
@@ -129,11 +129,16 @@ public:
*/
QString readPath() const;
+#if KCONFIGCORE_ENABLE_DEPRECATED_SINCE(5, 82)
/**
* Returns the value of the "Dev=" entry.
* @return the device or QString() if not specified
+ * @deprecated since 5.82, for lack of usage, the FSDevice .desktop template
+ * hadn't been installed for a long time.
*/
+ KCONFIGCORE_DEPRECATED_VERSION(5, 82, "For lack of usage.")
QString readDevice() const;
+#endif
/**
* Returns the value of the "URL=" entry.