1 /* 2 * barrier -- mouse and keyboard sharing utility 3 * Copyright (C) 2012-2016 Symless Ltd. 4 * Copyright (C) 2003 Chris Schoeneman 5 * 6 * This package is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * found in the file LICENSE that should have accompanied this file. 9 * 10 * This package is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #include "XWindowsServerTaskBarReceiver.h" 20 #include "arch/Arch.h" 21 22 // 23 // CXWindowsServerTaskBarReceiver 24 // 25 CXWindowsServerTaskBarReceiver(const BufferedLogOutputter *,IEventQueue * events)26CXWindowsServerTaskBarReceiver::CXWindowsServerTaskBarReceiver( 27 const BufferedLogOutputter*, IEventQueue* events) : 28 ServerTaskBarReceiver(events) 29 { 30 // add ourself to the task bar 31 ARCH->addReceiver(this); 32 } 33 ~CXWindowsServerTaskBarReceiver()34CXWindowsServerTaskBarReceiver::~CXWindowsServerTaskBarReceiver() 35 { 36 ARCH->removeReceiver(this); 37 } 38 39 void showStatus()40CXWindowsServerTaskBarReceiver::showStatus() 41 { 42 // do nothing 43 } 44 45 void runMenu(int,int)46CXWindowsServerTaskBarReceiver::runMenu(int, int) 47 { 48 // do nothing 49 } 50 51 void primaryAction()52CXWindowsServerTaskBarReceiver::primaryAction() 53 { 54 // do nothing 55 } 56 57 const IArchTaskBarReceiver::Icon getIcon() const58CXWindowsServerTaskBarReceiver::getIcon() const 59 { 60 return NULL; 61 } 62 63 IArchTaskBarReceiver* createTaskBarReceiver(const BufferedLogOutputter * logBuffer,IEventQueue * events)64createTaskBarReceiver(const BufferedLogOutputter* logBuffer, IEventQueue* events) 65 { 66 return new CXWindowsServerTaskBarReceiver(logBuffer, events); 67 } 68