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_utils.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_utils.cpp')
-rw-r--r-- | plugins/DropBox/src/dropbox_utils.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/DropBox/src/dropbox_utils.cpp b/plugins/DropBox/src/dropbox_utils.cpp new file mode 100644 index 0000000000..caf4d9c980 --- /dev/null +++ b/plugins/DropBox/src/dropbox_utils.cpp @@ -0,0 +1,26 @@ +#include "dropbox.h"
+
+void CDropbox::ShowNotification(const wchar_t *caption, const wchar_t *message, int flags, MCONTACT hContact)
+{
+ if (Miranda_Terminated()) return;
+
+ if (ServiceExists(MS_POPUP_ADDPOPUPT) && db_get_b(NULL, "Popup", "ModuleIsEnabled", 1))
+ {
+ POPUPDATAW ppd = {0};
+ ppd.lchContact = hContact;
+ wcsncpy(ppd.lpwzContactName, caption, MAX_CONTACTNAME);
+ wcsncpy(ppd.lpwzText, message, MAX_SECONDLINE);
+ ppd.lchIcon = Skin_GetIcon("Skype_main");
+
+ if (!PUAddPopupW(&ppd))
+ return;
+
+ }
+
+ MessageBox(NULL, message, caption, MB_OK | flags);
+}
+
+void CDropbox::ShowNotification(const wchar_t *message, int flags, MCONTACT hContact)
+{
+ ShowNotification(TranslateT(MODULE), message, flags, hContact);
+}
\ No newline at end of file |