Keep track of files opened and truncated files.
More...
#include <fileInfoCache.h>
|
| FileStatus () |
| Default constructor. More...
|
|
virtual | ~FileStatus () |
| Virtual destructor. More...
|
|
void | pendingOpen (const char *pcPath, const bool fPendingOpen, const bool fForWrite) |
| Notes that on the given path a read or write operation has been performed. More...
|
|
void | pendingOpen (const char *pcPath, const string &strRenamedFromLocal) |
| Transfer existing pending open information to the given path. More...
|
|
void | truncated (const char *pcPath, const bool fTruncated) |
|
bool | pendingOpen (const char *pcPath) const |
|
bool | truncated (const char *pcPath) const |
|
int | flush (const char *pcPath, const string &strFromLocalPath) |
|
int | release (const char *pcPath, const int iFh) |
|
Keep track of files opened and truncated files.
Definition at line 105 of file fileInfoCache.h.
FileStatus::FileStatus |
( |
| ) |
|
|
inline |
virtual FileStatus::~FileStatus |
( |
| ) |
|
|
inlinevirtual |
Prevent copy-construction.
int FileStatus::flush |
( |
const char * |
pcPath, |
|
|
const string & |
strFromLocalPath |
|
) |
| |
void FileStatus::pendingOpen |
( |
const char * |
pcPath, |
|
|
const bool |
fPendingOpen, |
|
|
const bool |
fForWrite |
|
) |
| |
Notes that on the given path a read or write operation has been performed.
adbnc_read(() or adbnc_write() call it with fPendingOpen == true to mark the file for being read from or written to.
adbnc_flush() and adbnc_fsync() call it with fPendingOpen == false to indicate that the given file is no longer open for read respectively write operations.
To avoid unnecessary adb push operations is is important to know that a file has never been changed (ie no write took place) since the last adb pull operation. flush() uses this information to decide if a file needs to be pushed back to the android device.
- Parameters
-
pcPath | pathname to the file. |
fPendingOpen | if true indicate a read/write operation has been performed on the file. |
fForWrite | if true a read operation has been performed on the file, otherwise it was a write operation. |
Definition at line 267 of file fileinfoCache.cpp.
void FileStatus::pendingOpen |
( |
const char * |
pcPath, |
|
|
const string & |
strRenamedFromLocal |
|
) |
| |
Transfer existing pending open information to the given path.
- Parameters
-
pcPath | path to the new name of the file. |
strRenamedFromLocal | path to the original name of the file. |
Definition at line 287 of file fileinfoCache.cpp.
bool FileStatus::pendingOpen |
( |
const char * |
pcPath | ) |
const |
int FileStatus::release |
( |
const char * |
pcPath, |
|
|
const int |
iFh |
|
) |
| |
void FileStatus::truncated |
( |
const char * |
pcPath, |
|
|
const bool |
fTruncated |
|
) |
| |
bool FileStatus::truncated |
( |
const char * |
pcPath | ) |
const |
map<string, Entry> FileStatus::m_Entries |
|
private |
The documentation for this class was generated from the following files: