summaryrefslogtreecommitdiff
path: root/protocols/Dummy/src/dummy.h
blob: 2aef5359a24059b19f2f96622c33f33c2091b4bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
Copyright (c) 2014 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 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/>.
*/

struct CDummyProto;
extern LIST<CDummyProto> dummy_Instances;
extern HINSTANCE hInst;

#define DUMMY_ID_TEMPLATE "Template"
#define DUMMY_ID_TEXT "UniqueIdText"
#define DUMMY_ID_SETTING "UniqueIdSetting"
#define DUMMY_KEY_ALLOW_SENDING "AllowSending"

struct message_data
{
	message_data(MCONTACT hContact, const std::string &msg, int msgid) : hContact(hContact), msg(msg), msgid(msgid) {}
	MCONTACT hContact;
	std::string msg;
	int msgid;
};

typedef struct {
	const char *name;
	const char *setting;
	const char *text;
} ttemplate;

static const ttemplate templates[] = {
		{ LPGEN("Custom"), "", "" },
		{ "AIM", "SN", LPGEN("Screen name") },
		{ "EmLAN", "Nick", LPGEN("User name") },
		{ "Facebook", "ID", LPGEN("Facebook ID") },
		{ "GG", "UIN", LPGEN("Gadu-Gadu number") },
		{ "ICQ", "UIN", LPGEN("User ID") },
		{ "ICQCorp", "UIN", LPGEN("ICQ number") },
		{ "IRC", "Nick", LPGEN("Nickname") },
		{ "Jabber", "jid", LPGEN("JID") },
		{ "MinecraftDynmap", "Nick", LPGEN("Visible name") },
		{ "MRA", "e-mail", LPGEN("E-mail address") },
		{ "MSN", "e-mail", LPGEN("Live ID") },
		{ "Omegle", "nick", LPGEN("Visible name") },
		{ "Sametime", "stid", LPGEN("ID") },
		{ "Skype (SkypeKit)", "sid", LPGEN("Skype name") },
		{ "Skype (Classic)", "Username", LPGEN("Skype name") },
		{ "Skype (Web)", "Username", LPGEN("Skype name") },
		{ "Steam", "SteamID", LPGEN("Steam ID") },
		{ "Tlen", "jid", LPGEN("Tlen login") },
		{ "Tox", "ToxID", LPGEN("Tox ID") },
		{ "Twitter", "Username", LPGEN("Username") },
		{ "VK", "ID", LPGEN("VKontakte ID") },
		{ "WhatsApp", "ID", LPGEN("WhatsApp ID") },
		{ "XFire", "Username", LPGEN("Username") },
		{ "Yahoo", "yahoo_id", LPGEN("ID") },
};