2
* synergy -- mouse and keyboard sharing utility
3
* Copyright (C) 2003 Chris Schoeneman
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.
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.
15
#ifndef CCLIENTTASKBARRECEIVER_H
16
#define CCLIENTTASKBARRECEIVER_H
20
#include "IArchTaskBarReceiver.h"
25
//! Implementation of IArchTaskBarReceiver for the synergy server
26
class CClientTaskBarReceiver : public IArchTaskBarReceiver {
36
CClientTaskBarReceiver();
37
virtual ~CClientTaskBarReceiver();
39
//! @name manipulators
44
Sets the server. The receiver will query state from this server.
46
void setClient(CClient*);
50
Sets the current server state.
52
void setState(EState);
54
//! Set the quit job that causes the server to quit
56
Set the job that causes the server to quit.
58
void setQuitJob(IJob* adopted);
66
Returns the current server state. The receiver is not locked
67
by this call; the caller must do the locking.
69
EState getState() const;
73
Returns the server set by \c setClient().
75
CClient* getClient() const;
79
// IArchTaskBarReceiver overrides
80
virtual void showStatus() = 0;
81
virtual void runMenu(int x, int y) = 0;
82
virtual void primaryAction() = 0;
83
virtual void lock() const;
84
virtual void unlock() const;
85
virtual const Icon getIcon() const = 0;
86
virtual std::string getToolTip() const;
91
//! Status change notification
93
Called when status changes. The default implementation does
96
virtual void onStatusChanged();
99
void statusChanged(void*);
107
CString m_errorMessage;