diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-05 13:26:35 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-05 13:26:35 +0300 |
commit | f42fb54603c106122f74b43d1420435b57a15c19 (patch) | |
tree | 9fb8a7e9533a88f4ddba18986b2feed4d6c3009b /protocols/YAMN/src | |
parent | fa4cd6a02f8aa5d88b97bbac74d78a77e9b6f7d3 (diff) |
fixes #3705 (YAMN: убрать опцию "уведомления → звук")
Diffstat (limited to 'protocols/YAMN/src')
-rw-r--r-- | protocols/YAMN/src/browser/badconnect.cpp | 3 | ||||
-rw-r--r-- | protocols/YAMN/src/browser/mailbrowser.cpp | 3 | ||||
-rw-r--r-- | protocols/YAMN/src/proto/netlib.cpp | 8 | ||||
-rw-r--r-- | protocols/YAMN/src/proto/netlib.h | 8 | ||||
-rw-r--r-- | protocols/YAMN/src/proto/pop3/pop3opt.cpp | 10 | ||||
-rw-r--r-- | protocols/YAMN/src/resource.h | 1 |
6 files changed, 10 insertions, 23 deletions
diff --git a/protocols/YAMN/src/browser/badconnect.cpp b/protocols/YAMN/src/browser/badconnect.cpp index d871fa2eea..6e023ccf84 100644 --- a/protocols/YAMN/src/browser/badconnect.cpp +++ b/protocols/YAMN/src/browser/badconnect.cpp @@ -203,8 +203,7 @@ void __cdecl BadConnection(void *Param) if (WAIT_OBJECT_0 != WaitToReadFcn(ActualAccount->AccountAccessSO))
__leave;
- if (ActualAccount->BadConnectN.Flags & YAMN_ACC_SND)
- Skin_PlaySound(YAMN_CONNECTFAILSOUND);
+ Skin_PlaySound(YAMN_CONNECTFAILSOUND);
if (ActualAccount->BadConnectN.Flags & YAMN_ACC_MSG)
ShowWindow(hBadConnect, SW_SHOWNORMAL);
diff --git a/protocols/YAMN/src/browser/mailbrowser.cpp b/protocols/YAMN/src/browser/mailbrowser.cpp index ab0f5bd068..ca413491a7 100644 --- a/protocols/YAMN/src/browser/mailbrowser.cpp +++ b/protocols/YAMN/src/browser/mailbrowser.cpp @@ -708,8 +708,7 @@ void DoMailActions(HWND hDlg, CAccount *ActualAccount, struct CMailNumbers *MN, }
if (MN->Real.SoundNC + MN->Virtual.SoundNC != 0)
- if (nflags & YAMN_ACC_SND)
- Skin_PlaySound(YAMN_NEWMAILSOUND);
+ Skin_PlaySound(YAMN_NEWMAILSOUND);
if ((nnflags & YAMN_ACC_POP) && (MN->Real.PopupRun + MN->Virtual.PopupRun == 0)) {
POPUPDATAW NoNewMailPopup = {};
diff --git a/protocols/YAMN/src/proto/netlib.cpp b/protocols/YAMN/src/proto/netlib.cpp index 726860e459..21c1f771fa 100644 --- a/protocols/YAMN/src/proto/netlib.cpp +++ b/protocols/YAMN/src/proto/netlib.cpp @@ -52,7 +52,7 @@ HANDLE RegisterNLClient(char *name) }
//Move connection to SSL
-void CNLClient::SSLify() throw(DWORD)
+void CNLClient::SSLify()
{
#ifdef DEBUG_COMM
SSL_DebugLog("Staring SSL...");
@@ -78,7 +78,7 @@ void CNLClient::SSLify() throw(DWORD) //Connects to the server through the sock
//if not success, exception is throwed
-void CNLClient::Connect(const char *servername, const int port) throw(DWORD)
+void CNLClient::Connect(const char *servername, const int port)
{
NetworkError = SystemError = 0;
isTLSed = false;
@@ -111,7 +111,7 @@ int CNLClient::LocalNetlib_Send(HNETLIBCONN hConn, const char *buf, int len, int return Netlib_Send(hConn, buf, len, flags);
}
-void CNLClient::Send(const char *query) throw(DWORD)
+void CNLClient::Send(const char *query)
{
unsigned int Sent;
@@ -158,7 +158,7 @@ int CNLClient::LocalNetlib_Recv(HNETLIBCONN hConn, char *buf, int len, int flags return iReturn;
}
-char *CNLClient::Recv(char *buf, int buflen) throw(DWORD)
+char *CNLClient::Recv(char *buf, int buflen)
{
#ifdef DEBUG_COMM
DebugLog(CommFile, "<reading>");
diff --git a/protocols/YAMN/src/proto/netlib.h b/protocols/YAMN/src/proto/netlib.h index dfa3d93508..141fdc84ba 100644 --- a/protocols/YAMN/src/proto/netlib.h +++ b/protocols/YAMN/src/proto/netlib.h @@ -5,11 +5,11 @@ class CNLClient: public CNetClient { public: CNLClient() {} - void Connect(const char* servername, const int port) throw(DWORD); - void Send(const char *query) throw(DWORD); - char* Recv(char *buf= nullptr, int buflen = 65536) throw(DWORD); + void Connect(const char* servername, const int port); + void Send(const char *query); + char* Recv(char *buf= nullptr, int buflen = 65536); void Disconnect(); - void SSLify()throw(DWORD); + void SSLify(); inline BOOL Connected() {return hConnection != nullptr;} diff --git a/protocols/YAMN/src/proto/pop3/pop3opt.cpp b/protocols/YAMN/src/proto/pop3/pop3opt.cpp index e237292fdf..7cf85e5b76 100644 --- a/protocols/YAMN/src/proto/pop3/pop3opt.cpp +++ b/protocols/YAMN/src/proto/pop3/pop3opt.cpp @@ -63,7 +63,6 @@ struct CBaseOptionsDlg : public CDlgBase SendDlgItemMessage(m_hwnd, IDC_COMBOCP, CB_SETCURSEL, (WPARAM)CPDEFINDEX, 0);
CheckDlgButton(m_hwnd, IDC_CHECK, pAccount->Flags & YAMN_ACC_ENA ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(m_hwnd, IDC_CHECKSND, pAccount->NewMailN.Flags & YAMN_ACC_SND ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKMSG, pAccount->NewMailN.Flags & YAMN_ACC_MSG ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKICO, pAccount->NewMailN.Flags & YAMN_ACC_ICO ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKPOP, pAccount->NewMailN.Flags & YAMN_ACC_POP ? BST_CHECKED : BST_UNCHECKED);
@@ -73,7 +72,6 @@ struct CBaseOptionsDlg : public CDlgBase CheckDlgButton(m_hwnd, IDC_CHECKNPOP, pAccount->NoNewMailN.Flags & YAMN_ACC_POP ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKNCOL, pAccount->NoNewMailN.Flags & YAMN_ACC_POPC ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKNMSGP, pAccount->NoNewMailN.Flags & YAMN_ACC_MSGP ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(m_hwnd, IDC_CHECKFSND, pAccount->BadConnectN.Flags & YAMN_ACC_SND ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKFMSG, pAccount->BadConnectN.Flags & YAMN_ACC_MSG ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKFICO, pAccount->BadConnectN.Flags & YAMN_ACC_ICO ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKFPOP, pAccount->BadConnectN.Flags & YAMN_ACC_POP ? BST_CHECKED : BST_UNCHECKED);
@@ -110,7 +108,6 @@ struct CBaseOptionsDlg : public CDlgBase SetDlgItemInt(m_hwnd, IDC_EDITFPOPS, 0, FALSE);
SendDlgItemMessage(m_hwnd, IDC_COMBOCP, CB_SETCURSEL, (WPARAM)CPDEFINDEX, 0);
CheckDlgButton(m_hwnd, IDC_CHECK, BST_CHECKED);
- CheckDlgButton(m_hwnd, IDC_CHECKSND, BST_CHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKMSG, BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKICO, BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_CHECKPOP, BST_CHECKED);
@@ -272,7 +269,6 @@ class CAccOptDlg : public CBaseOptionsDlg EnableWindow(GetDlgItem(m_hwnd, IDC_EDITLOGIN), bEnable);
EnableWindow(GetDlgItem(m_hwnd, IDC_EDITPASS), bEnable);
EnableWindow(GetDlgItem(m_hwnd, IDC_EDITINTERVAL), bEnable);
- EnableWindow(GetDlgItem(m_hwnd, IDC_CHECKSND), bEnable);
EnableWindow(GetDlgItem(m_hwnd, IDC_CHECKMSG), bEnable);
EnableWindow(GetDlgItem(m_hwnd, IDC_CHECKICO), bEnable);
EnableWindow(GetDlgItem(m_hwnd, IDC_CHECKAPP), bEnable);
@@ -562,7 +558,6 @@ public: BOOL CheckABody = (IsDlgButtonChecked(m_hwnd, IDC_AUTOBODY) == BST_CHECKED);
BOOL CheckMsg = (IsDlgButtonChecked(m_hwnd, IDC_CHECKMSG) == BST_CHECKED);
- BOOL CheckSnd = (IsDlgButtonChecked(m_hwnd, IDC_CHECKSND) == BST_CHECKED);
BOOL CheckIco = (IsDlgButtonChecked(m_hwnd, IDC_CHECKICO) == BST_CHECKED);
BOOL CheckApp = (IsDlgButtonChecked(m_hwnd, IDC_CHECKAPP) == BST_CHECKED);
@@ -571,7 +566,6 @@ public: BOOL CheckContactNick = (IsDlgButtonChecked(m_hwnd, IDC_CHECKCONTACTNICK) == BST_CHECKED);
BOOL CheckContactNoEvent = (IsDlgButtonChecked(m_hwnd, IDC_CHECKCONTACTNOEVENT) == BST_CHECKED);
- BOOL CheckFSnd = (IsDlgButtonChecked(m_hwnd, IDC_CHECKFSND) == BST_CHECKED);
BOOL CheckFMsg = (IsDlgButtonChecked(m_hwnd, IDC_CHECKFMSG) == BST_CHECKED);
BOOL CheckFIco = (IsDlgButtonChecked(m_hwnd, IDC_CHECKFICO) == BST_CHECKED);
@@ -688,7 +682,6 @@ public: (CheckForce ? YAMN_ACC_FORCE : 0);
ActualAccount->NewMailN.Flags =
- (CheckSnd ? YAMN_ACC_SND : 0) |
(CheckMsg ? YAMN_ACC_MSG : 0) |
(CheckIco ? YAMN_ACC_ICO : 0) |
(ActualAccount->NewMailN.Flags & YAMN_ACC_POP) |
@@ -706,7 +699,6 @@ public: (CheckNMsgP ? YAMN_ACC_MSGP : 0);
ActualAccount->BadConnectN.Flags =
- (CheckFSnd ? YAMN_ACC_SND : 0) |
(CheckFMsg ? YAMN_ACC_MSG : 0) |
(CheckFIco ? YAMN_ACC_ICO : 0) |
(ActualAccount->BadConnectN.Flags & YAMN_ACC_POP) |
@@ -1067,7 +1059,6 @@ public: (CheckPopN ? YAMN_ACC_POPN : 0);
ActualAccount->NewMailN.Flags =
- (ActualAccount->NewMailN.Flags & YAMN_ACC_SND) |
(ActualAccount->NewMailN.Flags & YAMN_ACC_MSG) |
(ActualAccount->NewMailN.Flags & YAMN_ACC_ICO) |
(CheckPopup ? YAMN_ACC_POP : 0) |
@@ -1085,7 +1076,6 @@ public: (ActualAccount->NoNewMailN.Flags & YAMN_ACC_MSGP);
ActualAccount->BadConnectN.Flags =
- (ActualAccount->BadConnectN.Flags & YAMN_ACC_SND) |
(ActualAccount->BadConnectN.Flags & YAMN_ACC_MSG) |
(ActualAccount->BadConnectN.Flags & YAMN_ACC_ICO) |
(CheckFPopup ? YAMN_ACC_POP : 0) |
diff --git a/protocols/YAMN/src/resource.h b/protocols/YAMN/src/resource.h index 5fad712cfe..8351dd2885 100644 --- a/protocols/YAMN/src/resource.h +++ b/protocols/YAMN/src/resource.h @@ -24,7 +24,6 @@ #define IDC_COMBOACCOUNT 1005
#define IDC_BTNDEFAULT 1006
#define IDC_EDITINTERVAL 1007
-#define IDC_CHECKSND 1008
#define IDC_CHECKMSG 1009
#define IDC_CHECKAPP 1010
#define IDC_BTNAPP 1011
|