~ubuntu-branches/ubuntu/natty/synergy/natty

« back to all changes in this revision

Viewing changes to lib/arch/IArchTaskBar.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Lutz
  • Date: 2003-10-31 19:36:30 UTC
  • Revision ID: james.westby@ubuntu.com-20031031193630-knbv79x5az7qh49y
Tags: upstream-1.0.14
ImportĀ upstreamĀ versionĀ 1.0.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
        // Event data is architecture dependent
 
31
        typedef void* Event;
 
32
 
 
33
        //! @name manipulators
 
34
        //@{
 
35
 
 
36
        //! Add a receiver
 
37
        /*!
 
38
        Add a receiver object to be notified of user and application
 
39
        events.  This should be called before other methods.  When
 
40
        the receiver is added to the task bar, its icon appears on
 
41
        the task bar.
 
42
        */
 
43
        virtual void            addReceiver(IArchTaskBarReceiver*) = 0;
 
44
 
 
45
        //! Remove a receiver
 
46
        /*!
 
47
        Remove a receiver object from the task bar.  This removes the
 
48
        icon from the task bar.
 
49
        */
 
50
        virtual void            removeReceiver(IArchTaskBarReceiver*) = 0;
 
51
 
 
52
        //! Update a receiver
 
53
        /*!
 
54
        Updates the display of the receiver on the task bar.  This
 
55
        should be called when the receiver appearance may have changed
 
56
        (e.g. it's icon or tool tip has changed).
 
57
        */
 
58
        virtual void            updateReceiver(IArchTaskBarReceiver*) = 0;
 
59
 
 
60
        //@}
 
61
};
 
62
 
 
63
#endif