~ubuntu-branches/ubuntu/karmic/mumble/karmic-updates

« back to all changes in this revision

Viewing changes to src/mumble/G15LCDEngine_unix.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi, Patrick Matthäi, Thorvald Natvig
  • Date: 2009-02-04 10:32:16 UTC
  • mfrom: (1.2.1 upstream) (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090204103216-vqx5fmlruwzn3uh2
[ Patrick Matthäi ]
* Add a mumble-dbg package, which contains the debugging symbols of mumble
  and mumble-server.
* Move swedish translation debian/sv.po to debian/po/sv.po.
  This was a bad error of mine.
* Remove debian/patches and dpatch, everything has been merged by upstream.

[ Thorvald Natvig ]
* New upstream release.
  Closes: #513119
* Added Spanish translation from Álvaro M. Recio
* Synchronized copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2005-2009, Thorvald Natvig <thorvald@natvig.com>
 
2
   Copyright (C) 2008-2009, Mikkel Krautz <mikkel@krautz.dk>
 
3
 
 
4
   All rights reserved.
 
5
 
 
6
   Redistribution and use in source and binary forms, with or without
 
7
   modification, are permitted provided that the following conditions
 
8
   are met:
 
9
 
 
10
   - Redistributions of source code must retain the above copyright notice,
 
11
     this list of conditions and the following disclaimer.
 
12
   - Redistributions in binary form must reproduce the above copyright notice,
 
13
     this list of conditions and the following disclaimer in the documentation
 
14
     and/or other materials provided with the distribution.
 
15
   - Neither the name of the Mumble Developers nor the names of its
 
16
     contributors may be used to endorse or promote products derived from this
 
17
     software without specific prior written permission.
 
18
 
 
19
   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 
20
   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 
21
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
22
   A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
 
23
   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 
24
   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 
25
   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 
26
   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 
27
   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 
28
   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 
29
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
30
*/
 
31
 
 
32
#ifndef __G15LCDENGINE_UNIX__
 
33
#define __G15LCDENGINE_UNIX__
 
34
 
 
35
#include "mumble_pch.hpp"
 
36
#include "LCD.h"
 
37
 
 
38
#include <g15daemon_client.h>
 
39
 
 
40
class G15LCDDeviceUnix;
 
41
 
 
42
class G15LCDEngineUnix : public LCDEngine {
 
43
                friend class G15LCDDeviceUnix;
 
44
        protected:
 
45
                int sock;
 
46
        public:
 
47
                G15LCDEngineUnix();
 
48
                ~G15LCDEngineUnix();
 
49
                QList<LCDDevice *> devices() const;
 
50
};
 
51
 
 
52
class G15LCDDeviceUnix : public LCDDevice {
 
53
        protected:
 
54
                bool bUnavailable;
 
55
                bool bEnabled;
 
56
                G15LCDEngineUnix *engine;
 
57
        public:
 
58
                G15LCDDeviceUnix(G15LCDEngineUnix *e);
 
59
                ~G15LCDDeviceUnix();
 
60
                bool enabled();
 
61
                void setEnabled(bool e);
 
62
                void blitImage(QImage *img, bool alert);
 
63
                QString name() const;
 
64
                Type type() const;
 
65
                QSize size() const;
 
66
};
 
67
 
 
68
#else
 
69
class G15LCDEngineUnix;
 
70
class G15LCDDeviceUnix;
 
71
#endif