Solid

frontend/networkshare.h
1 /*
2  SPDX-FileCopyrightText: 2011 Mario Bensi <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef SOLID_NETWORKSHARE_H
8 #define SOLID_NETWORKSHARE_H
9 
10 #include <solid/solid_export.h>
11 
12 #include <solid/deviceinterface.h>
13 
14 #include <QUrl>
15 
16 namespace Solid
17 {
18 class Device;
19 class NetworkSharePrivate;
20 
28 class SOLID_EXPORT NetworkShare : public DeviceInterface
29 {
30  Q_OBJECT
31  Q_PROPERTY(ShareType type READ type)
32  Q_PROPERTY(QUrl url READ url)
33  Q_DECLARE_PRIVATE(NetworkShare)
34  friend class Device;
35 
36 private:
45  explicit NetworkShare(QObject *backendObject);
46 
47 public:
51  virtual ~NetworkShare();
52 
61  enum ShareType { Unknown, Nfs, Cifs };
62  Q_ENUM(ShareType)
63 
64 
70  static Type deviceInterfaceType()
71  {
72  return DeviceInterface::NetworkShare;
73  }
74 
80  ShareType type() const;
81 
87  QUrl url() const;
88 
89 };
90 }
91 
92 #endif
ShareType
This enum type defines the type of networkShare device can be.
This class allows applications to deal with devices available in the underlying system.
Base class of all the device interfaces.
Type
This enum type defines the type of device interface that a Device can have.
NetworkShare interface.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 22 2020 22:50:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.