Changeset View
Changeset View
Standalone View
Standalone View
src/server/utils.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 92 | } else { | |||
---|---|---|---|---|---|
94 | Q_ASSERT(false); | 94 | Q_ASSERT(false); | ||
95 | return QDateTime(); | 95 | return QDateTime(); | ||
96 | } | 96 | } | ||
97 | } | 97 | } | ||
98 | 98 | | |||
99 | /** | 99 | /** | ||
100 | * Returns the socket @p directory that is passed to this method or the one | 100 | * Returns the socket @p directory that is passed to this method or the one | ||
101 | * the user has overwritten via the config file. | 101 | * the user has overwritten via the config file. | ||
102 | * The passed @p fnLengthHint will also ensure the absolute file path length of the | ||||
103 | * directory + separator + hint would not overflow the system limitation. | ||||
102 | */ | 104 | */ | ||
103 | QString preferredSocketDirectory(const QString &directory); | 105 | QString preferredSocketDirectory(const QString &directory, int fnLengthHint = -1); | ||
104 | 106 | | |||
105 | /** | 107 | /** | ||
106 | * Returns name of filesystem that @p directory is stored on. This | 108 | * Returns name of filesystem that @p directory is stored on. This | ||
107 | * only works on Linux and returns empty string on other platforms or when it's | 109 | * only works on Linux and returns empty string on other platforms or when it's | ||
108 | * unable to detect the filesystem. | 110 | * unable to detect the filesystem. | ||
109 | */ | 111 | */ | ||
110 | QString getDirectoryFileSystem(const QString &directory); | 112 | QString getDirectoryFileSystem(const QString &directory); | ||
111 | 113 | | |||
Show All 14 Lines |