Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.3 KiB

  1. // NMWbObj.h : Declaration of the CNMWbObj
  2. #ifndef __NMWBOBJ_H_
  3. #define __NMWBOBJ_H_
  4. #include <igccapp.h>
  5. #include "resource.h" // main symbols
  6. #include <it120app.h>
  7. //Microsoft non-collapsing capabilities values....
  8. enum NonCollapsCaps
  9. {
  10. _iT126_TEXT_CAPABILITY_ID = 0,
  11. _iT126_24BIT_BITMAP_ID,
  12. _iT126_LAST_NON_COLLAPSING_CAPABILITIES
  13. };
  14. LRESULT WbMainWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
  15. enum eMenuPos { MENUPOS_FILE = 0,
  16. MENUPOS_EDIT,
  17. MENUPOS_VIEW,
  18. MENUPOS_TOOLS};
  19. // Forward Decls
  20. class CNMWbObj;
  21. #define ICON_BIG_SIZE 32
  22. #define ICON_SMALL_SIZE 16
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CNMWbObj
  25. class CNMWbObj
  26. {
  27. public: // Construction/destruction and initialization
  28. CNMWbObj();
  29. ~CNMWbObj();
  30. ULONG GetNumberOfMembers(void){return m_cOtherMembers;}
  31. BOOL m_bImTheTopProvider;
  32. BOOL m_bImTheT126Refresher;
  33. BOOL m_bICanDo24BitBitmaps;
  34. BOOL m_bConferenceCanDo24BitBitmaps;
  35. BOOL m_bConferenceCanDoText;
  36. BOOL m_bConferenceOnlyNetmeetingNodes;
  37. BOOL CanDo24BitBitmaps(){return m_bConferenceCanDo24BitBitmaps;}
  38. BOOL CanDoText(){return m_bConferenceCanDoText;}
  39. ULONG m_LockerID;
  40. UINT m_instanceNumber;
  41. //
  42. // T120 stuff
  43. //
  44. IT120Applet *m_pApplet;
  45. IT120AppletSession *m_pAppletSession;
  46. T120JoinSessionRequest m_JoinSessionReq;
  47. T120ResourceRequest m_tokenResourceRequest;
  48. T120TokenRequest m_tokenRequest;
  49. T120ConfID m_nConfID;
  50. T120UserID m_uidMyself;
  51. T120SessionID m_sidMyself;
  52. T120EntityID m_eidMyself;
  53. T120NodeID m_nidMyself;
  54. ULONG m_cOtherMembers;
  55. MEMBER_ID *m_aMembers;
  56. BOOL m_fInConference;
  57. BOOL IsInConference(void) { return m_fInConference; }
  58. T120ConfID GetConfID(void) { return m_nConfID; }
  59. void OnPermitToEnroll(T120ConfID, BOOL fPermissionGranted);
  60. void OnJoinSessionConfirm(T120JoinSessionConfirm *);
  61. void OnAllocateHandleConfirm(GCCRegAllocateHandleConfirm *);
  62. void OnRosterIndication(ULONG cRosters, GCCAppRoster *apRosters[]);
  63. void CleanupPerConf(void);
  64. void BuildCaps(void);
  65. T120Error SendData(T120Priority ePriority, ULONG cb, PBYTE pb);
  66. T120Error AllocateHandles(ULONG cHandles);
  67. T120Error GrabRefresherToken(void);
  68. HRESULT _UpdateContainerCaption( void );
  69. };
  70. #endif //__NMWBOBJ_H_