Okular

js_data.cpp
1/*
2 SPDX-FileCopyrightText: 2008 Pino Toscano <pino@kde.org>
3 SPDX-FileCopyrightText: 2008 Harri Porten <porten@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#include "js_data_p.h"
9
10#include <QDateTime>
11
12#include "../document.h"
13#include "js_display_p.h"
14
15using namespace Okular;
16
17QDateTime JSData::creationDate() const
18{
19 return m_file->creationDate();
20}
21
22QString JSData::description() const
23{
24 return m_file->description();
25}
26
27QString JSData::MIMEType() const
28{
29 return QLatin1String("");
30}
31
32QDateTime JSData::modDate() const
33{
34 return m_file->modificationDate();
35}
36
37QString JSData::name() const
38{
39 return m_file->name();
40}
41
42QString JSData::path() const
43{
44 return QLatin1String("");
45}
46
47int JSData::size() const
48{
49 return m_file->size();
50}
51
52JSData::JSData(EmbeddedFile *f, QObject *parent)
53 : QObject(parent)
54 , m_file(f)
55{
56}
57
58JSData::~JSData() = default;
An embedded file into the document.
Definition document.h:1555
global.h
Definition action.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.