diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-07-31 22:48:44 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-07-31 22:48:44 +0000 |
commit | a08e1cf9777b4a3766c91be2685aaf37c24fbd4e (patch) | |
tree | 76f00a6a8c26c04d84f1e259fcf4bdf4b984a0d1 /plugins/PasteIt | |
parent | aa7b69500fc5ce34840076de537dbfab2c31ab81 (diff) |
Toaster: initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@14775 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PasteIt')
-rw-r--r-- | plugins/PasteIt/PasteIt.vcxproj | 2 | ||||
-rw-r--r-- | plugins/PasteIt/res/PasteIt.rc | 4 | ||||
-rw-r--r-- | plugins/PasteIt/src/Options.cpp | 6 | ||||
-rw-r--r-- | plugins/PasteIt/src/Options.h | 7 | ||||
-rw-r--r-- | plugins/PasteIt/src/stdafx.h | 30 | ||||
-rw-r--r-- | plugins/PasteIt/src/version.h | 18 |
6 files changed, 36 insertions, 31 deletions
diff --git a/plugins/PasteIt/PasteIt.vcxproj b/plugins/PasteIt/PasteIt.vcxproj index d07bc4cf02..3c7dbc9ea2 100644 --- a/plugins/PasteIt/PasteIt.vcxproj +++ b/plugins/PasteIt/PasteIt.vcxproj @@ -30,4 +30,4 @@ <ExceptionHandling>Sync</ExceptionHandling>
</ClCompile>
</ItemDefinitionGroup>
-</Project>
\ No newline at end of file +</Project>
diff --git a/plugins/PasteIt/res/PasteIt.rc b/plugins/PasteIt/res/PasteIt.rc index 1b70850227..a5847147df 100644 --- a/plugins/PasteIt/res/PasteIt.rc +++ b/plugins/PasteIt/res/PasteIt.rc @@ -5,7 +5,7 @@ //
// Generated from the TEXTINCLUDE 2 resource.
//
-#include "afxres.h"
+#include "winres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
@@ -148,7 +148,7 @@ END 2 TEXTINCLUDE
BEGIN
- "#include ""afxres.h""\r\n"
+ "#include ""winres.h""\r\n"
"\0"
END
diff --git a/plugins/PasteIt/src/Options.cpp b/plugins/PasteIt/src/Options.cpp index 65781ac2f0..9534e3be51 100644 --- a/plugins/PasteIt/src/Options.cpp +++ b/plugins/PasteIt/src/Options.cpp @@ -1,6 +1,6 @@ /*
-Paste It plugin
Copyright (C) 2011 Krzysztof Kral
+Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "StdAfx.h"
+#include "stdafx.h"
Options *Options::instance;
@@ -341,7 +341,7 @@ INT_PTR CALLBACK Options::DlgProcOptsPages(HWND hwndDlg, UINT msg, WPARAM wParam OptsLoginData d;
if (DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_DLG_PASTEBIN_LOGIN), hwndDlg, DlgProcOptsLogin, (LPARAM)&d) == IDOK)
{
- PasteToWeb1 *web = (PasteToWeb1*)pasteToWebs[optsPagesData->lastPage];
+ PastebinCom *web = (PastebinCom*)pasteToWebs[optsPagesData->lastPage];
Edit_SetText(GetDlgItem(hwndDlg, IDC_PASTEBIN_KEY), web->GetUserKey(d.user, d.password).c_str());
}
}
diff --git a/plugins/PasteIt/src/Options.h b/plugins/PasteIt/src/Options.h index 9e58e44d7f..2cc136c66d 100644 --- a/plugins/PasteIt/src/Options.h +++ b/plugins/PasteIt/src/Options.h @@ -1,6 +1,6 @@ /*
-Paste It plugin
Copyright (C) 2011 Krzysztof Kral
+Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -16,8 +16,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#pragma once
-#include "PasteToWeb.h"
+#ifndef _OPTIONS_H_
+#define _OPTIONS_H_
class WebOptions
{
@@ -70,3 +70,4 @@ public: WebOptions* webOptions[PasteToWeb::pages];
};
+#endif //_OPTIONS_H_
\ No newline at end of file diff --git a/plugins/PasteIt/src/stdafx.h b/plugins/PasteIt/src/stdafx.h index 959524e03e..9c0ac4aceb 100644 --- a/plugins/PasteIt/src/stdafx.h +++ b/plugins/PasteIt/src/stdafx.h @@ -1,13 +1,6 @@ -// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
+#ifndef _COMMON_H_
+#define _COMMON_H_
-#pragma once
-
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
-
-// Windows Header Files:
#include <windows.h>
#include <winsock.h>
#include <Shlobj.h>
@@ -28,17 +21,28 @@ #include <m_options.h>
#include <m_utils.h>
#include <m_chat.h>
+#include <m_http.h>
+#include <m_string.h>
#include <m_msg_buttonsbar.h>
-#include "PasteToWeb.h"
-#include "PasteToWeb1.h"
-#include "PasteToWeb2.h"
#include "version.h"
#include "resource.h"
-#include "Options.h"
+
+#include "http_request.h"
+#include "paste_to_web.h"
+#include "pastebin_com.h"
+#include "wklej_to.h"
+#include "privnote_com.h"
+
+#include "options.h"
extern HINSTANCE hInst;
+extern HANDLE g_hNetlibUser;
extern PasteToWeb* pasteToWebs[PasteToWeb::pages];
#define MODULE "PasteIt"
+
+#include "..\..\..\miranda-private-keys\PasteIt\pastebin.h"
+
+#endif //_COMMON_H_
\ No newline at end of file diff --git a/plugins/PasteIt/src/version.h b/plugins/PasteIt/src/version.h index 782bf851a2..0dcac19bb7 100644 --- a/plugins/PasteIt/src/version.h +++ b/plugins/PasteIt/src/version.h @@ -1,14 +1,14 @@ #define __MAJOR_VERSION 1
#define __MINOR_VERSION 0
-#define __RELEASE_NUM 0
-#define __BUILD_NUM 3
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 3
#include <stdver.h>
-#define __PLUGIN_NAME "Paste it"
-#define __FILENAME "PasteIt.dll"
-#define __DESCRIPTION "Uploads the text to web page and sends the URL to your friends."
-#define __AUTHOR "Krzysztof Kral"
-#define __AUTHOREMAIL "programista@poczta.of.pl"
-#define __AUTHORWEB "http://miranda-ng.org/p/PasteIt/"
-#define __COPYRIGHT "© 2011 KrzysztofKral"
+#define __PLUGIN_NAME "Paste it"
+#define __FILENAME "PasteIt.dll"
+#define __DESCRIPTION "Uploads the text to web page and sends the URL to your friends."
+#define __AUTHOR "Krzysztof Kral, Miranda NG team"
+#define __AUTHOREMAIL "programista@poczta.of.pl"
+#define __AUTHORWEB "http://miranda-ng.org/p/PasteIt/"
+#define __COPYRIGHT "© 2011 KrzysztofKral, © 2012-15 Miranda NG project"
|