summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-09 15:13:33 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-09 15:13:33 +0000
commit0d80c9ad5a69097f42453f4fc65105c421f34aa9 (patch)
tree041742fecd42a654ce679b392a26be67d6c54e27 /protocols/SkypeWeb
parent11a0c05e56a9ef98dcb8473e5c4ccd2a519ad730 (diff)
SkypeWeb:SkypeWeb: Auto sync history part 3.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12699 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/res/resource.rc6
-rw-r--r--protocols/SkypeWeb/src/resource.h6
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp4
-rw-r--r--protocols/SkypeWeb/src/skype_options.cpp7
-rw-r--r--protocols/SkypeWeb/src/skype_options.h1
5 files changed, 16 insertions, 8 deletions
diff --git a/protocols/SkypeWeb/res/resource.rc b/protocols/SkypeWeb/res/resource.rc
index 67cbb399c3..656d86f22b 100644
--- a/protocols/SkypeWeb/res/resource.rc
+++ b/protocols/SkypeWeb/res/resource.rc
@@ -96,8 +96,8 @@ BEGIN
LTEXT "Skypename:",IDC_STATIC,0,2,49,12
EDITTEXT IDC_SKYPENAME,49,0,135,12,ES_AUTOHSCROLL
LTEXT "Password:",IDC_STATIC,0,18,49,12
- EDITTEXT IDC_PASSWORD, 49, 16, 135, 12, ES_PASSWORD | ES_AUTOHSCROLL
- LTEXT "Default group:", IDC_STATIC, 0, 34, 49, 12
+ EDITTEXT IDC_PASSWORD,49,16,135,12,ES_PASSWORD | ES_AUTOHSCROLL
+ LTEXT "Default group:",IDC_STATIC,0,34,49,12
EDITTEXT IDC_GROUP,49,32,135,12,ES_AUTOHSCROLL
END
@@ -113,6 +113,8 @@ BEGIN
EDITTEXT IDC_PASSWORD,81,33,217,12,ES_PASSWORD | ES_AUTOHSCROLL
LTEXT "Default group:",IDC_STATIC,12,51,69,12
EDITTEXT IDC_GROUP,81,49,217,12,ES_AUTOHSCROLL
+ GROUPBOX "Others",IDC_STATIC,5,79,298,71
+ CONTROL "Automatic messages synchronization",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,94,160,10
END
IDD_PASSWORD_EDITOR DIALOGEX 0, 0, 209, 75
diff --git a/protocols/SkypeWeb/src/resource.h b/protocols/SkypeWeb/src/resource.h
index 22accb8c18..f61d19353c 100644
--- a/protocols/SkypeWeb/src/resource.h
+++ b/protocols/SkypeWeb/src/resource.h
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
-// Used by E:\Projects\C++\MirandaNG\protocols\SkypeWeb\res\resource.rc
+// Used by D:\Others\SVN\MirandaNG\trunk\protocols\SkypeWeb\res\resource.rc
//
#define IDI_SKYPE 100
#define IDC_SKYPENAME 101
@@ -10,6 +10,8 @@
#define IDC_GROUP 106
#define IDD_PASSWORD_EDITOR 107
#define IDC_SAVEPERMANENTLY 108
+#define IDC_RADIO1 1027
+#define IDC_CHECK2 1028
// Next default values for new objects
//
@@ -17,7 +19,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 109
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1026
+#define _APS_NEXT_CONTROL_VALUE 1029
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp
index 12a2c152fa..c3b838911d 100644
--- a/protocols/SkypeWeb/src/skype_login.cpp
+++ b/protocols/SkypeWeb/src/skype_login.cpp
@@ -182,8 +182,8 @@ void CSkypeProto::OnSubscriptionsCreated(const NETLIBHTTPREQUEST *response)
skypenames.destroy();
m_hPollingThread = ForkThreadEx(&CSkypeProto::PollingThread, 0, NULL);
-
- SyncHistory();
+ if (getByte("AutoSync", 0))
+ SyncHistory();
}
void CSkypeProto::OnStatusChanged(const NETLIBHTTPREQUEST *response)
diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp
index 66446e1a38..ad7556ff97 100644
--- a/protocols/SkypeWeb/src/skype_options.cpp
+++ b/protocols/SkypeWeb/src/skype_options.cpp
@@ -4,7 +4,8 @@ CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog, HWND hwnd
: CSkypeDlgBase(proto, idDialog, hwndParent, false),
m_skypename(this, IDC_SKYPENAME),
m_password(this, IDC_PASSWORD),
- m_group(this, IDC_GROUP)
+ m_group(this, IDC_GROUP),
+ m_autosync(this, IDC_CHECK2)
{
//CreateLink(m_skypename, SKYPE_SETTINGS_ID, _T(""));
//CreateLink(m_password, "Password", _T(""));
@@ -17,6 +18,8 @@ void CSkypeOptionsMain::OnInitDialog()
m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID)));
m_password.SetTextA(ptrA(m_proto->getStringA("Password")));
+ m_autosync.SetState(m_proto->getByte("AutoSync", 0));
+
SendMessage(m_skypename.GetHwnd(), EM_LIMITTEXT, 32, 0);
SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 20, 0);
SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0);
@@ -27,7 +30,7 @@ void CSkypeOptionsMain::OnApply()
{
m_proto->setString(SKYPE_SETTINGS_ID, m_skypename.GetTextA());
m_proto->setString("Password", m_password.GetTextA());
-
+ m_proto->setByte("AutoSync", m_autosync.GetState());
TCHAR *group = m_group.GetText();
if (mir_tstrlen(group) > 0 && !Clist_GroupExists(group))
Clist_CreateGroup(0, group);
diff --git a/protocols/SkypeWeb/src/skype_options.h b/protocols/SkypeWeb/src/skype_options.h
index 67f889b727..f846d54f33 100644
--- a/protocols/SkypeWeb/src/skype_options.h
+++ b/protocols/SkypeWeb/src/skype_options.h
@@ -7,6 +7,7 @@ private:
CCtrlEdit m_skypename;
CCtrlEdit m_password;
CCtrlEdit m_group;
+ CCtrlCheck m_autosync;
protected:
CSkypeOptionsMain(CSkypeProto *proto, int idDialog, HWND hwndParent = NULL);