-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRemoteFileUtils.h
39 lines (26 loc) · 979 Bytes
/
RemoteFileUtils.h
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
#ifndef REMOTEFILEUTILS_H
#define REMOTEFILEUTILS_H
/** @file */
#include "FileUtils.h"
#include "StdSocket.h"
class RRemoteFactory;
/**
* A class for performing miscellaneous remote file operations.
* Instances of this class can be used to delete, rename and query files and directories on the remote file system.
*/
class RRemoteFileUtils : public RFileUtilsObject
{
RRemoteFactory *m_remoteFactory; /**< Pointer to the remote factory that owns this instance */
RSocket *m_socket; /**< Socket for communicating with remote RADRunner */
public:
RRemoteFileUtils() : m_remoteFactory(nullptr),m_socket(nullptr) { }
int deleteFile(const char *a_fileName);
int getFileInfo(const char *a_fileName, TEntry *a_entry);
int renameFile(const char *a_oldFullName, const char *a_newFullName);
void setFactory(RRemoteFactory *a_remoteFactory, RSocket *a_socket)
{
m_remoteFactory = a_remoteFactory;
m_socket = a_socket;
}
};
#endif /* ! REMOTEFILEUTILS_H */