File indexing completed on 2024-05-12 04:01:52
0001 /* 0002 SPDX-FileCopyrightText: 2011 Mario Bensi <mbensi@ipsquad.net> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef SOLID_IFACES_NETWORKSHARE_H 0008 #define SOLID_IFACES_NETWORKSHARE_H 0009 0010 #include <solid/devices/ifaces/deviceinterface.h> 0011 #include <solid/networkshare.h> 0012 0013 namespace Solid 0014 { 0015 namespace Ifaces 0016 { 0017 /** 0018 * NetworkShare interface. 0019 * 0020 * a NetworkShare interface is used to determine the type of 0021 * network access. 0022 */ 0023 class NetworkShare : virtual public DeviceInterface 0024 { 0025 public: 0026 /** 0027 * Destroys a NetworkShare object. 0028 */ 0029 ~NetworkShare() override; 0030 0031 /** 0032 * Retrieves the type of network 0033 * 0034 * @return the type of network 0035 */ 0036 virtual Solid::NetworkShare::ShareType type() const = 0; 0037 0038 /** 0039 * Retrieves the url of network share 0040 * 0041 * @return the url of network share 0042 */ 0043 virtual QUrl url() const = 0; 0044 }; 0045 } 0046 } 0047 0048 Q_DECLARE_INTERFACE(Solid::Ifaces::NetworkShare, "org.kde.Solid.Ifaces.NetworkShare/0.1") 0049 0050 #endif