Solid

frontend/block.cpp
1/*
2 SPDX-FileCopyrightText: 2006-2007 Kevin Ottens <ervin@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "block.h"
8#include "block_p.h"
9
10#include "soliddefs_p.h"
11#include <solid/devices/ifaces/block.h>
12
13Solid::Block::Block(QObject *backendObject)
14 : DeviceInterface(*new BlockPrivate(), backendObject)
15{
16}
17
21
23{
24 Q_D(const Block);
25 return_SOLID_CALL(Ifaces::Block *, d->backendObject(), 0, deviceMajor());
26}
27
29{
30 Q_D(const Block);
31 return_SOLID_CALL(Ifaces::Block *, d->backendObject(), 0, deviceMinor());
32}
33
34QString Solid::Block::device() const
35{
36 Q_D(const Block);
37 return_SOLID_CALL(Ifaces::Block *, d->backendObject(), QString(), device());
38}
39
40#include "moc_block.cpp"
This device interface is available on block devices.
~Block() override
Destroys a Block object.
int deviceMinor() const
Retrieves the minor number of the node file to interact with the device.
int deviceMajor() const
Retrieves the major number of the node file to interact with the device.
This device interface is available on block devices.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.