summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-27 19:27:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-27 19:27:32 +0300
commit083d339f5b79ccdb80c275a4c93f227b1bc3513a (patch)
treecfe0ffba5c434984d7203fd44798e328be654e7b /protocols
parentec2b6465c9b6475b73f4a28cc658af3507765e80 (diff)
Discord: initial commit
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Discord/discord.vcxproj33
-rw-r--r--protocols/Discord/discord.vcxproj.filters4
-rw-r--r--protocols/Discord/res/discord.icobin0 -> 4150 bytes
-rw-r--r--protocols/Discord/res/discord.rc59
-rw-r--r--protocols/Discord/res/offline.icobin0 -> 5430 bytes
-rw-r--r--protocols/Discord/res/version.rc38
-rw-r--r--protocols/Discord/src/resource.h18
-rw-r--r--protocols/Discord/src/stdafx.cxx19
-rw-r--r--protocols/Discord/src/stdafx.h41
-rw-r--r--protocols/Discord/src/version.h14
10 files changed, 226 insertions, 0 deletions
diff --git a/protocols/Discord/discord.vcxproj b/protocols/Discord/discord.vcxproj
new file mode 100644
index 0000000000..a360422c31
--- /dev/null
+++ b/protocols/Discord/discord.vcxproj
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{88928401-2CE8-4568-AAA7-226141870CBF}</ProjectGuid>
+ <ProjectName>Discord</ProjectName>
+ </PropertyGroup>
+ <ImportGroup Label="PropertySheets">
+ <Import Project="$(ProjectDir)..\..\build\vc.common\plugin.props" />
+ </ImportGroup>
+ <ItemDefinitionGroup>
+ <ClCompile>
+ <ExceptionHandling>Sync</ExceptionHandling>
+ </ClCompile>
+ </ItemDefinitionGroup>
+</Project> \ No newline at end of file
diff --git a/protocols/Discord/discord.vcxproj.filters b/protocols/Discord/discord.vcxproj.filters
new file mode 100644
index 0000000000..fcae13a9d8
--- /dev/null
+++ b/protocols/Discord/discord.vcxproj.filters
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(ProjectDir)..\..\build\vc.common\common.filters" />
+</Project> \ No newline at end of file
diff --git a/protocols/Discord/res/discord.ico b/protocols/Discord/res/discord.ico
new file mode 100644
index 0000000000..c2830ed132
--- /dev/null
+++ b/protocols/Discord/res/discord.ico
Binary files differ
diff --git a/protocols/Discord/res/discord.rc b/protocols/Discord/res/discord.rc
new file mode 100644
index 0000000000..75f3bfe2e9
--- /dev/null
+++ b/protocols/Discord/res/discord.rc
@@ -0,0 +1,59 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "..\src\resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (United States) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "..\\src\\resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+
+IDI_MAIN ICON "discord.ico"
+IDI_OFFLINE ICON "offline.ico"
+
+#endif // English (United States) resources
+/////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/Discord/res/offline.ico b/protocols/Discord/res/offline.ico
new file mode 100644
index 0000000000..3c27bb3f03
--- /dev/null
+++ b/protocols/Discord/res/offline.ico
Binary files differ
diff --git a/protocols/Discord/res/version.rc b/protocols/Discord/res/version.rc
new file mode 100644
index 0000000000..675d852de7
--- /dev/null
+++ b/protocols/Discord/res/version.rc
@@ -0,0 +1,38 @@
+// Microsoft Visual C++ generated resource script.
+//
+#ifdef APSTUDIO_INVOKED
+#error this file is not editable by Microsoft Visual C++
+#endif //APSTUDIO_INVOKED
+
+#include "afxres.h"
+#include "..\src\version.h"
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION __FILEVERSION_STRING
+ PRODUCTVERSION __FILEVERSION_STRING
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x0L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "000004b0"
+ BEGIN
+ VALUE "FileDescription", __DESCRIPTION
+ VALUE "InternalName", __PLUGIN_NAME
+ VALUE "LegalCopyright", __COPYRIGHT
+ VALUE "OriginalFilename", __FILENAME
+ VALUE "ProductName", __PLUGIN_NAME
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0, 1200
+ END
+END
diff --git a/protocols/Discord/src/resource.h b/protocols/Discord/src/resource.h
new file mode 100644
index 0000000000..f1e2a41867
--- /dev/null
+++ b/protocols/Discord/src/resource.h
@@ -0,0 +1,18 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by twitter.rc
+//
+
+#define IDI_MAIN 101
+#define IDI_OFFLINE 102
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 103
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1001
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/protocols/Discord/src/stdafx.cxx b/protocols/Discord/src/stdafx.cxx
new file mode 100644
index 0000000000..c240785a65
--- /dev/null
+++ b/protocols/Discord/src/stdafx.cxx
@@ -0,0 +1,19 @@
+/*
+Copyright © 2012-16 Miranda NG team
+Copyright © 2009 Jim Porter
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+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" \ No newline at end of file
diff --git a/protocols/Discord/src/stdafx.h b/protocols/Discord/src/stdafx.h
new file mode 100644
index 0000000000..7595688225
--- /dev/null
+++ b/protocols/Discord/src/stdafx.h
@@ -0,0 +1,41 @@
+// stdafx.h : include file for standard system include files,
+// or project specific include files that are used frequently, but
+// are changed infrequently
+//
+
+#pragma once
+
+#include <Windows.h>
+#include <Shlwapi.h>
+#include <Wincrypt.h>
+#include <stdio.h>
+#include <direct.h>
+#include <time.h>
+
+#include "resource.h"
+
+#include <m_system_cpp.h>
+#include <newpluginapi.h>
+#include <m_chat.h>
+#include <m_clist.h>
+#include <m_database.h>
+#include <m_folders.h>
+#include <m_history.h>
+#include <m_langpack.h>
+#include <m_message.h>
+#include <m_netlib.h>
+#include <m_options.h>
+#include <m_popup.h>
+#include <m_protocols.h>
+#include <m_protosvc.h>
+#include <m_protoint.h>
+#include <m_skin.h>
+#include <m_system.h>
+#include <m_userinfo.h>
+#include <m_icolib.h>
+#include <m_utils.h>
+#include <m_hotkeys.h>
+#include <m_json.h>
+#include <win2k.h>
+
+extern HINSTANCE g_hInstance;
diff --git a/protocols/Discord/src/version.h b/protocols/Discord/src/version.h
new file mode 100644
index 0000000000..076f3aabd0
--- /dev/null
+++ b/protocols/Discord/src/version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 1
+#define __MINOR_VERSION 3
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 2
+
+#include <stdver.h>
+
+#define __PLUGIN_NAME "Twitter protocol"
+#define __FILENAME "Twitter.dll"
+#define __DESCRIPTION "Twitter protocol support for Miranda NG."
+#define __AUTHOR "dentist, omniwolf, Thief"
+#define __AUTHOREMAIL ""
+#define __AUTHORWEB "http://miranda-ng.org/p/Twitter/"
+#define __COPYRIGHT "© 2009-2010 dentist, 2010-2012 omniwolf and Thief"