diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.h')
-rw-r--r-- | protocols/SkypeWeb/src/skype_utils.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.h b/protocols/SkypeWeb/src/skype_utils.h index 34c2324dda..9723fd0f7c 100644 --- a/protocols/SkypeWeb/src/skype_utils.h +++ b/protocols/SkypeWeb/src/skype_utils.h @@ -88,4 +88,16 @@ public: __inline operator HANDLE() { return _hEvent; }
};
+struct CFileUploadParam : public MZeroedObject {
+ ptrT tszFileName;
+ ptrT tszDesc;
+ char* atr;
+ char* fname;
+ MCONTACT hContact;
+
+ __forceinline CFileUploadParam(MCONTACT _hContact, const TCHAR* _desc, TCHAR** _files) : hContact(_hContact), tszDesc(mir_tstrdup(_desc)), tszFileName(mir_tstrdup(_files[0])) {};
+ __forceinline bool IsAccess() { return ::_taccess(tszFileName, 0) == 0; }
+};
+
+
#endif //_UTILS_H_
\ No newline at end of file |