mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
driver/file.cpp: cache file type
Origin commit data
------------------
Commit: b70a2998f5
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-01 (Wed, 01 Oct 2014)
This commit is contained in:
@@ -48,41 +48,43 @@
|
||||
|
||||
class CFile
|
||||
{
|
||||
public:
|
||||
enum FileType
|
||||
{
|
||||
FILE_UNKNOWN = 0,
|
||||
FILE_AAC,
|
||||
FILE_AVI,
|
||||
FILE_ASF,
|
||||
FILE_DIR,
|
||||
FILE_ISO,
|
||||
FILE_TEXT,
|
||||
FILE_CDR,
|
||||
FILE_MP3,
|
||||
FILE_MKV,
|
||||
FILE_OGG,
|
||||
FILE_WAV,
|
||||
FILE_FLAC,
|
||||
FILE_XML,
|
||||
FILE_PLAYLIST,
|
||||
STREAM_AUDIO,
|
||||
FILE_PICTURE,
|
||||
STREAM_PICTURE
|
||||
};
|
||||
private:
|
||||
mutable int Type;
|
||||
public:
|
||||
enum FileType
|
||||
{
|
||||
FILE_UNKNOWN = 0,
|
||||
FILE_AAC,
|
||||
FILE_AVI,
|
||||
FILE_ASF,
|
||||
FILE_DIR,
|
||||
FILE_ISO,
|
||||
FILE_TEXT,
|
||||
FILE_CDR,
|
||||
FILE_MP3,
|
||||
FILE_MKV,
|
||||
FILE_OGG,
|
||||
FILE_WAV,
|
||||
FILE_FLAC,
|
||||
FILE_XML,
|
||||
FILE_PLAYLIST,
|
||||
STREAM_AUDIO,
|
||||
FILE_PICTURE,
|
||||
STREAM_PICTURE
|
||||
};
|
||||
|
||||
FileType getType(void) const;
|
||||
std::string getFileName(void) const;
|
||||
std::string getPath(void) const;
|
||||
bool isDir(void) { return S_ISDIR(Mode); };
|
||||
FileType getType(void) const;
|
||||
std::string getFileName(void) const;
|
||||
std::string getPath(void) const;
|
||||
bool isDir(void) { return S_ISDIR(Mode); };
|
||||
|
||||
CFile();
|
||||
off_t Size;
|
||||
std::string Name;
|
||||
std::string Url;
|
||||
mode_t Mode;
|
||||
bool Marked;
|
||||
time_t Time;
|
||||
CFile();
|
||||
off_t Size;
|
||||
std::string Name;
|
||||
std::string Url;
|
||||
mode_t Mode;
|
||||
bool Marked;
|
||||
time_t Time;
|
||||
};
|
||||
|
||||
typedef std::vector<CFile> CFileList;
|
||||
|
Reference in New Issue
Block a user