BluezQt 5.109.0
obexfiletransferentry.h
1/*
2 * BluezQt - Asynchronous BlueZ wrapper library
3 *
4 * SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef BLUEZQT_OBEXFILETRANSFERENTRY_H
10#define BLUEZQT_OBEXFILETRANSFERENTRY_H
11
12#include <QSharedPointer>
13#include <QString>
14
15#include "bluezqt_export.h"
16
17namespace BluezQt
18{
26class BLUEZQT_EXPORT ObexFileTransferEntry
27{
28public:
30 enum Type {
37 };
38
43
48
55
62
70 bool isValid() const;
71
77 QString name() const;
78
84 QString label() const;
85
93 Type type() const;
94
102 quint64 size() const;
103
109 QString permissions() const;
110
116 QString memoryType() const;
117
123 QDateTime modificationTime() const;
124
125private:
126 BLUEZQT_NO_EXPORT explicit ObexFileTransferEntry(const QVariantMap &properties);
127
128 QSharedPointer<class ObexFileTransferEntryPrivate> d;
129
130 friend class PendingCallPrivate;
131};
132
133} // namespace BluezQt
134
135Q_DECLARE_METATYPE(BluezQt::ObexFileTransferEntry)
136
137#endif // BLUEZQT_OBEXFILETRANSFERENTRY_H
OBEX file transfer entry.
Definition obexfiletransferentry.h:27
virtual ~ObexFileTransferEntry()
Destroys an ObexFileTransferEntry object.
ObexFileTransferEntry(const ObexFileTransferEntry &other)
Copy constructor.
QString label() const
Returns a label of the entry.
ObexFileTransferEntry()
Creates a new invalid ObexFileTransferEntry object.
QString name() const
Returns a name of the entry.
ObexFileTransferEntry & operator=(const ObexFileTransferEntry &other)
Copy assignment operator.
Type
Type of entry.
Definition obexfiletransferentry.h:30
@ Folder
Indicates that the entry is a folder.
Definition obexfiletransferentry.h:34
@ Invalid
Indicates that the entry is invalid.
Definition obexfiletransferentry.h:36
@ File
Indicates that the entry is a file.
Definition obexfiletransferentry.h:32
QDateTime modificationTime() const
Returns a modification time of the entry.
bool isValid() const
Returns whether the entry is valid.
Type type() const
Returns a type of the entry.
quint64 size() const
Returns a size of the entry.
QString memoryType() const
Returns a memory type where the entry is stored.
QString permissions() const
Returns a permissions of the entry.