diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-07 15:50:51 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-07 15:50:51 +0000 |
commit | a704113576cb1f75463c26140e3aad20487ded33 (patch) | |
tree | 0da381cd29e85472bb966b3c4d3c8dd2e36dedf2 /protocols/Telegram/src/t_proto.cpp | |
parent | a4b5a6fb054a30b840aadc8ecbba1cb3afedb8db (diff) |
Telegram: initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@16441 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Telegram/src/t_proto.cpp')
-rw-r--r-- | protocols/Telegram/src/t_proto.cpp | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/protocols/Telegram/src/t_proto.cpp b/protocols/Telegram/src/t_proto.cpp new file mode 100644 index 0000000000..49aebc1045 --- /dev/null +++ b/protocols/Telegram/src/t_proto.cpp @@ -0,0 +1,101 @@ +/*
+Copyright (c) 2015 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
+as published by the Free Software Foundation version 2
+of the License.
+
+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"
+
+CTelegramProto::CTelegramProto(const char* protoName, const TCHAR* userName) : PROTO<CTelegramProto>(protoName, userName)
+{
+ tgl_register_app_id(&tgl, TELEGRAM_APP_ID, TELEGRAM_APP_HASH);
+ char version[64];
+ mir_snprintf(version, "Miranda Telegram %d.%d.%d.%d", __MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM);
+ tgl_set_app_version(&tgl, version);
+ tgl_init(&tgl);
+
+ tgl_update_callback tgucb = {};
+
+
+}
+
+CTelegramProto::~CTelegramProto()
+{
+}
+
+DWORD_PTR CTelegramProto::GetCaps(int type, MCONTACT)
+{
+ return 0;
+}
+
+MCONTACT CTelegramProto::AddToList(int, PROTOSEARCHRESULT *psr)
+{
+ return 0;
+}
+
+MCONTACT CTelegramProto::AddToListByEvent(int, int, MEVENT hDbEvent)
+{
+ return 0;
+}
+
+int CTelegramProto::Authorize(MEVENT hDbEvent)
+{
+ return 0;
+}
+
+int CTelegramProto::AuthDeny(MEVENT hDbEvent, const TCHAR*)
+{
+ return 0;
+
+}
+
+int CTelegramProto::AuthRecv(MCONTACT, PROTORECVEVENT* pre)
+{
+ return 0;
+}
+
+int CTelegramProto::AuthRequest(MCONTACT hContact, const TCHAR *szMessage)
+{
+ return 0;
+}
+
+int CTelegramProto::GetInfo(MCONTACT hContact, int)
+{
+ return 0;
+}
+
+int CTelegramProto::SendMsg(MCONTACT hContact, int flags, const char *msg)
+{
+ return 0;
+}
+
+int CTelegramProto::SetStatus(int iNewStatus)
+{
+ return 0;
+}
+
+int CTelegramProto::UserIsTyping(MCONTACT hContact, int type)
+{
+ return 0;
+}
+
+int CTelegramProto::OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam)
+{
+ return 0;
+}
+
+int CTelegramProto::OnPreShutdown(WPARAM, LPARAM)
+{
+ return 0;
+}
|