summaryrefslogtreecommitdiff
path: root/plugins/PasteIt/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/PasteIt/src')
-rw-r--r--plugins/PasteIt/src/Options.cpp6
-rw-r--r--plugins/PasteIt/src/Options.h7
-rw-r--r--plugins/PasteIt/src/stdafx.h30
-rw-r--r--plugins/PasteIt/src/version.h18
4 files changed, 33 insertions, 28 deletions
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"