summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/proto.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-04-16 01:32:19 +0300
committeraunsane <aunsane@gmail.com>2017-04-16 01:32:58 +0300
commit0b9fa1d90f8d0aff7118837ceb1211b578a5a9c8 (patch)
tree3b8be7b839a98a3a52a38d713c2d708ada015510 /plugins/CloudFile/src/proto.cpp
parent008fb731e3e3b587f596afba1cfe7446de7f0cac (diff)
CloudFile: initial commit
- Dropbox (worked) - Yandex.Disk (worked) - GDrive (not worked)
Diffstat (limited to 'plugins/CloudFile/src/proto.cpp')
-rw-r--r--plugins/CloudFile/src/proto.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/CloudFile/src/proto.cpp b/plugins/CloudFile/src/proto.cpp
new file mode 100644
index 0000000000..9698534c50
--- /dev/null
+++ b/plugins/CloudFile/src/proto.cpp
@@ -0,0 +1,32 @@
+#include "stdafx.h"
+
+INT_PTR ProtoGetCaps(WPARAM wParam, LPARAM)
+{
+ switch (wParam) {
+ case PFLAGNUM_1:
+ return PF1_IM | PF1_FILESEND;
+ case PFLAGNUM_2:
+ return PF2_ONLINE;
+ case PFLAGNUM_4:
+ return PF4_OFFLINEFILES;
+ }
+
+ return 0;
+}
+
+INT_PTR ProtoGetName(WPARAM wParam, LPARAM lParam)
+{
+ if (lParam) {
+ mir_strncpy((char *)lParam, MODULE, wParam);
+ return 0;
+ }
+
+ return 1;
+}
+
+INT_PTR ProtoLoadIcon(WPARAM wParam, LPARAM)
+{
+ return (LOWORD(wParam) == PLI_PROTOCOL)
+ ? (INT_PTR)CopyIcon(LoadIconEx(IDI_UPLOAD))
+ : 0;
+} \ No newline at end of file