1 /* 2 Bacula(R) - The Network Backup Solution 3 4 Copyright (C) 2000-2019 Kern Sibbald 5 6 The original author of Bacula is Kern Sibbald, with contributions 7 from many others, a complete list can be found in the file AUTHORS. 8 9 You may use this file and others of this release according to the 10 license defined in the LICENSE file, which includes the Affero General 11 Public License, v3.0 ("AGPLv3") and some additional permissions and 12 terms pursuant to its AGPLv3 Section 7. 13 14 This notice must be preserved when any source code is 15 conveyed and/or propagated. 16 17 Bacula(R) is a registered trademark of Kern Sibbald. 18 */ 19 /* 20 * Kern Sibbald, August 2007 21 * 22 */ 23 24 #ifndef __TRAY_MONITOR_H_ 25 #define __TRAY_MONITOR_H_ 1 26 27 #define WM_TRAYNOTIFY WM_USER+1 28 29 /* Define the trayMonitor class */ 30 class trayMonitor 31 { 32 public: 33 trayMonitor(); 34 ~trayMonitor(); 35 36 void show(bool show); 37 void install(); 38 void update(int bacstat); 39 void sendMessage(DWORD msg, int bacstat); 40 41 static LRESULT CALLBACK trayWinProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam); 42 43 bool m_visible; 44 bool m_installed; 45 UINT m_tbcreated_msg; 46 47 aboutDialog m_about; 48 statusDialog m_status; 49 50 HWND m_hwnd; 51 HMENU m_hmenu; 52 NOTIFYICONDATA m_nid; 53 HICON m_idle_icon; 54 HICON m_running_icon; 55 HICON m_error_icon; 56 HICON m_warn_icon; 57 }; 58 59 #endif /* __TRAY_MONITOR_H_ */ 60