Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35416818
iodevicelogger.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
iodevicelogger.h
View Options
/* -*- mode: c++; c-basic-offset:4 -*-
iodevicelogger.h
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __KLEOPATRA_IODEVICELOGGER_H__
#define __KLEOPATRA_IODEVICELOGGER_H__
#include
<QIODevice>
#include
<utils/pimpl_ptr.h>
#include
<memory>
namespace
Kleo
{
class
IODeviceLogger
:
public
QIODevice
{
Q_OBJECT
public
:
explicit
IODeviceLogger
(
const
std
::
shared_ptr
<
QIODevice
>
&
iod
,
QObject
*
parent
=
nullptr
);
~
IODeviceLogger
()
override
;
void
setWriteLogDevice
(
const
std
::
shared_ptr
<
QIODevice
>
&
dev
);
void
setReadLogDevice
(
const
std
::
shared_ptr
<
QIODevice
>
&
dev
);
bool
atEnd
()
const
override
;
qint64
bytesAvailable
()
const
override
;
qint64
bytesToWrite
()
const
override
;
bool
canReadLine
()
const
override
;
void
close
()
override
;
bool
isSequential
()
const
override
;
bool
open
(
OpenMode
mode
)
override
;
qint64
pos
()
const
override
;
bool
reset
()
override
;
bool
seek
(
qint64
pos
)
override
;
qint64
size
()
const
override
;
bool
waitForBytesWritten
(
int
msecs
)
override
;
bool
waitForReadyRead
(
int
msecs
)
override
;
protected
:
qint64
readData
(
char
*
data
,
qint64
maxSize
)
override
;
qint64
writeData
(
const
char
*
data
,
qint64
maxSize
)
override
;
qint64
readLineData
(
char
*
data
,
qint64
maxSize
)
override
;
private
:
class
Private
;
kdtools
::
pimpl_ptr
<
Private
>
d
;
};
}
#endif
// __KLEOPATRA_IODEVICELOGGER_H__
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Feb 8, 12:59 AM (1 d, 15 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
32/26/3eb2c760fcd3290cca03d09cb51a
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment