summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-12-07 05:10:00 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-12-07 05:10:00 +0000
commite50e40b41d87eddd8c2acc9e0291fdd51e963c8b (patch)
tree71d01d28f75bb235b20ed25f04d7a5ca533390ce /protocols
parenta10a309dc1059856af63db64108e5f19b8fbb971 (diff)
added types of user info items
git-svn-id: http://svn.miranda-ng.org/main/trunk@2680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Skype/src/skype_proto.h49
1 files changed, 27 insertions, 22 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index b8563fa53f..0d3f2669ad 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -24,36 +24,41 @@ struct LanguagesListEntry {
char ISOcode[3];
};
+#define LI_STRING 0
+#define LI_LIST 1
+#define LI_NUMBER 2
+
struct SettingItem
{
const TCHAR *szDescription;
const char *szDbSetting;
int dbType; //DBVT_ constant
+ unsigned displayType; //LI_ constant
};
const SettingItem setting[]={
- {LPGENT("Full name"), "Nick", DBVT_WCHAR},
- {LPGENT("Mood"), "XStatusMsg", DBVT_WCHAR},
-
- {LPGENT("Mobile phone"), "Cellular", DBVT_WCHAR},
- {LPGENT("Home phone"), "Phone", DBVT_WCHAR},
- {LPGENT("Office phone"), "CompanyPhone", DBVT_WCHAR},
- {LPGENT("E-mail 1"), "e-mail0", DBVT_WCHAR},
- {LPGENT("E-mail 2"), "e-mail1", DBVT_WCHAR},
- {LPGENT("E-mail 3"), "e-mail2", DBVT_WCHAR},
-
- {LPGENT("Country"), "Country", DBVT_WCHAR},
- {LPGENT("State"), "State", DBVT_WCHAR},
- {LPGENT("City"), "City", DBVT_WCHAR},
- {LPGENT("Time zone"), "Timezone", DBVT_BYTE},
- {LPGENT("Homepage"), "Homepage", DBVT_WCHAR},
- {LPGENT("Gender"), "Gender", DBVT_BYTE},
- {LPGENT("Birth day"), "BirthDay", DBVT_BYTE},
- {LPGENT("Birth month"), "BirthMonth", DBVT_BYTE},
- {LPGENT("Birth year"), "BirthYear", DBVT_WORD},
- {LPGENT("Language"), "Language1", DBVT_WCHAR},
-
- {LPGENT("About"), "About", DBVT_WCHAR}
+ {LPGENT("Full name"), "Nick", DBVT_WCHAR, LI_STRING},
+ {LPGENT("Mood"), "XStatusMsg", DBVT_WCHAR, LI_STRING},
+
+ {LPGENT("Mobile phone"), "Cellular", DBVT_WCHAR, LI_NUMBER},
+ {LPGENT("Home phone"), "Phone", DBVT_WCHAR, LI_NUMBER},
+ {LPGENT("Office phone"), "CompanyPhone", DBVT_WCHAR, LI_NUMBER},
+ {LPGENT("E-mail 1"), "e-mail0", DBVT_WCHAR, LI_STRING},
+ {LPGENT("E-mail 2"), "e-mail1", DBVT_WCHAR, LI_STRING},
+ {LPGENT("E-mail 3"), "e-mail2", DBVT_WCHAR, LI_STRING},
+
+ {LPGENT("Country"), "Country", DBVT_WCHAR, LI_LIST},
+ {LPGENT("State"), "State", DBVT_WCHAR, LI_STRING},
+ {LPGENT("City"), "City", DBVT_WCHAR, LI_STRING},
+ {LPGENT("Time zone"), "Timezone", DBVT_BYTE, LI_LIST},
+ {LPGENT("Homepage"), "Homepage", DBVT_WCHAR, LI_STRING},
+ {LPGENT("Gender"), "Gender", DBVT_BYTE, LI_LIST},
+ {LPGENT("Birth day"), "BirthDay", DBVT_BYTE, LI_NUMBER},
+ {LPGENT("Birth month"), "BirthMonth", DBVT_BYTE, LI_NUMBER},
+ {LPGENT("Birth year"), "BirthYear", DBVT_WORD, LI_NUMBER},
+ {LPGENT("Language"), "Language1", DBVT_WCHAR, LI_LIST},
+
+ {LPGENT("About"), "About", DBVT_WCHAR, LI_STRING}
};
struct CSkypeProto : public PROTO_INTERFACE, public MZeroedObject