-
Notifications
You must be signed in to change notification settings - Fork 37
/
filedriverbase.cpp
executable file
·77 lines (54 loc) · 1.29 KB
/
filedriverbase.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include "filedriverbase.hpp"
FileDriverBase::FileDriverBase()
: m_status(NOT_READY)
{
} // ctor
FileDriverBase::~FileDriverBase()
{
} // dtor
bool FileDriverBase::supportsListing() const
{
return false;
} // supportsListing
bool FileDriverBase::sendListing(ISendLine& /*cb*/)
{
return false;
} // sendListing
bool FileDriverBase::supportsMediaInfo() const
{
return false;
} // supportsMediaInfo
bool FileDriverBase::sendMediaInfo(ISendLine& /*cb*/)
{
return false;
} // sendMediaInfo
IOErrorMessage FileDriverBase::cmdChannel(const QString& cmd)
{
Q_UNUSED(cmd);
return ErrWriteProtectOn;
} // cmdChannel
bool FileDriverBase::fopen(const QString& fileName)
{
Q_UNUSED(fileName);
return false;
} // fopen
bool FileDriverBase::newFile(const QString& fileName)
{
Q_UNUSED(fileName);
return false;
} // fopen
// returns a character to the open file. If not overridden, returns always true. If implemented returns false on failure.
bool FileDriverBase::putc(char c)
{
Q_UNUSED(c);
return true;
} // putc
FileDriverBase::FSStatus FileDriverBase::status(void) const
{
return static_cast<FSStatus>(m_status);
} // status
bool FileDriverBase::setCurrentDirectory(const QString& dir)
{
Q_UNUSED(dir);
return false;
}