summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSendDropbox.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-07-29 21:18:27 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-07-29 21:18:27 +0000
commit1271802f514d41e8e06df7714d1f1e4a430b417b (patch)
tree5bd4ef52613333cba786f1246414e422a5e4c95a /plugins/SendScreenshotPlus/src/CSendDropbox.cpp
parent14d0ed2003485ebf19d45672b065a7dd2bf5274a (diff)
- warning fixes;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14757 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSendDropbox.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/CSendDropbox.cpp35
1 files changed, 20 insertions, 15 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendDropbox.cpp b/plugins/SendScreenshotPlus/src/CSendDropbox.cpp
index b6eaf6764f..507d61497a 100644
--- a/plugins/SendScreenshotPlus/src/CSendDropbox.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendDropbox.cpp
@@ -31,18 +31,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//---------------------------------------------------------------------------
CSendDropbox::CSendDropbox(HWND Owner, MCONTACT hContact, bool bAsync)
-: CSend(Owner, hContact, bAsync){
-/// @todo : re-enable SS_DLG_DELETEAFTERSSEND with full implemention of Dropbox upload with progress, msg and sounds
+ : CSend(Owner, hContact, bAsync)
+{
+ /// @todo : re-enable SS_DLG_DELETEAFTERSSEND with full implemention of Dropbox upload with progress, msg and sounds
m_EnableItem = SS_DLG_DESCRIPTION | SS_DLG_AUTOSEND/* | SS_DLG_DELETEAFTERSSEND*/;
m_pszSendTyp = LPGENT("Dropbox transfer");
}
-CSendDropbox::~CSendDropbox(){
+CSendDropbox::~CSendDropbox()
+{
}
//---------------------------------------------------------------------------
-int CSendDropbox::Send() {
- if(!m_bAsync){
+
+int CSendDropbox::Send()
+{
+ if (!m_bAsync) {
SendThread();
return 1;
}
@@ -52,22 +56,23 @@ int CSendDropbox::Send() {
//---------------------------------------------------------------------------
-
-void CSendDropbox::SendThread() {
-/// @todo : SS_DLG_DESCRIPTION and SS_DLG_DELETEAFTERSSEND are of no use as of now since we don't track upload progress
- INT_PTR ret=0;
- if(!m_hContact)
+void CSendDropbox::SendThread()
+{
+ /// @todo : SS_DLG_DESCRIPTION and SS_DLG_DELETEAFTERSSEND are of no use as of now since we don't track upload progress
+ INT_PTR ret = 0;
+ if (!m_hContact)
SetContact(db_find_first("Dropbox"));
- if(m_hContact)
+ if (m_hContact)
ret = CallService(MS_DROPBOX_SEND_FILE, (WPARAM)m_hContact, (LPARAM)m_pszFile);
- if(!ret) {
- Error(LPGENT("%s (%i):\nCould not add a share to the Dropbox plugin."),TranslateTS(m_pszSendTyp),ret);
+ if (!ret) {
+ Error(LPGENT("%s (%i):\nCould not add a share to the Dropbox plugin."), TranslateTS(m_pszSendTyp), ret);
Exit(ACKRESULT_FAILED); return;
}
- m_bSilent=true;
+ m_bSilent = true;
Exit(ACKRESULT_SUCCESS);
}
-void CSendDropbox::SendThreadWrapper(void * Obj) {
+void CSendDropbox::SendThreadWrapper(void * Obj)
+{
reinterpret_cast<CSendDropbox*>(Obj)->SendThread();
}