Solid

udisks2.h
1/*
2 SPDX-FileCopyrightText: 2012 Lukáš Tinkl <ltinkl@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef SOLID_BACKENDS_UDISKS2_H
8#define SOLID_BACKENDS_UDISKS2_H
9
10#include <QCoreApplication>
11#include <QDBusAbstractInterface>
12#include <QDBusObjectPath>
13#include <QDBusPendingReply>
14#include <QDBusReply>
15#include <QList>
16#include <QMap>
17#include <QMetaType>
18#include <QPointer>
19#include <QTimer>
20#include <QVariant>
21
23Q_DECLARE_METATYPE(VariantMapMap)
24
26Q_DECLARE_METATYPE(DBUSManagerStruct)
27
28// clang-format off
29
30/* UDisks2 */
31#define UD2_DBUS_SERVICE "org.freedesktop.UDisks2"
32#define UD2_DBUS_PATH "/org/freedesktop/UDisks2"
33#define UD2_UDI_DISKS_PREFIX "/org/freedesktop/UDisks2"
34#define UD2_DBUS_PATH_MANAGER "/org/freedesktop/UDisks2/Manager"
35#define UD2_DBUS_PATH_DRIVES "/org/freedesktop/UDisks2/drives"
36#define UD2_DBUS_PATH_JOBS "/org/freedesktop/UDisks2/jobs/"
37#define UD2_DBUS_PATH_BLOCKDEVICES "/org/freedesktop/UDisks2/block_devices"
38#define DBUS_INTERFACE_PROPS "org.freedesktop.DBus.Properties"
39#define DBUS_INTERFACE_INTROSPECT "org.freedesktop.DBus.Introspectable"
40#define DBUS_INTERFACE_MANAGER "org.freedesktop.DBus.ObjectManager"
41#define UD2_DBUS_INTERFACE_BLOCK "org.freedesktop.UDisks2.Block"
42#define UD2_DBUS_INTERFACE_DRIVE "org.freedesktop.UDisks2.Drive"
43#define UD2_DBUS_INTERFACE_PARTITION "org.freedesktop.UDisks2.Partition"
44#define UD2_DBUS_INTERFACE_PARTITIONTABLE "org.freedesktop.UDisks2.PartitionTable"
45#define UD2_DBUS_INTERFACE_FILESYSTEM "org.freedesktop.UDisks2.Filesystem"
46#define UD2_DBUS_INTERFACE_ENCRYPTED "org.freedesktop.UDisks2.Encrypted"
47#define UD2_DBUS_INTERFACE_SWAP "org.freedesktop.UDisks2.Swapspace"
48#define UD2_DBUS_INTERFACE_LOOP "org.freedesktop.UDisks2.Loop"
49
50/* errors */
51#define UD2_ERROR_UNAUTHORIZED "org.freedesktop.PolicyKit.Error.NotAuthorized"
52#define UD2_ERROR_BUSY "org.freedesktop.UDisks2.Error.DeviceBusy"
53#define UD2_ERROR_FAILED "org.freedesktop.UDisks2.Error.Failed"
54#define UD2_ERROR_CANCELED "org.freedesktop.UDisks2.Error.Cancelled"
55#define UD2_ERROR_INVALID_OPTION "org.freedesktop.UDisks2.Error.OptionNotPermitted"
56#define UD2_ERROR_MISSING_DRIVER "org.freedesktop.UDisks2.Error.NotSupported"
57
58#define UD2_ERROR_ALREADY_MOUNTED "org.freedesktop.UDisks2.Error.AlreadyMounted"
59#define UD2_ERROR_NOT_MOUNTED "org.freedesktop.UDisks2.Error.NotMounted"
60#define UD2_ERROR_MOUNTED_BY_OTHER_USER "org.freedesktop.UDisks2.Error.MountedByOtherUser"
61#define UD2_ERROR_ALREADY_UNMOUNTING "org.freedesktop.UDisks2.Error.AlreadyUnmounting"
62#define UD2_ERROR_TIMED_OUT "org.freedesktop.UDisks2.Error.Timedout"
63#define UD2_ERROR_WOULD_WAKEUP "org.freedesktop.UDisks2.Error.WouldWakeup"
64#define UD2_ERROR_ALREADY_CANCELLED "org.freedesktop.UDisks2.Error.AlreadyCancelled"
65
66#define UD2_ERROR_NOT_AUTHORIZED "org.freedesktop.UDisks2.Error.NotAuthorized"
67#define UD2_ERROR_NOT_AUTHORIZED_CAN_OBTAIN "org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain"
68#define UD2_ERROR_NOT_AUTHORIZED_DISMISSED "org.freedesktop.UDisks2.Error.NotAuthorizedDismissed"
69
70#endif // SOLID_BACKENDS_UDISKS2_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.