diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-02-19 12:23:54 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-02-19 12:23:54 +0000 |
commit | 4df260317b8bd47ca65dca24b376b68b765a378f (patch) | |
tree | 6f8d71e64c8c728c11f5ec4e41d8eb99eaea30d9 /plugins/DropBox/src/dropbox_events.cpp | |
parent | 8dc7456651251bc112b9edd9b5fd1c4849d7c83d (diff) |
DropBox:
- reorganization of projects and code
- added access request at contact's menu
- temporary disabled folders sending
- added dropbox icon
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@8174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DropBox/src/dropbox_events.cpp')
-rw-r--r-- | plugins/DropBox/src/dropbox_events.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/DropBox/src/dropbox_events.cpp b/plugins/DropBox/src/dropbox_events.cpp new file mode 100644 index 0000000000..83ee861712 --- /dev/null +++ b/plugins/DropBox/src/dropbox_events.cpp @@ -0,0 +1,40 @@ +#include "dropbox.h"
+
+int CDropbox::OnModulesLoaded(WPARAM wParam, LPARAM lParam)
+{
+ NETLIBUSER nlu = { sizeof(nlu) };
+ nlu.flags = NUF_INCOMING | NUF_OUTGOING | NUF_HTTPCONNS | NUF_TCHAR;
+ nlu.szSettingsModule = MODULE;
+ nlu.szSettingsModule = MODULE;
+ nlu.ptszDescriptiveName = L"Dropbox";
+
+ g_dropbox->hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu);
+
+ MCONTACT hContact = GetDefaultContact();
+ if (!hContact)
+ {
+ hContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD, 0, 0);
+ if (!CallService(MS_PROTO_ADDTOCONTACT, hContact, (LPARAM)MODULE))
+ {
+ db_set_s(hContact, MODULE, "Nick", MODULE);
+ }
+ }
+
+ return 0;
+}
+
+int CDropbox::OnOptionsInit(WPARAM wParam, LPARAM lParam)
+{
+ OPTIONSDIALOGPAGE odp = { sizeof(odp) };
+ odp.position = 100000000;
+ odp.hInstance = g_hInstance;
+ odp.flags = ODPF_BOLDGROUPS;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_MAIN);
+ odp.pszGroup = LPGEN("Network");
+ odp.pszTitle = LPGEN("Dropbox");
+ odp.pfnDlgProc = MainOptionsProc;
+
+ //Options_AddPage(wParam, &odp);
+
+ return 0;
+}
\ No newline at end of file |