summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/contact.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-24 11:48:31 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-24 11:48:31 +0000
commit171e81205e357e0d54283a63997ed58ff97d54a9 (patch)
tree2fe6f4cb440569e07d151564446433fb84b83839 /plugins/Variables/src/contact.h
parent1e92bf5cf72665b5fec103a0a70d734340725539 (diff)
UserInfoEx, Variables: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1160 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/contact.h')
-rw-r--r--plugins/Variables/src/contact.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/plugins/Variables/src/contact.h b/plugins/Variables/src/contact.h
new file mode 100644
index 0000000000..7d980801f3
--- /dev/null
+++ b/plugins/Variables/src/contact.h
@@ -0,0 +1,78 @@
+/*
+ Variables Plugin for Miranda-IM (www.miranda-im.org)
+ Copyright 2003-2006 P. Boon
+
+ This program is mir_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, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#define STR_FIRSTNAME "first"
+#define STR_LASTNAME "last"
+#define STR_NICK "nick"
+#define STR_CUSTOMNICK "cnick"
+#define STR_EMAIL "email"
+#define STR_CITY "city"
+#define STR_STATE "state"
+#define STR_COUNTRY "country"
+#define STR_PHONE "phone"
+#define STR_HOMEPAGE "homepage"
+#define STR_ABOUT "about"
+#define STR_GENDER "gender"
+#define STR_AGE "age"
+#define STR_FIRSTLAST "firstlast"
+#define STR_UNIQUEID "id"
+#define STR_DISPLAY "display"
+
+#define STR_FAX "fax"
+#define STR_CELLULAR "cellular"
+#define STR_TIMEZONE "timezone"
+#define STR_MYNOTES "mynotes"
+#define STR_BIRTHDAY "bday"
+#define STR_BIRTHMONTH "bmonth"
+#define STR_BIRTHYEAR "byear"
+#define STR_STREET "street"
+#define STR_ZIP "zip"
+#define STR_LANGUAGE1 "lang1"
+#define STR_LANGUAGE2 "lang2"
+#define STR_LANGUAGE3 "lang3"
+#define STR_CONAME "coname"
+#define STR_CODEPT "codept"
+#define STR_COPOSITION "copos"
+#define STR_COSTREET "costreet"
+#define STR_COCITY "cocity"
+#define STR_COSTATE "costate"
+#define STR_COZIP "cozip"
+#define STR_COCOUNTRY "cocountry"
+#define STR_COHOMEPAGE "cohomepage"
+
+#define STR_ACCOUNT "account"
+#define STR_PROTOCOL "protocol"
+#define STR_STATUS "status"
+#define STR_INTERNALIP "intip"
+#define STR_EXTERNALIP "extip"
+#define STR_GROUP "group"
+#define STR_PROTOID "protoid"
+
+#define CCNF_ACCOUNT 51 // CUSTOM, returns contact's account name (0.8.0+)
+#define CCNF_PROTOCOL 50 // CUSTOM, returns the contact's protocol (human-readable)
+#define CCNF_STATUS 49 // CUSTOM, returns status mode description
+#define CCNF_INTERNALIP 48 // CUSTOM, returns the contact's internal IP
+#define CCNF_EXTERNALIP 47 // CUSTOM, returns the contact's external IP
+#define CCNF_GROUP 46 // CUSTOM, returns group name
+#define CCNF_PROTOID 45 // CUSTOM, returns protocol ID instead of name
+
+#define PROTOID_HANDLE "_HANDLE_"
+
+TCHAR *encodeContactToString(HANDLE hContact);
+HANDLE *decodeContactFromString(TCHAR *tszContact);