LeechCraft
0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
asdomdocument.cpp
Go to the documentation of this file.
1
/**********************************************************************
2
* LeechCraft - modular cross-platform feature rich internet client.
3
* Copyright (C) 2006-2014 Georg Rudoy
4
*
5
* Distributed under the Boost Software License, Version 1.0.
6
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7
**********************************************************************/
8
9
#include "
asdomdocument.h
"
10
#include <QtDebug>
11
12
namespace
LC::Util
13
{
14
AsDomDocument::AsDomDocument
(
const
QByteArray& data,
const
QString& errorMessage,
const
std::source_location&
loc
)
15
: ErrorMessage_ { errorMessage }
16
{
17
if
(!Doc_.setContent (data))
18
qWarning () <<
loc
.file_name () <<
":"
<<
loc
.line () <<
":"
<<
loc
.function_name () <<
"failed to parse"
<< data;
19
}
20
21
bool
AsDomDocument::await_ready
()
const
22
{
23
return
!Doc_.isNull ();
24
}
25
26
QDomDocument
AsDomDocument::await_resume
()
const
27
{
28
return
Doc_;
29
}
30
}
LC::Util::AsDomDocument::await_ready
bool await_ready() const
Definition:
asdomdocument.cpp:21
LC::loc
std::source_location loc
Definition:
qobjectrefcast.h:35
asdomdocument.h
LC::Util::AsDomDocument::await_resume
QDomDocument await_resume() const
Definition:
asdomdocument.cpp:26
LC::Util::AsDomDocument::AsDomDocument
AsDomDocument(const QByteArray &data, const QString &errorMessage, const std::source_location &loc=std::source_location::current())
Definition:
asdomdocument.cpp:14
LC::Util
Definition:
icoreproxy.h:33
src
util
threads
coro
asdomdocument.cpp
Generated by
1.8.14