summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_db.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_db.h')
-rw-r--r--protocols/SkypeWeb/src/skype_db.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_db.h b/protocols/SkypeWeb/src/skype_db.h
index ed1edaa653..cd101386a3 100644
--- a/protocols/SkypeWeb/src/skype_db.h
+++ b/protocols/SkypeWeb/src/skype_db.h
@@ -35,5 +35,41 @@ enum SKYPE_DB_EVENT_TYPE
#define SKYPE_SETTINGS_PASSWORD "Password"
#define SKYPE_SETTINGS_GROUP "DefaultGroup"
+struct CSkypeOptions
+{
+ CMOption<BYTE> bAutoHistorySync;
+ CMOption<BYTE> bMarkAllAsUnread;
+
+ CMOption<BYTE> bUseHostnameAsPlace;
+ CMOption<TCHAR*> wstrPlace;
+
+ CMOption<BYTE> bUseBBCodes;
+
+ CMOption<TCHAR*> wstrCListGroup;
+
+ CSkypeOptions(PROTO_INTERFACE *proto) :
+
+ bAutoHistorySync(proto, "AutoSync", true),
+ bMarkAllAsUnread(proto, "MarkMesUnread", true),
+
+ wstrPlace(proto, "Place", _T("")),
+ bUseHostnameAsPlace(proto, "UseHostName", true),
+
+ bUseBBCodes(proto, "UseBBCodes", true),
+
+ wstrCListGroup(proto, SKYPE_SETTINGS_GROUP, _T("Skype"))
+ {
+ }
+
+};
+
+class CID
+{
+ ptrA m_value;
+public:
+ inline CID(PROTO_INTERFACE *ppro, const MCONTACT hContact) : m_value(ppro->getStringA(hContact, SKYPE_SETTINGS_ID)) {}
+ inline operator char *() { return m_value; }
+};
+
#endif //_SKYPE_DB_H_ \ No newline at end of file