Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F37528797
mimetreeparserplugin.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
844 B
Subscribers
None
mimetreeparserplugin.cpp
View Options
// SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
// SPDX-License-Identifier: LGPL-2.0-or-later
#include
"mimetreeparserplugin.h"
#include
<MimeTreeParserCore/AttachmentModel>
#include
<MimeTreeParserCore/MessageParser>
#include
<MimeTreeParserCore/PartModel>
#include
<QQmlEngine>
void
MimeTreeParserPlugin
::
registerTypes
(
const
char
*
uri
)
{
Q_ASSERT
(
uri
==
QByteArray
(
"org.kde.pim.mimetreeparser"
));
qmlRegisterModule
(
uri
,
1
,
0
);
qmlRegisterType
<
MessageParser
>
(
uri
,
1
,
0
,
"MessageParser"
);
qRegisterMetaType
<
PartModel
::
Types
>
(
"PartModel::Types"
);
qmlRegisterUncreatableType
<
PartModel
>
(
uri
,
1
,
0
,
"PartModel"
,
QStringLiteral
(
"not instanciated"
));
qmlRegisterUncreatableType
<
AttachmentModel
>
(
uri
,
1
,
0
,
"AttachmentModel"
,
QStringLiteral
(
"not instanciated"
));
}
#include
"moc_mimetreeparserplugin.cpp"
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Mar 13, 9:37 AM (1 d, 17 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
14/ba/2c3b663514819e25588aa4032f4c
Attached To
rMTP MIME Tree Parser
Event Timeline
Log In to Comment