| 274 | } |
| 275 | |
| 276 | class Mount { |
| 277 | private: |
| 278 | QString device; |
| 279 | QString mountPoint; |
| 280 | QString fsType; |
| 281 | QString mountOptions; |
| 282 | |
| 283 | public: |
| 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 | |
| 295 | public: |
| 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 | |
| 313 | QList<Mount> listMounts() { |
| 314 | QList<Mount> mountedDirectories; |
nothing calls this directly
no outgoing calls
no test coverage detected