diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-09 14:54:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-09 14:54:02 +0000 |
commit | 363872c39ab8cee036e86affd16345e4ab20d1e7 (patch) | |
tree | 9ba3fbd9b99fe31526bd49f033cc9ffaa2e13aab /plugins | |
parent | 2d9a05f25b44439709d7158f786e9f1dd710b3b4 (diff) |
fix for a typo
git-svn-id: http://svn.miranda-ng.org/main/trunk@882 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/UserInfoEx/Res/resource.rc | 9 | ||||
-rw-r--r-- | plugins/UserInfoEx/mir_contactqueue.cpp | 23 | ||||
-rw-r--r-- | plugins/UserInfoEx/svc_reminder.cpp | 162 | ||||
-rw-r--r-- | plugins/UserInfoEx/userinfoex-translation.txt | 2 |
4 files changed, 96 insertions, 100 deletions
diff --git a/plugins/UserInfoEx/Res/resource.rc b/plugins/UserInfoEx/Res/resource.rc index 167327e714..e17441d49f 100644 --- a/plugins/UserInfoEx/Res/resource.rc +++ b/plugins/UserInfoEx/Res/resource.rc @@ -302,7 +302,7 @@ EXSTYLE WS_EX_NOPARENTNOTIFY CAPTION "Anniversary list"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "Upcomming anniversaries\nThis list gives you some overview about all your contact's anniversaries.",IDC_HEADERBAR,
+ CONTROL "Upcoming anniversaries\nThis list gives you some overview about all your contact's anniversaries.",IDC_HEADERBAR,
"MHeaderbarCtrl",0x0,0,0,355,25
CONTROL "",EDIT_ANNIVERSARY_DATE,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,3,69,347,128
GROUPBOX "Statistics:",GROUP_STATS,3,28,348,35,0,WS_EX_TRANSPARENT
@@ -598,17 +598,17 @@ LANGUAGE LANG_GERMAN, SUBLANG_GERMAN // TEXTINCLUDE
//
-1 TEXTINCLUDE
+1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
-3 TEXTINCLUDE
+3 TEXTINCLUDE
BEGIN
"\r\0"
END
-2 TEXTINCLUDE
+2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\0"
END
@@ -635,4 +635,3 @@ IDB_FLAGSPNG PNG "flags.png" /////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
-
diff --git a/plugins/UserInfoEx/mir_contactqueue.cpp b/plugins/UserInfoEx/mir_contactqueue.cpp index 5807fc6023..93e3bbd976 100644 --- a/plugins/UserInfoEx/mir_contactqueue.cpp +++ b/plugins/UserInfoEx/mir_contactqueue.cpp @@ -1,4 +1,4 @@ -/*
+/*
Copyright ©2006 Ricardo Pescuma Domenecci
Modified ©2008-2010 DeathAxe, Yasnovidyashii, Merlin, K. Romanov, Kreol
@@ -33,7 +33,7 @@ Last change by : $Author: ing.u.horn $ /**
* This static helper function is used to sort the queue items by time
- * beginning with the next upcomming item to call the Callback for.
+ * beginning with the next upcoming item to call the Callback for.
*
* @param i1 - the first queue item
* @param i2 - the second queue item
@@ -76,7 +76,7 @@ CContactQueue::~CContactQueue() _status = STOPPING;
}
SetEvent(_hEvent);
-
+
for (INT count = 0; _status != STOPPED && ++count < 50;)
{
Sleep(10);
@@ -144,7 +144,7 @@ VOID CContactQueue::RemoveAll(HANDLE hContact) for (INT i = _queue.getCount() - 1; i >= 0; --i)
{
CQueueItem *qi = _queue[i];
-
+
if (qi->hContact == hContact)
{
_queue.remove(i);
@@ -170,7 +170,7 @@ VOID CContactQueue::RemoveAllConsiderParam(HANDLE hContact, PVOID param) for (INT i = _queue.getCount() - 1; i >= 0; --i)
{
CQueueItem *qi = _queue[i];
-
+
if (qi->hContact == hContact && qi->param == param)
{
_queue.remove(i);
@@ -198,7 +198,7 @@ BOOL CContactQueue::Add(INT waitTime, HANDLE hContact, PVOID param) Lock();
rc = InternalAdd(waitTime, hContact, param);
-
+
Release();
return rc;
@@ -239,7 +239,7 @@ BOOL CContactQueue::AddIfDontHave(INT waitTime, HANDLE hContact, PVOID param) /**
* This method removes all existing queue items for the contact and adds a new queue item
- * for the given contact. This method might be used to move an existing entry,
+ * for the given contact. This method might be used to move an existing entry,
* whose check_time has changed.
*
* @param waitTime - the time to wait until the callback is desired to run
@@ -303,7 +303,7 @@ BOOL CContactQueue::InternalAdd(INT waitTime, HANDLE hContact, PVOID param) {
BOOL rc;
CQueueItem *qi = (CQueueItem *) mir_alloc(sizeof(CQueueItem));
-
+
qi->hContact = hContact;
qi->check_time = GetTickCount() + waitTime;
qi->param = param;
@@ -321,7 +321,7 @@ BOOL CContactQueue::InternalAdd(INT waitTime, HANDLE hContact, PVOID param) /**
* This is the real thread callback function. As long as _status
- * is set to RUNNING it looks for items in the queue to perform
+ * is set to RUNNING it looks for items in the queue to perform
* the _pfnCallback function on them. If the queue is empty or the
* next upcoming item is located in the future, the thread is suspended
* in the meanwhile.
@@ -354,7 +354,7 @@ VOID CContactQueue::Thread() CQueueItem *qi = _queue[0];
INT dt = qi->check_time - GetTickCount();
- if (dt > 0)
+ if (dt > 0)
{
// Not time to request yet, wait...
Release();
@@ -423,6 +423,3 @@ VOID CContactQueue::ContinueWithNext() Release();
}
}
-
-
-
diff --git a/plugins/UserInfoEx/svc_reminder.cpp b/plugins/UserInfoEx/svc_reminder.cpp index 132ee62d56..e9a6658ad2 100644 --- a/plugins/UserInfoEx/svc_reminder.cpp +++ b/plugins/UserInfoEx/svc_reminder.cpp @@ -55,7 +55,7 @@ struct CEvent BOOLEAN operator << (const CEvent& e);
};
-typedef struct _REMINDEROPTIONS
+typedef struct _REMINDEROPTIONS
{
WORD wDaysEarlier;
BYTE bPopups;
@@ -141,7 +141,7 @@ BOOLEAN CEvent::operator << (const CEvent& evt) ***********************************************************************************************************/
/**
- * This function returns the icon for the given anniversary,
+ * This function returns the icon for the given anniversary,
* which is the given number of days in advance.
*
* @param evt - structure specifying the next anniversary
@@ -153,12 +153,12 @@ static HICON GetAnnivIcon(const CEvent &evt) HICON hIcon = NULL;
CHAR szIcon[MAXSETTING];
-
- switch (evt._eType)
+
+ switch (evt._eType)
{
case CEvent::BIRTHDAY:
{
- if (evt._wDaysLeft > 9)
+ if (evt._wDaysLeft > 9)
{
hIcon = IcoLib_GetIcon(ICO_RMD_DTBX);
}
@@ -169,10 +169,10 @@ static HICON GetAnnivIcon(const CEvent &evt) }
}
break;
-
+
case CEvent::ANNIVERSARY:
{
- if (evt._wDaysLeft > 9)
+ if (evt._wDaysLeft > 9)
{
hIcon = IcoLib_GetIcon(ICO_RMD_DTAX);
}
@@ -198,7 +198,7 @@ static HANDLE AddCListExtraIcon(const CEvent &evt) {
HANDLE hClistIcon;
HICON hIco = GetAnnivIcon(evt);
- if (hIco)
+ if (hIco)
{
hClistIcon = (HANDLE)CallService(MS_CLIST_EXTRA_ADD_ICON, (WPARAM)hIco, 0);
if (hClistIcon == (HANDLE)CALLSERVICE_NOTFOUND)
@@ -220,11 +220,11 @@ static HANDLE AddCListExtraIcon(const CEvent &evt) **/
static HANDLE GetCListExtraIcon(const CEvent &evt)
{
- if (gRemindOpts.bCListExtraIcon)
+ if (gRemindOpts.bCListExtraIcon)
{
WORD wIndex = evt._wDaysLeft;
- switch (evt._eType)
+ switch (evt._eType)
{
case CEvent::BIRTHDAY:
{
@@ -268,7 +268,7 @@ static HANDLE GetCListExtraIcon(const CEvent &evt) **/
static VOID NotifyWithExtraIcon(HANDLE hContact, const CEvent &evt)
{
- if (myGlobals.HaveCListExtraIcons && gRemindOpts.bCListExtraIcon)
+ if (myGlobals.HaveCListExtraIcons && gRemindOpts.bCListExtraIcon)
{
if (!myGlobals.ExtraIconsServiceExist)
{
@@ -287,11 +287,11 @@ static VOID NotifyWithExtraIcon(HANDLE hContact, const CEvent &evt) ico.cbSize=sizeof(ico);
ico.hContact=hContact;
ico.hExtraIcon=ExtraIcon;
- switch (evt._eType)
+ switch (evt._eType)
{
case CEvent::BIRTHDAY:
{
- if (evt._wDaysLeft > 9)
+ if (evt._wDaysLeft > 9)
{
ico.icoName=ICO_RMD_DTAX;
}
@@ -304,7 +304,7 @@ static VOID NotifyWithExtraIcon(HANDLE hContact, const CEvent &evt) }
case CEvent::ANNIVERSARY:
{
- if (evt._wDaysLeft > 9)
+ if (evt._wDaysLeft > 9)
{
ico.icoName=ICO_RMD_DTAX;
}
@@ -333,13 +333,13 @@ static VOID NotifyWithExtraIcon(HANDLE hContact, const CEvent &evt) *
* @return message specific
**/
-static INT_PTR CALLBACK PopupWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+static INT_PTR CALLBACK PopupWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
- switch (uMsg)
+ switch (uMsg)
{
- case WM_COMMAND:
+ case WM_COMMAND:
{
- if (HIWORD(wParam) == STN_CLICKED)
+ if (HIWORD(wParam) == STN_CLICKED)
{
PUDeletePopUp(hWnd);
return TRUE;
@@ -376,14 +376,14 @@ static INT NotifyWithPopup(HANDLE hContact, CEvent::EType eventType, INT DaysToA ZeroMemory(&ppd, sizeof(POPUPDATAT_V2));
ppd.PluginWindowProc = (WNDPROC)PopupWindowProc;
ppd.iSeconds = (INT)DB::Setting::GetByte(SET_POPUP_DELAY, 0);
-
- if (hContact)
+
+ if (hContact)
{
ppd.lchContact = hContact;
- mir_sntprintf(ppd.lptzContactName, SIZEOF(ppd.lptzContactName),
+ mir_sntprintf(ppd.lptzContactName, SIZEOF(ppd.lptzContactName),
_T("%s - %s"), TranslateTS(pszDesc), DB::Contact::DisplayName(hContact));
}
- else
+ else
{
mir_tcsncpy(ppd.lptzContactName, TranslateT("Reminder"), SIZEOF(ppd.lptzContactName));
}
@@ -391,7 +391,7 @@ static INT NotifyWithPopup(HANDLE hContact, CEvent::EType eventType, INT DaysToA ppd.lchIcon = GetAnnivIcon(CEvent(eventType, DaysToAnniv));
- switch (eventType)
+ switch (eventType)
{
case CEvent::BIRTHDAY:
switch (DB::Setting::GetByte(SET_POPUP_BIRTHDAY_COLORTYPE, POPUP_COLOR_CUSTOM))
@@ -409,7 +409,7 @@ static INT NotifyWithPopup(HANDLE hContact, CEvent::EType eventType, INT DaysToA break;
case CEvent::ANNIVERSARY:
- switch (DB::Setting::GetByte(SET_POPUP_ANNIVERSARY_COLORTYPE, POPUP_COLOR_CUSTOM))
+ switch (DB::Setting::GetByte(SET_POPUP_ANNIVERSARY_COLORTYPE, POPUP_COLOR_CUSTOM))
{
case POPUP_COLOR_WINDOWS:
ppd.colorBack = GetSysColor(COLOR_BTNFACE);
@@ -437,7 +437,7 @@ static INT NotifyWithPopup(HANDLE hContact, CEvent::EType eventType, INT DaysToA **/
static VOID NotifyFlashCListIcon(HANDLE hContact, const CEvent &evt)
{
- if (gRemindOpts.bFlashCList && evt._wDaysLeft == 0)
+ if (gRemindOpts.bFlashCList && evt._wDaysLeft == 0)
{
CLISTEVENT cle ={0};
TCHAR szMsg[MAX_PATH];
@@ -450,9 +450,9 @@ static VOID NotifyFlashCListIcon(HANDLE hContact, const CEvent &evt) switch (evt._eType) {
case CEvent::BIRTHDAY:
{
- mir_sntprintf(szMsg, SIZEOF(szMsg),
- TranslateT("%s has %s today."),
- DB::Contact::DisplayName(hContact),
+ mir_sntprintf(szMsg, SIZEOF(szMsg),
+ TranslateT("%s has %s today."),
+ DB::Contact::DisplayName(hContact),
TranslateT("Birthday"));
cle.hIcon = IcoLib_GetIcon(ICO_COMMON_BIRTHDAY);
}
@@ -462,7 +462,7 @@ static VOID NotifyFlashCListIcon(HANDLE hContact, const CEvent &evt) {
mir_sntprintf(szMsg, SIZEOF(szMsg),
TranslateT("%s has %s today."),
- DB::Contact::DisplayName(hContact),
+ DB::Contact::DisplayName(hContact),
TranslateT("an anniversary"));
cle.hIcon = IcoLib_GetIcon(ICO_COMMON_ANNIVERSARY);
}
@@ -473,7 +473,7 @@ static VOID NotifyFlashCListIcon(HANDLE hContact, const CEvent &evt) }
cle.ptszTooltip = szMsg;
- // pszService = NULL get error (crash),
+ // pszService = NULL get error (crash),
// pszService = "dummy" get 'service not fount' and continue;
cle.pszService = "dummy";
cle.lParam = NULL;
@@ -483,7 +483,7 @@ static VOID NotifyFlashCListIcon(HANDLE hContact, const CEvent &evt) }
/**
- * Play a sound for the nearest upcomming anniversary
+ * Play a sound for the nearest upcoming anniversary
*
* @param evt - structure specifying the next anniversary
*
@@ -492,9 +492,9 @@ static VOID NotifyFlashCListIcon(HANDLE hContact, const CEvent &evt) **/
static BYTE NotifyWithSound(const CEvent &evt)
{
- if (evt._wDaysLeft <= min(DB::Setting::GetByte(SET_REMIND_SOUNDOFFSET, DEFVAL_REMIND_SOUNDOFFSET), gRemindOpts.wDaysEarlier))
+ if (evt._wDaysLeft <= min(DB::Setting::GetByte(SET_REMIND_SOUNDOFFSET, DEFVAL_REMIND_SOUNDOFFSET), gRemindOpts.wDaysEarlier))
{
- switch (evt._eType)
+ switch (evt._eType)
{
case CEvent::BIRTHDAY:
SkinPlaySound(evt._wDaysLeft == 0 ? SOUND_BIRTHDAY_TODAY : SOUND_BIRTHDAY_SOON);
@@ -514,7 +514,7 @@ static BYTE NotifyWithSound(const CEvent &evt) static LPCTSTR ContactGender(HANDLE hContact)
{
- switch (GenderOf(hContact))
+ switch (GenderOf(hContact))
{
case 'M': return TranslateT("He");
case 'F': return TranslateT("She");
@@ -535,7 +535,7 @@ static BOOLEAN CheckAnniversaries(HANDLE hContact, MTime &Now, CEvent &evt, BOOL if ((gRemindOpts.RemindState == REMIND_ANNIV) || (gRemindOpts.RemindState == REMIND_ALL))
{
- for (i = 0; i < ANID_LAST && !mta.DBGetAnniversaryDate(hContact, i); i++)
+ for (i = 0; i < ANID_LAST && !mta.DBGetAnniversaryDate(hContact, i); i++)
{
mta.DBGetReminderOpts(hContact);
@@ -546,54 +546,54 @@ static BOOLEAN CheckAnniversaries(HANDLE hContact, MTime &Now, CEvent &evt, BOOL {
wDaysEarlier = gRemindOpts.wDaysEarlier;
}
-
+
Diff = mta.CompareDays(Now);
if ((Diff >= 0) && (Diff <= wDaysEarlier))
{
- if (evt._wDaysLeft > Diff)
+ if (evt._wDaysLeft > Diff)
{
evt._wDaysLeft = Diff;
evt._eType = CEvent::ANNIVERSARY;
}
numAnniversaries++;
-
+
// create displayed text for popup
if (bNotify && !bOverflow)
{
// first anniversary found
- if (numAnniversaries == 1)
+ if (numAnniversaries == 1)
{
- mir_sntprintf(szAnniv, MAX_PATH,
- TranslateT("%s has the following anniversaries:\0"),
+ mir_sntprintf(szAnniv, MAX_PATH,
+ TranslateT("%s has the following anniversaries:\0"),
ContactGender(hContact));
mir_tcsncpy(strMsg, szAnniv, mir_tcslen(szAnniv));
}
- switch (Diff)
+ switch (Diff)
{
- case 0:
+ case 0:
{
- mir_sntprintf(szAnniv, MAX_PATH,
- TranslateT("%d. %s today\0"),
+ mir_sntprintf(szAnniv, MAX_PATH,
+ TranslateT("%d. %s today\0"),
mta.Age(), mta.Description());
}
break;
-
- case 1:
+
+ case 1:
{
- mir_sntprintf(szAnniv, MAX_PATH,
- TranslateT("%d. %s tomorrow\0"),
+ mir_sntprintf(szAnniv, MAX_PATH,
+ TranslateT("%d. %s tomorrow\0"),
mta.Age() + 1, mta.Description());
}
break;
default:
{
- mir_sntprintf(szAnniv, MAX_PATH,
- TranslateT("%d. %s in %d days\0"),
+ mir_sntprintf(szAnniv, MAX_PATH,
+ TranslateT("%d. %s in %d days\0"),
mta.Age() + 1, mta.Description(), Diff);
}
}
- if (mir_tcslen(szAnniv) >= MAX_SECONDLINE - mir_tcslen(strMsg))
+ if (mir_tcslen(szAnniv) >= MAX_SECONDLINE - mir_tcslen(strMsg))
{
if (strMsg)
mir_tcsncat(strMsg, _T("\n...\0"), SIZEOF(strMsg));
@@ -601,7 +601,7 @@ static BOOLEAN CheckAnniversaries(HANDLE hContact, MTime &Now, CEvent &evt, BOOL mir_tcsncpy(strMsg, _T("\n...\0"), mir_tcslen(_T("\n...\0")));
bOverflow = TRUE;
}
- else
+ else
{
if (strMsg)
mir_tcsncat(strMsg, _T("\n- \0"), SIZEOF(strMsg));
@@ -615,7 +615,7 @@ static BOOLEAN CheckAnniversaries(HANDLE hContact, MTime &Now, CEvent &evt, BOOL }
}
// show one popup for all anniversaries
- if (numAnniversaries != 0 && bNotify)
+ if (numAnniversaries != 0 && bNotify)
{
NotifyWithPopup(hContact, CEvent::ANNIVERSARY, Diff, LPGENT("Anniversaries"), strMsg);
}
@@ -648,13 +648,13 @@ static BOOLEAN CheckBirthday(HANDLE hContact, MTime &Now, CEvent &evt, BOOLEAN b WORD wDaysEarlier;
mtb.DBGetReminderOpts(hContact);
-
+
// make backup of each protocol based birthday
if (DB::Setting::GetByte(SET_REMIND_SECUREBIRTHDAY, TRUE))
{
mtb.BackupBirthday(hContact, NULL, 0, LastAnwer);
}
-
+
if (mtb.RemindOption() != BST_UNCHECKED)
{
wDaysEarlier = (mtb.RemindOption() == BST_CHECKED) ? mtb.RemindOffset() : -1;
@@ -662,22 +662,22 @@ static BOOLEAN CheckBirthday(HANDLE hContact, MTime &Now, CEvent &evt, BOOLEAN b {
wDaysEarlier = gRemindOpts.wDaysEarlier;
}
-
+
Diff = mtb.CompareDays(Now);
if ((Diff >= 0) && (Diff <= wDaysEarlier))
{
- if (evt._wDaysLeft > Diff)
+ if (evt._wDaysLeft > Diff)
{
evt._wDaysLeft = Diff;
evt._eType = CEvent::BIRTHDAY;
}
- if (bNotify)
+ if (bNotify)
{
TCHAR szMsg[MAXDATASIZE];
WORD cchMsg = 0;
- switch (Diff)
+ switch (Diff)
{
case 0:
{
@@ -730,18 +730,18 @@ static BOOLEAN CheckBirthday(HANDLE hContact, MTime &Now, CEvent &evt, BOOLEAN b static VOID CheckContact(HANDLE hContact, MTime &Now, CEvent &evt, BOOLEAN bNotify, PWORD LastAnwer = 0)
{
// ignore meta subcontacts here as their birthday information are collected explicitly
- if (hContact &&
+ if (hContact &&
(!gRemindOpts.bCheckVisibleOnly || !DB::Setting::GetByte(hContact, MOD_CLIST, "Hidden", FALSE)) &&
(!DB::MetaContact::IsSub(hContact)))
{
CEvent ca;
- if (CheckBirthday(hContact, Now, ca, bNotify, LastAnwer) ||
- CheckAnniversaries(hContact, Now, ca, bNotify))
+ if (CheckBirthday(hContact, Now, ca, bNotify, LastAnwer) ||
+ CheckAnniversaries(hContact, Now, ca, bNotify))
{
evt << ca;
- if (bNotify)
+ if (bNotify)
{
NotifyFlashCListIcon(hContact, ca);
}
@@ -759,7 +759,7 @@ static VOID CheckContact(HANDLE hContact, MTime &Now, CEvent &evt, BOOLEAN bNoti **/
VOID SvcReminderCheckAll(const ENotify notify)
{
- if (gRemindOpts.RemindState != REMIND_OFF)
+ if (gRemindOpts.RemindState != REMIND_OFF)
{
HANDLE hContact;
CEvent evt;
@@ -776,13 +776,13 @@ VOID SvcReminderCheckAll(const ENotify notify) CheckContact(hContact, now, evt, notify != NOTIFY_CLIST, &a1);
}
- if (notify != NOTIFY_CLIST)
+ if (notify != NOTIFY_CLIST)
{
// play sound for the next anniversary
NotifyWithSound(evt);
// popup anniversary list
- if (DB::Setting::GetByte(SET_ANNIVLIST_POPUP, FALSE))
+ if (DB::Setting::GetByte(SET_ANNIVLIST_POPUP, FALSE))
{
DlgAnniversaryListShow(0, 0);
}
@@ -835,7 +835,7 @@ static INT OnCListRebuildIcons(WPARAM, LPARAM) **/
INT OnCListApplyIcon(HANDLE hContact, LPARAM)
{
- if (gRemindOpts.RemindState != REMIND_OFF)
+ if (gRemindOpts.RemindState != REMIND_OFF)
{
CEvent evt;
MTime now;
@@ -863,7 +863,7 @@ static INT OnContactSettingChanged(HANDLE hContact, DBCONTACTWRITESETTING* pdbcw pdbcws && pdbcws->szSetting && // setting structure valid
(pdbcws->value.type < DBVT_DWORD) && // anniversary datatype
(gRemindOpts.RemindState != REMIND_OFF) && // reminder active
- (!strncmp(pdbcws->szSetting, "Birth", 5) ||
+ (!strncmp(pdbcws->szSetting, "Birth", 5) ||
!strncmp(pdbcws->szSetting, "Anniv", 5) ||
!strncmp(pdbcws->szSetting, "DOB", 3)))
{
@@ -950,14 +950,14 @@ static INT_PTR BackupBirthdayService(WPARAM wParam, LPARAM lParam) HANDLE hContact = (HANDLE)wParam;
MAnnivDate mdb;
- if (hContact)
+ if (hContact)
{
if (!mdb.DBGetBirthDate(hContact))
{
mdb.BackupBirthday(hContact, NULL, TRUE);
}
}
- else
+ else
{
WORD a1 = 0;
@@ -973,7 +973,7 @@ static INT_PTR BackupBirthdayService(WPARAM wParam, LPARAM lParam) }
}
- if (lParam != TRUE)
+ if (lParam != TRUE)
{
MSGBOX mBox;
@@ -1014,7 +1014,7 @@ LPCSTR SvcReminderGetMyBirthdayModule() * @param dwTime - not used
* @return nothing
**/
-static VOID CALLBACK TimerProc_DateChanged(HWND, UINT, UINT_PTR, DWORD)
+static VOID CALLBACK TimerProc_DateChanged(HWND, UINT, UINT_PTR, DWORD)
{
static MTime last;
MTime now;
@@ -1036,7 +1036,7 @@ static VOID CALLBACK TimerProc_DateChanged(HWND, UINT, UINT_PTR, DWORD) *
* @return nothing
**/
-static VOID CALLBACK TimerProc_Check(HWND, UINT, UINT_PTR, DWORD)
+static VOID CALLBACK TimerProc_Check(HWND, UINT, UINT_PTR, DWORD)
{
SvcReminderCheckAll(NOTIFY_POPUP);
}
@@ -1052,12 +1052,12 @@ static VOID UpdateTimer(BOOLEAN bStartup) {
LONG wNotifyInterval = 60 * 60 * (LONG)DB::Setting::GetWord(MODNAME, SET_REMIND_NOTIFYINTERVAL, DEFVAL_REMIND_NOTIFYINTERVAL);
MTime now, last;
-
+
now.GetTimeUTC();
-
+
if (bStartup) {
last.DBGetStamp(NULL, MODNAME, SET_REMIND_LASTCHECK);
-
+
// if last check occured at least one day before just do it on startup again
if (now.Year() > last.Year() || now.Month() > last.Month() || now.Day() > last.Day() || DB::Setting::GetByte(SET_REMIND_CHECKON_STARTUP, FALSE))
wNotifyInterval = 5;
@@ -1206,12 +1206,12 @@ VOID SvcReminderUnloadModule(VOID) ghRemindTimer = 0;
KillTimer(0, ghRemindDateChangeTimer);
ghRemindDateChangeTimer = 0;
-
+
// unhook event handlers
- UnhookEvent(ghCListIR);
+ UnhookEvent(ghCListIR);
ghCListIR = 0;
- UnhookEvent(ghCListIA);
+ UnhookEvent(ghCListIA);
ghCListIA = 0;
- UnhookEvent(ghSettingsChanged);
+ UnhookEvent(ghSettingsChanged);
ghSettingsChanged = 0;
}
diff --git a/plugins/UserInfoEx/userinfoex-translation.txt b/plugins/UserInfoEx/userinfoex-translation.txt index 576b769cb9..7c9a8734ad 100644 --- a/plugins/UserInfoEx/userinfoex-translation.txt +++ b/plugins/UserInfoEx/userinfoex-translation.txt @@ -162,7 +162,7 @@ ;[Title:]
;[TreeView]
;[Uncheck all]
-;[Upcomming anniversaries\nThis list gives you some overview about all your contact's anniversaries.]
+;[Upcoming anniversaries\nThis list gives you some overview about all your contact's anniversaries.]
;[Use &unknown flag if country can not be determined]
;[Use Windows Timezone]
;[Use Windows colours]
|