rllib
1
lib
rlhtmldir.h
Go to the documentation of this file.
1
/***************************************************************************
2
rlhtmldir.h - description
3
-------------------
4
begin : Thu Jul 30 2015
5
copyright : (C) Lehrig Software Enigineering
6
email : lehrig@t-online.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This library is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13
* published by the Free Software Foundation *
14
* *
15
***************************************************************************/
16
#ifndef _RL_HTMLDIR_H_
17
#define _RL_HTMLDIR_H_
18
19
#include "
rlhtml.h
"
20
#include "
rlspreadsheet.h
"
21
25
class
rlHtmlDir
:
public
rlHtml
26
{
27
public
:
28
enum
29
{
30
list_files_and_directories
= 1,
31
list_directories_only
= 2,
32
list_files_only
= 3
33
}
WHAT_TO_LIST
;
34
35
rlHtmlDir
();
36
virtual
~rlHtmlDir
();
37
41
int
cd
(
const
char
*dir,
int
is_initial_dir=0);
42
46
const
char
*
getHtml
(
int
generate_html_header_and_trailer=1);
47
52
int
getFilenames
(
rlSpreadsheetRow
*row);
53
54
rlString
initialPath
;
// initial path
55
rlString
currentPath
;
// current path
56
rlString
pattern
;
// search pattern for rlfind, default *
57
int
recursive
;
// 0|1
58
int
list_what
;
// enum WHAT_TO_LIST
59
int
hide_hidden_files
;
// 0|1
60
rlString
textHome
;
// default Home:
61
rlString
textPath
;
// default Path:
62
rlString
textrlHtmlDirCSS
;
// default rlhtml.css
63
64
rlString
startHtml
;
// default html is empty
65
rlString
endHtml
;
// default html is empty
66
private
:
67
rlString
html
;
// header + startHtml + rlfind_results + endHtml + trailer
68
};
69
70
#endif
rlHtmlDir::textHome
rlString textHome
Definition:
rlhtmldir.h:60
rlHtmlDir::WHAT_TO_LIST
enum rlHtmlDir::@3 WHAT_TO_LIST
rlHtmlDir::hide_hidden_files
int hide_hidden_files
Definition:
rlhtmldir.h:59
rlHtmlDir::pattern
rlString pattern
Definition:
rlhtmldir.h:56
rlHtmlDir::rlHtmlDir
rlHtmlDir()
Definition:
rlhtmldir.cpp:19
rlHtmlDir::endHtml
rlString endHtml
Definition:
rlhtmldir.h:65
rlHtmlDir::cd
int cd(const char *dir, int is_initial_dir=0)
Definition:
rlhtmldir.cpp:37
rlHtmlDir::startHtml
rlString startHtml
Definition:
rlhtmldir.h:64
rlHtmlDir::getFilenames
int getFilenames(rlSpreadsheetRow *row)
Definition:
rlhtmldir.cpp:177
rlHtmlDir::textPath
rlString textPath
Definition:
rlhtmldir.h:61
rlHtmlDir
Definition:
rlhtmldir.h:25
rlhtml.h
rlHtmlDir::list_files_only
Definition:
rlhtmldir.h:32
rlHtmlDir::list_what
int list_what
Definition:
rlhtmldir.h:58
rlSpreadsheetRow
Definition:
rlspreadsheet.h:44
rlspreadsheet.h
rlHtmlDir::list_files_and_directories
Definition:
rlhtmldir.h:30
rlHtmlDir::getHtml
const char * getHtml(int generate_html_header_and_trailer=1)
Definition:
rlhtmldir.cpp:75
rlString
Definition:
rlstring.h:27
rlHtml
Definition:
rlhtml.h:25
rlHtmlDir::initialPath
rlString initialPath
Definition:
rlhtmldir.h:54
rlHtmlDir::recursive
int recursive
Definition:
rlhtmldir.h:57
rlHtmlDir::~rlHtmlDir
virtual ~rlHtmlDir()
Definition:
rlhtmldir.cpp:33
rlHtmlDir::currentPath
rlString currentPath
Definition:
rlhtmldir.h:55
rlHtmlDir::html
rlString html
Definition:
rlhtmldir.h:67
rlHtmlDir::list_directories_only
Definition:
rlhtmldir.h:31
rlHtmlDir::textrlHtmlDirCSS
rlString textrlHtmlDirCSS
Definition:
rlhtmldir.h:62
Generated by
1.8.14