diff options
Diffstat (limited to 'include/m_clistint.h')
-rw-r--r-- | include/m_clistint.h | 248 |
1 files changed, 124 insertions, 124 deletions
diff --git a/include/m_clistint.h b/include/m_clistint.h index 625289d709..fc628e8f50 100644 --- a/include/m_clistint.h +++ b/include/m_clistint.h @@ -186,7 +186,7 @@ typedef struct {
HANDLE hContact;
TCHAR* name;
- #if defined( _UNICODE )
+ #if defined(_UNICODE)
char* szName;
#endif
TCHAR* group;
@@ -206,134 +206,134 @@ typedef struct ClcProtoStatus *clcProto;
/* clc.h */
- void ( *pfnClcOptionsChanged )( void );
- void ( *pfnClcBroadcast )( int, WPARAM, LPARAM );
- HMENU ( *pfnBuildGroupPopupMenu )( struct ClcGroup* );
+ void (*pfnClcOptionsChanged)(void);
+ void (*pfnClcBroadcast)(int, WPARAM, LPARAM);
+ HMENU (*pfnBuildGroupPopupMenu)(struct ClcGroup*);
- LRESULT ( CALLBACK *pfnContactListControlWndProc )( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
+ LRESULT (CALLBACK *pfnContactListControlWndProc)(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
/* clcfiledrop.c */
- void ( *pfnRegisterFileDropping )( HWND hwnd );
- void ( *pfnUnregisterFileDropping )( HWND hwnd );
+ void (*pfnRegisterFileDropping)(HWND hwnd);
+ void (*pfnUnregisterFileDropping)(HWND hwnd);
/* clcidents.c */
- int ( *pfnGetRowsPriorTo )( struct ClcGroup *group, struct ClcGroup *subgroup, int contactIndex );
- int ( *pfnFindItem )( HWND hwnd, struct ClcData *dat, HANDLE hItem, struct ClcContact **contact, struct ClcGroup **subgroup, int *isVisible );
- int ( *pfnGetRowByIndex )( struct ClcData *dat, int testindex, struct ClcContact **contact, struct ClcGroup **subgroup );
- HANDLE ( *pfnContactToHItem )( struct ClcContact* contact );
- HANDLE ( *pfnContactToItemHandle )( struct ClcContact * contact, DWORD * nmFlags );
+ int (*pfnGetRowsPriorTo)(struct ClcGroup *group, struct ClcGroup *subgroup, int contactIndex);
+ int (*pfnFindItem)(HWND hwnd, struct ClcData *dat, HANDLE hItem, struct ClcContact **contact, struct ClcGroup **subgroup, int *isVisible);
+ int (*pfnGetRowByIndex)(struct ClcData *dat, int testindex, struct ClcContact **contact, struct ClcGroup **subgroup);
+ HANDLE (*pfnContactToHItem)(struct ClcContact* contact);
+ HANDLE (*pfnContactToItemHandle)(struct ClcContact * contact, DWORD * nmFlags);
/* clcitems.c */
- struct ClcContact* ( *pfnCreateClcContact )( void );
- struct ClcGroup* ( *pfnAddGroup )( HWND hwnd, struct ClcData *dat, const TCHAR *szName, DWORD flags, int groupId, int calcTotalMembers );
- struct ClcGroup* ( *pfnRemoveItemFromGroup )(HWND hwnd, struct ClcGroup *group, struct ClcContact *contact, int updateTotalCount);
-
- void ( *pfnFreeContact )( struct ClcContact *contact );
- void ( *pfnFreeGroup )( struct ClcGroup *group );
-
- int ( *pfnAddInfoItemToGroup )(struct ClcGroup *group, int flags, const TCHAR *pszText);
- int ( *pfnAddItemToGroup )( struct ClcGroup *group, int iAboveItem );
- int ( *pfnAddContactToGroup )( struct ClcData *dat, struct ClcGroup *group, HANDLE hContact );
- void ( *pfnAddContactToTree )( HWND hwnd, struct ClcData *dat, HANDLE hContact, int updateTotalCount, int checkHideOffline);
- void ( *pfnDeleteItemFromTree )( HWND hwnd, HANDLE hItem );
- void ( *pfnRebuildEntireList )( HWND hwnd, struct ClcData *dat );
- int ( *pfnGetGroupContentsCount )( struct ClcGroup *group, int visibleOnly );
- void ( *pfnSortCLC )( HWND hwnd, struct ClcData *dat, int useInsertionSort );
- void ( *pfnSaveStateAndRebuildList )(HWND hwnd, struct ClcData *dat);
+ struct ClcContact* (*pfnCreateClcContact)(void);
+ struct ClcGroup* (*pfnAddGroup)(HWND hwnd, struct ClcData *dat, const TCHAR *szName, DWORD flags, int groupId, int calcTotalMembers);
+ struct ClcGroup* (*pfnRemoveItemFromGroup)(HWND hwnd, struct ClcGroup *group, struct ClcContact *contact, int updateTotalCount);
+
+ void (*pfnFreeContact)(struct ClcContact *contact);
+ void (*pfnFreeGroup)(struct ClcGroup *group);
+
+ int (*pfnAddInfoItemToGroup)(struct ClcGroup *group, int flags, const TCHAR *pszText);
+ int (*pfnAddItemToGroup)(struct ClcGroup *group, int iAboveItem);
+ int (*pfnAddContactToGroup)(struct ClcData *dat, struct ClcGroup *group, HANDLE hContact);
+ void (*pfnAddContactToTree)(HWND hwnd, struct ClcData *dat, HANDLE hContact, int updateTotalCount, int checkHideOffline);
+ void (*pfnDeleteItemFromTree)(HWND hwnd, HANDLE hItem);
+ void (*pfnRebuildEntireList)(HWND hwnd, struct ClcData *dat);
+ int (*pfnGetGroupContentsCount)(struct ClcGroup *group, int visibleOnly);
+ void (*pfnSortCLC)(HWND hwnd, struct ClcData *dat, int useInsertionSort);
+ void (*pfnSaveStateAndRebuildList)(HWND hwnd, struct ClcData *dat);
/* clcmsgs.c */
- LRESULT ( *pfnProcessExternalMessages )(HWND hwnd, struct ClcData *dat, UINT msg, WPARAM wParam, LPARAM lParam );
+ LRESULT (*pfnProcessExternalMessages)(HWND hwnd, struct ClcData *dat, UINT msg, WPARAM wParam, LPARAM lParam);
/* clcpaint.c */
- void ( *pfnPaintClc )( HWND hwnd, struct ClcData *dat, HDC hdc, RECT * rcPaint );
+ void (*pfnPaintClc)(HWND hwnd, struct ClcData *dat, HDC hdc, RECT * rcPaint);
/* clcutils.c */
- char* ( *pfnGetGroupCountsText )(struct ClcData *dat, struct ClcContact *contact );
- int ( *pfnHitTest )( HWND hwnd, struct ClcData *dat, int testx, int testy, struct ClcContact **contact, struct ClcGroup **group, DWORD * flags );
- void ( *pfnScrollTo )( HWND hwnd, struct ClcData *dat, int desty, int noSmooth );
- void ( *pfnEnsureVisible )(HWND hwnd, struct ClcData *dat, int iItem, int partialOk );
- void ( *pfnRecalcScrollBar )( HWND hwnd, struct ClcData *dat );
- void ( *pfnSetGroupExpand )( HWND hwnd, struct ClcData *dat, struct ClcGroup *group, int newState );
- void ( *pfnDoSelectionDefaultAction )( HWND hwnd, struct ClcData *dat );
- int ( *pfnFindRowByText )(HWND hwnd, struct ClcData *dat, const TCHAR *text, int prefixOk );
- void ( *pfnEndRename )(HWND hwnd, struct ClcData *dat, int save );
- void ( *pfnDeleteFromContactList )( HWND hwnd, struct ClcData *dat );
- void ( *pfnBeginRenameSelection )( HWND hwnd, struct ClcData *dat );
- void ( *pfnCalcEipPosition )( struct ClcData *dat, struct ClcContact *contact, struct ClcGroup *group, POINT *result);
- int ( *pfnGetDropTargetInformation )( HWND hwnd, struct ClcData *dat, POINT pt );
- int ( *pfnClcStatusToPf2 )( int status );
- int ( *pfnIsHiddenMode )( struct ClcData *dat, int status );
- void ( *pfnHideInfoTip )( HWND hwnd, struct ClcData *dat );
- void ( *pfnNotifyNewContact )( HWND hwnd, HANDLE hContact );
- DWORD ( *pfnGetDefaultExStyle )( void );
- void ( *pfnGetDefaultFontSetting )( int i, LOGFONT* lf, COLORREF* colour );
- void ( *pfnGetFontSetting )( int i, LOGFONT* lf, COLORREF* colour );
- void ( *pfnLoadClcOptions )( HWND hwnd, struct ClcData *dat );
- void ( *pfnRecalculateGroupCheckboxes )( HWND hwnd, struct ClcData *dat );
- void ( *pfnSetGroupChildCheckboxes )( struct ClcGroup *group, int checked );
- void ( *pfnInvalidateItem )( HWND hwnd, struct ClcData *dat, int iItem );
-
- int ( *pfnGetRowBottomY )(struct ClcData *dat, int item);
- int ( *pfnGetRowHeight )(struct ClcData *dat, int item);
- int ( *pfnGetRowTopY )(struct ClcData *dat, int item);
- int ( *pfnGetRowTotalHeight )(struct ClcData *dat);
- int ( *pfnRowHitTest )(struct ClcData *dat, int y);
+ char* (*pfnGetGroupCountsText)(struct ClcData *dat, struct ClcContact *contact);
+ int (*pfnHitTest)(HWND hwnd, struct ClcData *dat, int testx, int testy, struct ClcContact **contact, struct ClcGroup **group, DWORD * flags);
+ void (*pfnScrollTo)(HWND hwnd, struct ClcData *dat, int desty, int noSmooth);
+ void (*pfnEnsureVisible)(HWND hwnd, struct ClcData *dat, int iItem, int partialOk);
+ void (*pfnRecalcScrollBar)(HWND hwnd, struct ClcData *dat);
+ void (*pfnSetGroupExpand)(HWND hwnd, struct ClcData *dat, struct ClcGroup *group, int newState);
+ void (*pfnDoSelectionDefaultAction)(HWND hwnd, struct ClcData *dat);
+ int (*pfnFindRowByText)(HWND hwnd, struct ClcData *dat, const TCHAR *text, int prefixOk);
+ void (*pfnEndRename)(HWND hwnd, struct ClcData *dat, int save);
+ void (*pfnDeleteFromContactList)(HWND hwnd, struct ClcData *dat);
+ void (*pfnBeginRenameSelection)(HWND hwnd, struct ClcData *dat);
+ void (*pfnCalcEipPosition)(struct ClcData *dat, struct ClcContact *contact, struct ClcGroup *group, POINT *result);
+ int (*pfnGetDropTargetInformation)(HWND hwnd, struct ClcData *dat, POINT pt);
+ int (*pfnClcStatusToPf2)(int status);
+ int (*pfnIsHiddenMode)(struct ClcData *dat, int status);
+ void (*pfnHideInfoTip)(HWND hwnd, struct ClcData *dat);
+ void (*pfnNotifyNewContact)(HWND hwnd, HANDLE hContact);
+ DWORD (*pfnGetDefaultExStyle)(void);
+ void (*pfnGetDefaultFontSetting)(int i, LOGFONT* lf, COLORREF* colour);
+ void (*pfnGetFontSetting)(int i, LOGFONT* lf, COLORREF* colour);
+ void (*pfnLoadClcOptions)(HWND hwnd, struct ClcData *dat);
+ void (*pfnRecalculateGroupCheckboxes)(HWND hwnd, struct ClcData *dat);
+ void (*pfnSetGroupChildCheckboxes)(struct ClcGroup *group, int checked);
+ void (*pfnInvalidateItem)(HWND hwnd, struct ClcData *dat, int iItem);
+
+ int (*pfnGetRowBottomY)(struct ClcData *dat, int item);
+ int (*pfnGetRowHeight)(struct ClcData *dat, int item);
+ int (*pfnGetRowTopY)(struct ClcData *dat, int item);
+ int (*pfnGetRowTotalHeight)(struct ClcData *dat);
+ int (*pfnRowHitTest)(struct ClcData *dat, int y);
/* clistevents.c */
- int ( *pfnEventsProcessContactDoubleClick )( HANDLE hContact );
- int ( *pfnEventsProcessTrayDoubleClick )( int );
+ int (*pfnEventsProcessContactDoubleClick)(HANDLE hContact);
+ int (*pfnEventsProcessTrayDoubleClick)(int);
/* clistmod.c */
- int ( *pfnIconFromStatusMode )( const char *szProto, int status, HANDLE hContact );
- int ( *pfnShowHide )( WPARAM, LPARAM );
- TCHAR* ( *pfnGetStatusModeDescription )( int mode, int flags );
+ int (*pfnIconFromStatusMode)(const char *szProto, int status, HANDLE hContact);
+ int (*pfnShowHide)(WPARAM, LPARAM);
+ TCHAR* (*pfnGetStatusModeDescription)(int mode, int flags);
/* clistsettings.c */
- ClcCacheEntryBase* ( *pfnGetCacheEntry )( HANDLE hContact );
- ClcCacheEntryBase* ( *pfnCreateCacheItem )( HANDLE hContact );
- void ( *pfnCheckCacheItem )( ClcCacheEntryBase* );
- void ( *pfnFreeCacheItem )( ClcCacheEntryBase* );
+ ClcCacheEntryBase* (*pfnGetCacheEntry)(HANDLE hContact);
+ ClcCacheEntryBase* (*pfnCreateCacheItem)(HANDLE hContact);
+ void (*pfnCheckCacheItem)(ClcCacheEntryBase*);
+ void (*pfnFreeCacheItem)(ClcCacheEntryBase*);
- TCHAR* ( *pfnGetContactDisplayName )( HANDLE hContact, int mode );
- void ( *pfnInvalidateDisplayNameCacheEntry )( HANDLE hContact );
+ TCHAR* (*pfnGetContactDisplayName)(HANDLE hContact, int mode);
+ void (*pfnInvalidateDisplayNameCacheEntry)(HANDLE hContact);
/* clisttray.c */
- void ( *pfnTrayIconUpdateWithImageList )( int iImage, const TCHAR *szNewTip, char *szPreferredProto );
- void ( *pfnTrayIconUpdateBase )( const char *szChangedProto );
- void ( *pfnTrayIconSetToBase )( char *szPreferredProto );
- void ( *pfnTrayIconIconsChanged )( void );
- int ( *pfnTrayIconPauseAutoHide )( WPARAM wParam, LPARAM lParam );
- INT_PTR ( *pfnTrayIconProcessMessage )( WPARAM wParam, LPARAM lParam );
- int ( *pfnCListTrayNotify )( MIRANDASYSTRAYNOTIFY* );
+ void (*pfnTrayIconUpdateWithImageList)(int iImage, const TCHAR *szNewTip, char *szPreferredProto);
+ void (*pfnTrayIconUpdateBase)(const char *szChangedProto);
+ void (*pfnTrayIconSetToBase)(char *szPreferredProto);
+ void (*pfnTrayIconIconsChanged)(void);
+ int (*pfnTrayIconPauseAutoHide)(WPARAM wParam, LPARAM lParam);
+ INT_PTR (*pfnTrayIconProcessMessage)(WPARAM wParam, LPARAM lParam);
+ int (*pfnCListTrayNotify)(MIRANDASYSTRAYNOTIFY*);
/* clui.c */
- LRESULT ( CALLBACK *pfnContactListWndProc )( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
+ LRESULT (CALLBACK *pfnContactListWndProc)(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
- void ( *pfnCluiProtocolStatusChanged )( int status, const char* szProto );
- void ( *pfnDrawMenuItem )( LPDRAWITEMSTRUCT, HICON, HICON );
- void ( *pfnLoadCluiGlobalOpts )( void );
- BOOL ( *pfnInvalidateRect )( HWND hwnd, CONST RECT* lpRect, BOOL bErase );
- void ( *pfnOnCreateClc )( void );
+ void (*pfnCluiProtocolStatusChanged)(int status, const char* szProto);
+ void (*pfnDrawMenuItem)(LPDRAWITEMSTRUCT, HICON, HICON);
+ void (*pfnLoadCluiGlobalOpts)(void);
+ BOOL (*pfnInvalidateRect)(HWND hwnd, CONST RECT* lpRect, BOOL bErase);
+ void (*pfnOnCreateClc)(void);
/* contact.c */
- void ( *pfnChangeContactIcon )( HANDLE hContact, int iIcon, int add );
- void ( *pfnLoadContactTree )( void );
- int ( *pfnCompareContacts )( const struct ClcContact *contact1, const struct ClcContact *contact2 );
- void ( *pfnSortContacts )( void );
- int ( *pfnSetHideOffline )( WPARAM wParam, LPARAM lParam );
+ void (*pfnChangeContactIcon)(HANDLE hContact, int iIcon, int add);
+ void (*pfnLoadContactTree)(void);
+ int (*pfnCompareContacts)(const struct ClcContact *contact1, const struct ClcContact *contact2);
+ void (*pfnSortContacts)(void);
+ int (*pfnSetHideOffline)(WPARAM wParam, LPARAM lParam);
/* docking.c */
- int ( *pfnDocking_ProcessWindowMessage )( WPARAM wParam, LPARAM lParam );
+ int (*pfnDocking_ProcessWindowMessage)(WPARAM wParam, LPARAM lParam);
/* group.c */
- TCHAR* ( *pfnGetGroupName )( int idx, DWORD* pdwFlags );
- int ( *pfnRenameGroup )( int groupID, TCHAR* newName );
+ TCHAR* (*pfnGetGroupName)(int idx, DWORD* pdwFlags);
+ int (*pfnRenameGroup)(int groupID, TCHAR* newName);
/* keyboard.c */
- int ( *pfnHotKeysRegister )( HWND hwnd );
- void ( *pfnHotKeysUnregister )( HWND hwnd );
- int ( *pfnHotKeysProcess )( HWND hwnd, WPARAM wParam, LPARAM lParam );
- int ( *pfnHotkeysProcessMessage )( WPARAM wParam, LPARAM lParam );
+ int (*pfnHotKeysRegister)(HWND hwnd);
+ void (*pfnHotKeysUnregister)(HWND hwnd);
+ int (*pfnHotKeysProcess)(HWND hwnd, WPARAM wParam, LPARAM lParam);
+ int (*pfnHotkeysProcessMessage)(WPARAM wParam, LPARAM lParam);
/*************************************************************************************
* version 2 - events processing
@@ -341,20 +341,20 @@ typedef struct EventList events;
- struct CListEvent* ( *pfnCreateEvent )( void );
- void ( *pfnFreeEvent )( struct CListEvent* );
+ struct CListEvent* (*pfnCreateEvent)(void);
+ void (*pfnFreeEvent)(struct CListEvent*);
- struct CListEvent* ( *pfnAddEvent )( CLISTEVENT* );
- CLISTEVENT* ( *pfnGetEvent )( HANDLE hContact, int idx );
+ struct CListEvent* (*pfnAddEvent)(CLISTEVENT*);
+ CLISTEVENT* (*pfnGetEvent)(HANDLE hContact, int idx);
- int ( *pfnRemoveEvent )( HANDLE hContact, HANDLE hDbEvent );
- int ( *pfnGetImlIconIndex )( HICON hIcon );
+ int (*pfnRemoveEvent)(HANDLE hContact, HANDLE hDbEvent);
+ int (*pfnGetImlIconIndex)(HICON hIcon);
/*************************************************************************************
* version 3 additions
*************************************************************************************/
- int ( *pfnGetWindowVisibleState )( HWND hWnd, int iStepX, int iStepY );
+ int (*pfnGetWindowVisibleState)(HWND hWnd, int iStepX, int iStepY);
/*************************************************************************************
* version 4 additions (0.7.0.x) - genmenu
@@ -367,12 +367,12 @@ typedef struct int currentStatusMenuItem, currentDesiredStatusMode;
BOOL bDisplayLocked;
- HGENMENU ( *pfnGetProtocolMenu )( const char* );
- int ( *pfnStub2 )( int );
+ HGENMENU (*pfnGetProtocolMenu)(const char*);
+ int (*pfnStub2)(int);
- int ( *pfnGetProtocolVisibility )( const char* );
- int ( *pfnGetProtoIndexByPos )( PROTOCOLDESCRIPTOR** proto, int protoCnt, int Pos);
- void ( *pfnReloadProtoMenus )( void );
+ int (*pfnGetProtocolVisibility)(const char*);
+ int (*pfnGetProtoIndexByPos)(PROTOCOLDESCRIPTOR** proto, int protoCnt, int Pos);
+ void (*pfnReloadProtoMenus)(void);
/*************************************************************************************
* version 5 additions (0.7.0.x) - tray icons
@@ -386,29 +386,29 @@ typedef struct TCHAR* szTip;
BOOL bTrayMenuOnScreen;
- HICON ( *pfnGetIconFromStatusMode )( HANDLE hContact, const char *szProto, int status );
+ HICON (*pfnGetIconFromStatusMode)(HANDLE hContact, const char *szProto, int status);
- void ( *pfnInitTray )( void );
- int ( *pfnTrayIconAdd )( HWND hwnd, const char *szProto, const char *szIconProto, int status );
- int ( *pfnTrayIconDestroy )( HWND hwnd );
- int ( *pfnTrayIconInit )( HWND hwnd );
- TCHAR* ( *pfnTrayIconMakeTooltip )( const TCHAR *szPrefix, const char *szProto );
- void ( *pfnTrayIconRemove )( HWND hwnd, const char *szProto );
- int ( *pfnTrayIconSetBaseInfo )( HICON hIcon, const char *szPreferredProto );
- void ( *pfnTrayIconTaskbarCreated )( HWND hwnd );
- int ( *pfnTrayIconUpdate )( HICON hNewIcon, const TCHAR *szNewTip, const char *szPreferredProto, int isBase );
+ void (*pfnInitTray)(void);
+ int (*pfnTrayIconAdd)(HWND hwnd, const char *szProto, const char *szIconProto, int status);
+ int (*pfnTrayIconDestroy)(HWND hwnd);
+ int (*pfnTrayIconInit)(HWND hwnd);
+ TCHAR* (*pfnTrayIconMakeTooltip)(const TCHAR *szPrefix, const char *szProto);
+ void (*pfnTrayIconRemove)(HWND hwnd, const char *szProto);
+ int (*pfnTrayIconSetBaseInfo)(HICON hIcon, const char *szPreferredProto);
+ void (*pfnTrayIconTaskbarCreated)(HWND hwnd);
+ int (*pfnTrayIconUpdate)(HICON hNewIcon, const TCHAR *szNewTip, const char *szPreferredProto, int isBase);
- void ( *pfnUninitTray )( void );
- void ( *pfnLockTray )( void );
- void ( *pfnUnlockTray )( void );
+ void (*pfnUninitTray)(void);
+ void (*pfnLockTray)(void);
+ void (*pfnUnlockTray)(void);
- VOID ( CALLBACK *pfnTrayCycleTimerProc )( HWND hwnd, UINT message, UINT_PTR idEvent, DWORD dwTime );
+ VOID (CALLBACK *pfnTrayCycleTimerProc)(HWND hwnd, UINT message, UINT_PTR idEvent, DWORD dwTime);
/*************************************************************************************
* version 6 additions (0.8.0.x) - accounts
*************************************************************************************/
- int ( *pfnGetAccountIndexByPos )( int pos );
- int ( *pfnConvertMenu )( CLISTMENUITEM*, TMO_MenuItem* );
+ int (*pfnGetAccountIndexByPos)(int pos);
+ int (*pfnConvertMenu)(CLISTMENUITEM*, TMO_MenuItem*);
}
CLIST_INTERFACE;
|