diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-11 23:02:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-11 23:02:48 +0000 |
commit | 3e1583072445a97fbd9dd223d8c8b702013ae1d6 (patch) | |
tree | 9beadf45e5c96812d0f9a2a10c94a6cc256f94d3 /protocols/JabberG/src/jabber_xstatus.cpp | |
parent | 27c63813af1433d827335b5d1d34c2b70eddeb6b (diff) |
minor fixes, code cleaning etc
git-svn-id: http://svn.miranda-ng.org/main/trunk@12773 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_xstatus.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_xstatus.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_xstatus.cpp b/protocols/JabberG/src/jabber_xstatus.cpp index 651eeef617..2f128c7720 100644 --- a/protocols/JabberG/src/jabber_xstatus.cpp +++ b/protocols/JabberG/src/jabber_xstatus.cpp @@ -56,7 +56,8 @@ private: CJabberDlgPepBase::CJabberDlgPepBase(CJabberProto *proto, int id):
CJabberDlgBase(proto, id, NULL),
m_btnOk(this, IDOK),
- m_btnCancel(this, IDCANCEL)
+ m_btnCancel(this, IDCANCEL),
+ m_time(5)
{
}
@@ -64,7 +65,6 @@ void CJabberDlgPepBase::OnInitDialog() {
CSuper::OnInitDialog();
- m_time = 5;
SetTimer(m_hwnd, 1, 1000, NULL);
TCHAR buf[128];
@@ -114,6 +114,7 @@ void CJabberDlgPepBase::StopTimer() ///////////////////////////////////////////////////////////////////////////////
// Simple PEP status
+
class CJabberDlgPepSimple: public CJabberDlgPepBase
{
typedef CJabberDlgPepBase CSuper;
@@ -374,7 +375,8 @@ CPepService::CPepService(CJabberProto *proto, char *name, TCHAR *node): m_proto(proto),
m_name(name),
m_node(node),
- m_hMenuItem(NULL)
+ m_hMenuItem(NULL),
+ m_wasPublished(false)
{
}
@@ -391,7 +393,7 @@ void CPepService::Publish() << XCHILD(_T("item")) << XATTR(_T("id"), _T("current")));
m_proto->m_ThreadInfo->send(iq);
- m_wasPublished = TRUE;
+ m_wasPublished = true;
}
void CPepService::Retract()
@@ -411,7 +413,7 @@ void CPepService::Retract() void CPepService::ResetPublish()
{
- m_wasPublished = FALSE;
+ m_wasPublished = false;
}
void CPepService::ForceRepublishOnLogin()
|