Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
c6313cb2
Commit
c6313cb2
authored
Aug 31, 2021
by
Jonathan Marten
Browse files
man: General tidy up, const'ify, iterators -> for
parent
b1a32418
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
man/kio_man.cpp
View file @
c6313cb2
This diff is collapsed.
Click to expand it.
man/kio_man.h
View file @
c6313cb2
...
...
@@ -7,10 +7,7 @@
#ifndef __kio_man_h__
#define __kio_man_h__
#include
<QBuffer>
#include
<QTextStream>
#include
<kio/global.h>
#include
<kio/slavebase.h>
...
...
@@ -54,20 +51,21 @@ private:
QStringList
buildSectionList
(
const
QStringList
&
dirs
)
const
;
void
constructPath
(
QStringList
&
constr_path
,
QStringList
constr_catmanpath
);
void
findManPagesInSection
(
const
QString
&
dir
,
const
QString
&
title
,
bool
full_path
,
QStringList
&
list
);
void
outputHeader
(
QTextStream
&
os
,
const
QString
&
header
,
const
QString
&
title
=
QString
());
bool
getProgramPath
();
private:
static
MANProtocol
*
_self
;
static
MANProtocol
*
s
_self
;
QByteArray
lastdir
;
void
findManPagesInSection
(
const
QString
&
dir
,
const
QString
&
title
,
bool
full_path
,
QStringList
&
list
);
QStringList
m_manpath
;
///< Path of man directories
QStringList
m_mandbpath
;
///< Path of catman directories
QStringList
section
_n
ames
;
QStringList
m_
section
N
ames
;
QString
mySgml2RoffPath
;
bool
getProgramPath
();
QBuffer
m_outputBuffer
;
///< Buffer for the output
QByteArray
m_manCSSFile
;
///< Path to kio_man.css
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment