| 1 | /* | 
|---|
| 2 | * synergy -- mouse and keyboard sharing utility | 
|---|
| 3 | * Copyright (C) 2003 Chris Schoeneman | 
|---|
| 4 | * | 
|---|
| 5 | * This package is free software; you can redistribute it and/or | 
|---|
| 6 | * modify it under the terms of the GNU General Public License | 
|---|
| 7 | * found in the file COPYING that should have accompanied this file. | 
|---|
| 8 | * | 
|---|
| 9 | * This package is distributed in the hope that it will be useful, | 
|---|
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 12 | * GNU General Public License for more details. | 
|---|
| 13 | */ | 
|---|
| 14 |  | 
|---|
| 15 | #ifndef IARCHTASKBAR_H | 
|---|
| 16 | #define IARCHTASKBAR_H | 
|---|
| 17 |  | 
|---|
| 18 | #include "IInterface.h" | 
|---|
| 19 |  | 
|---|
| 20 | class IArchTaskBarReceiver; | 
|---|
| 21 |  | 
|---|
| 22 | //! Interface for architecture dependent task bar control | 
|---|
| 23 | /*! | 
|---|
| 24 | This interface defines the task bar icon operations required | 
|---|
| 25 | by synergy.  Each architecture must implement this interface | 
|---|
| 26 | though each operation can be a no-op. | 
|---|
| 27 | */ | 
|---|
| 28 | class IArchTaskBar : public IInterface { | 
|---|
| 29 | public: | 
|---|
| 30 | //! @name manipulators | 
|---|
| 31 | //@{ | 
|---|
| 32 |  | 
|---|
| 33 | //! Add a receiver | 
|---|
| 34 | /*! | 
|---|
| 35 | Add a receiver object to be notified of user and application | 
|---|
| 36 | events.  This should be called before other methods.  When | 
|---|
| 37 | the receiver is added to the task bar, its icon appears on | 
|---|
| 38 | the task bar. | 
|---|
| 39 | */ | 
|---|
| 40 | virtual void            addReceiver(IArchTaskBarReceiver*) = 0; | 
|---|
| 41 |  | 
|---|
| 42 | //! Remove a receiver | 
|---|
| 43 | /*! | 
|---|
| 44 | Remove a receiver object from the task bar.  This removes the | 
|---|
| 45 | icon from the task bar. | 
|---|
| 46 | */ | 
|---|
| 47 | virtual void            removeReceiver(IArchTaskBarReceiver*) = 0; | 
|---|
| 48 |  | 
|---|
| 49 | //! Update a receiver | 
|---|
| 50 | /*! | 
|---|
| 51 | Updates the display of the receiver on the task bar.  This | 
|---|
| 52 | should be called when the receiver appearance may have changed | 
|---|
| 53 | (e.g. it's icon or tool tip has changed). | 
|---|
| 54 | */ | 
|---|
| 55 | virtual void            updateReceiver(IArchTaskBarReceiver*) = 0; | 
|---|
| 56 |  | 
|---|
| 57 | //@} | 
|---|
| 58 | }; | 
|---|
| 59 |  | 
|---|
| 60 | #endif | 
|---|