From 1680c6d262eb0525c1af95195b5b79839a5e2ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 22 May 2012 23:20:07 +0000 Subject: Added Omegle protocol. git-svn-id: http://svn.miranda-ng.org/main/trunk@136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/constants.h | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 protocols/Omegle/constants.h (limited to 'protocols/Omegle/constants.h') diff --git a/protocols/Omegle/constants.h b/protocols/Omegle/constants.h new file mode 100644 index 0000000000..7fff9789e8 --- /dev/null +++ b/protocols/Omegle/constants.h @@ -0,0 +1,54 @@ +/* + +Omegle plugin for Miranda Instant Messenger +_____________________________________________ + +Copyright © 2011-12 Robert Pösel + +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 . + +*/ + +#pragma once + +// Version management +#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0,1,0,0) +#define __VERSION_STRING "0.1.0.0" + +// Product management +#define OMEGLE_NAME "Omegle" +#define OMEGLE_SERVER_REGULAR "http://www.omegle.com" +#define OMEGLE_SERVER_CHAT "http://%s.omegle.com" + +// Limits +#define OMEGLE_TIMEOUTS_LIMIT 6 +// There is "no limit" on Omegle, but we should set some wise limit +#define OMEGLE_MESSAGE_LIMIT 4096 +#define OMEGLE_MESSAGE_LIMIT_TEXT "4096" + +#define OMEGLE_QUESTION_MIN_LENGTH 10 + +// Omegle request types +#define OMEGLE_REQUEST_HOME 100 // getting server name +#define OMEGLE_REQUEST_COUNT 105 // get count of connected users +#define OMEGLE_REQUEST_START 110 // starting conversation +#define OMEGLE_REQUEST_STOP 120 // ending conversation +#define OMEGLE_REQUEST_SEND 300 // sending message +#define OMEGLE_REQUEST_EVENTS 301 // receiving events +#define OMEGLE_REQUEST_TYPING_START 310 // started typing +#define OMEGLE_REQUEST_TYPING_STOP 311 // stoped typing +#define OMEGLE_REQUEST_RECAPTCHA 400 // recaptcha handling + +// Servers list +static const char *servers[] = {"Random", "bajor", "cardassia", "promenade", "odo-bucket", "ferengi", "quarks"}; \ No newline at end of file -- cgit v1.2.3