MCPcopy Create free account
hub / github.com/TheAssassin/AppImageLauncher / Mount

Class Mount

src/shared/shared.cpp:276–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276class Mount {
277private:
278 QString device;
279 QString mountPoint;
280 QString fsType;
281 QString mountOptions;
282
283public:
284 Mount(QString device, QString mountPoint, QString fsType, QString mountOptions) :
285 device(std::move(device)),
286 mountPoint(std::move(mountPoint)),
287 fsType(std::move(fsType)),
288 mountOptions(std::move(
289 mountOptions)) {}
290
291 Mount(const Mount& other) = default;
292
293 Mount& operator=(const Mount& other) = default;
294
295public:
296 const QString& getDevice() const {
297 return device;
298 }
299
300 const QString& getMountPoint() const {
301 return mountPoint;
302 }
303
304 const QString& getFsType() const {
305 return fsType;
306 }
307
308 const QString& getMountOptions() const {
309 return mountOptions;
310 }
311};
312
313QList<Mount> listMounts() {
314 QList<Mount> mountedDirectories;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected