Solid

ifaces/networkshare.h
1/*
2 SPDX-FileCopyrightText: 2011 Mario Bensi <mbensi@ipsquad.net>
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
13namespace Solid
14{
15namespace Ifaces
16{
17/**
18 * NetworkShare interface.
19 *
20 * a NetworkShare interface is used to determine the type of
21 * network access.
22 */
23class NetworkShare : virtual public DeviceInterface
24{
25public:
26 /**
27 * Destroys a NetworkShare object.
28 */
29 ~NetworkShare() override;
30
31 /**
32 * Retrieves the type of network
33 *
34 * @return the type of network
35 */
37
38 /**
39 * Retrieves the url of network share
40 *
41 * @return the url of network share
42 */
43 virtual QUrl url() const = 0;
44};
45}
46}
47
48Q_DECLARE_INTERFACE(Solid::Ifaces::NetworkShare, "org.kde.Solid.Ifaces.NetworkShare/0.1")
49
50#endif
Base interface of all the device interfaces.
NetworkShare interface.
~NetworkShare() override
Destroys a NetworkShare object.
virtual QUrl url() const =0
Retrieves the url of network share.
virtual Solid::NetworkShare::ShareType type() const =0
Retrieves the type of network.
ShareType
This enum type defines the type of networkShare device can be.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.