Solid

ifaces/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_IFACES_NETWORKSHARE_H
8 #define SOLID_IFACES_NETWORKSHARE_H
9 
10 #include <solid/devices/ifaces/deviceinterface.h>
11 #include <solid/networkshare.h>
12 
13 namespace Solid
14 {
15 namespace Ifaces
16 {
23 class NetworkShare : virtual public DeviceInterface
24 {
25 public:
29  virtual ~NetworkShare();
30 
36  virtual Solid::NetworkShare::ShareType type() const = 0;
37 
43  virtual QUrl url() const = 0;
44 };
45 }
46 }
47 
48 Q_DECLARE_INTERFACE(Solid::Ifaces::NetworkShare, "org.kde.Solid.Ifaces.NetworkShare/0.1")
49 
50 #endif
ShareType
This enum type defines the type of networkShare device can be.
virtual Solid::NetworkShare::ShareType type() const =0
Retrieves the type of network.
Base interface of all the device interfaces.
virtual ~NetworkShare()
Destroys a NetworkShare object.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
virtual QUrl url() const =0
Retrieves the url of network share.
NetworkShare interface.
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.