diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-11-18 20:37:19 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-11-18 20:37:19 +0000 |
commit | 0e80ad0d4c150fa947849cdad07a7d0d34d7340e (patch) | |
tree | 7034b8267ed219c615c4b135778e80a1ede16923 /plugins/!NotAdopted/sametime/files.h | |
parent | 8598a4a7a0bc922c4c1c768b55f596cc6d8a0d44 (diff) |
Add sametime protocol sources (not adopted)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6935 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/sametime/files.h')
-rw-r--r-- | plugins/!NotAdopted/sametime/files.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/sametime/files.h b/plugins/!NotAdopted/sametime/files.h new file mode 100644 index 0000000000..f240c7fa61 --- /dev/null +++ b/plugins/!NotAdopted/sametime/files.h @@ -0,0 +1,37 @@ +#ifndef _FILES_INC
+#define _FILES_INC
+
+#include "common.h"
+#include "userlist.h"
+#include "options.h"
+
+#define FILE_BUFF_SIZE (1024 * 32)
+
+typedef struct FileTransferClientData_tag {
+ char *save_path;
+ HANDLE hFile;
+ bool sending;
+ HANDLE hContact;
+ struct FileTransferClientData_tag *next, *first;
+ HANDLE hFt;
+ char *buffer;
+
+ int ft_number;
+
+ int ft_count; // number of nodes in list - only valid in first node
+ int totalSize; // total for all files in the list - only valid in first node
+
+ int sizeToHere; // in a link list of file transfers, the sum of the filesizes of all prior nodes in the list
+ mwFileTransfer *ft;
+} FileTransferClientData;
+
+HANDLE SendFilesToUser(HANDLE hContact, char **files, char *pszDesc);
+
+HANDLE AcceptFileTransfer(HANDLE hContact, HANDLE hFt, char *save_path);
+void RejectFileTransfer(HANDLE hFt);
+void CancelFileTransfer(HANDLE hFt);
+
+void InitFiles(mwSession *session);
+void DeinitFiles(mwSession *session);
+
+#endif
|