diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-22 13:54:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-22 13:54:34 +0000 |
commit | 859b6bd987e8156ddbcbefa6ea71761a4a61d642 (patch) | |
tree | 330bc094616ad46fd0e31d1ce8753b1c288d10ef /plugins/UserInfoEx/src/Flags/svc_flags.h | |
parent | b9f75062c18da7119477fa60bd05c9eb1f97d2ee (diff) |
- less crazy variant of async calls;
- list management is protected by a critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@7337 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/Flags/svc_flags.h')
-rw-r--r-- | plugins/UserInfoEx/src/Flags/svc_flags.h | 72 |
1 files changed, 33 insertions, 39 deletions
diff --git a/plugins/UserInfoEx/src/Flags/svc_flags.h b/plugins/UserInfoEx/src/Flags/svc_flags.h index 19229be687..6d63f5146b 100644 --- a/plugins/UserInfoEx/src/Flags/svc_flags.h +++ b/plugins/UserInfoEx/src/Flags/svc_flags.h @@ -22,61 +22,55 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#ifndef _UINFOEX_FLAGS_H_INCLUDED_
-#define _UINFOEX_FLAGS_H_INCLUDED_
+#ifndef _UINFOEX_FLAGS_H_INCLUDED_
+#define _UINFOEX_FLAGS_H_INCLUDED_
#define EXTRAIMAGE_REFRESHDELAY 100 /* time for which setting changes are buffered */
#define STATUSICON_REFRESHDELAY 100 /* time for which setting changes are buffered */
-typedef struct _FLAGSOPTIONS
+struct FLAGSOPTIONS
{
BYTE bShowExtraImgFlag;
BYTE bUseUnknownFlag;
BYTE bShowStatusIconFlag;
-} FLAGSOPTIONS, *LPFLAGSOPTIONS;
+};
extern FLAGSOPTIONS gFlagsOpts;
-class MsgWndData {
- public:
- HANDLE m_hContact;
- HWND m_hwnd;
- int m_countryID;
-
- MsgWndData(HWND hwnd, HANDLE hContact);
- ~MsgWndData();
-
- void FlagsIconSet();
- void FlagsIconUnset();
- void FlagsIconUpdate() {
- gFlagsOpts.bShowStatusIconFlag ? FlagsIconSet():FlagsIconUnset();
- };
- void ContryIDchange(int ID) {
- m_countryID = ID; FlagsIconUpdate();
- };
+struct MsgWndData
+{
+ HANDLE m_hContact;
+ HWND m_hwnd;
+ int m_countryID;
+
+ MsgWndData(HWND hwnd, HANDLE hContact);
+ ~MsgWndData();
+
+ void FlagsIconSet();
+ void FlagsIconUnset();
+ void FlagsIconUpdate()
+ {
+ gFlagsOpts.bShowStatusIconFlag ? FlagsIconSet() : FlagsIconUnset();
+ }
+ void ContryIDchange(int ID)
+ {
+ m_countryID = ID; FlagsIconUpdate();
+ }
};
-class IconList {
- public:
- int m_ID;
- HANDLE m_hIcon; //register
- BYTE m_TypeFlag;
- StatusIconData m_StatusIconData;
-
- IconList(StatusIconData* sid);
-// IconList(HWND hwnd, HANDLE hContact);
- ~IconList();
+struct IconList
+{
+ int m_ID;
+ BYTE m_TypeFlag;
+ HANDLE m_hIcon;
+ StatusIconData m_StatusIconData;
+ IconList(StatusIconData *sid);
+ ~IconList();
};
typedef void (CALLBACK *BUFFEREDPROC)(LPARAM lParam);
-#ifdef _DEBUG
- void _CallFunctionBuffered(BUFFEREDPROC pfnBuffProc,const char *pszProcName,LPARAM lParam,BOOL fAccumulateSameParam,UINT uElapse);
- #define CallFunctionBuffered(proc,param,acc,elapse) _CallFunctionBuffered(proc,#proc,param,acc,elapse)
-#else
- void _CallFunctionBuffered(BUFFEREDPROC pfnBuffProc,LPARAM lParam,BOOL fAccumulateSameParam,UINT uElapse);
- #define CallFunctionBuffered(proc,param,acc,elapse) _CallFunctionBuffered(proc,param,acc,elapse)
-#endif
+void CallFunctionBuffered(BUFFEREDPROC pfnBuffProc, LPARAM lParam, BOOL fAccumulateSameParam, UINT uElapse);
void EnsureExtraImages();
void SvcFlagsEnableExtraIcons(BYTE bEnable, BYTE bUpdateDB);
@@ -86,4 +80,4 @@ void SvcFlagsLoadModule(); void SvcFlagsOnModulesLoaded();
void SvcFlagsUnloadModule();
-#endif /* _UINFOEX_FLAGS_H_INCLUDED_ */
\ No newline at end of file +#endif /* _UINFOEX_FLAGS_H_INCLUDED_ */
|