⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htdir.h

📁 firtext搜索引擎源码
💻 H
字号:
/*					W3C Sample Code Library libwww DIRECTORY BROWSING!Directory Browsing!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*The directory manager generates directory listings for FTP and HTTPrequests. This module contains the protocol independent code and itproduces the HTML object. It is only included if either the FTP or the File moduleis included. This module is implemented by HTDir.c, and it isa part of the  W3CSample Code Library.*/#ifndef HTDIR_H#define HTDIR_H#include "HTReq.h"#include "HTIcons.h"/*.What Should the Listings Look Like?.If the HT_DS_DES is set then the Descriptionfield is added as the last column in the listing.  File descriptionsare queried from the HTDescriptmodule. Make a full mask by adding/oring the following flags:*/typedef enum _HTDirShow {    HT_DS_SIZE  = 0x1,			/* Show file size using K, M and G? */    HT_DS_DATE  = 0x2,			/* Show last modified date? */    HT_DS_HID   = 0x4,			/* Show hidden files? */    HT_DS_DES	= 0x8,			/* Show descriptions? */    HT_DS_ICON  = 0x10,			/* Show icons? */    HT_DS_HOTI  = 0x20			/* Are Icons hot or cold? */} HTDirShow;typedef enum _HTDirKey {    HT_DK_NONE	= 0,			/* No sorting */    HT_DK_CSEN	= 1,			/* Case sensitive */    HT_DK_CINS  = 2			/* Case insensitive */} HTDirKey;/*(Length of Filenames and Descriptions)The module automatically ajusts the width of the directory listing asa function of the file name. The width can flows dynamically betweenan upper and a lower limit.  The maximum length ofthis field is specified by*/extern BOOL HTDir_setWidth (int minfile, int maxfile);/*.The Directory Object.The directory object handles the generation of a directory listing. Itis a bit like a stream in that it accept data, but it must beformatted in a special way which makes the normal stream architectureinadequate.(Width of File Names)The module automatically ajusts the width of the directory listing asa function of the file name. The width can flows dynamically betweenan upper and a lower limit.*/extern BOOL HTDir_setWidth (int minfile, int maxfile);/*(Create a Directory Object)Creates a structured stream object and sets up the initial HTML stuffReturns the dir object if OK, else NULL*/typedef struct _HTDir HTDir;extern HTDir * HTDir_new (HTRequest * request, HTDirShow show, HTDirKey key);/*(Add a Line to the List)This function accepts a directory line. "data" and "size", and"description" can all be NULL. Returns YES if OK, else NO*/extern BOOL HTDir_addElement	(HTDir *dir, char *name, char *date,				 char *size, HTFileMode mode);/*(Free a Directory Obejct)If we are sorting then do the sorting and put out the list,else just append the end of the list.*/extern BOOL HTDir_free (HTDir * dir);/**/#endif /* HTDIR *//*@(#) $Id: HTDir.html,v 2.5 1998/05/14 02:10:23 frystyk Exp $*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -