summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/okeyfilter.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/okeyfilter.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/okeyfilter.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/libopie2/opiecore/okeyfilter.h b/libopie2/opiecore/okeyfilter.h
index a65bc48..d183641 100644
--- a/libopie2/opiecore/okeyfilter.h
+++ b/libopie2/opiecore/okeyfilter.h
@@ -1,102 +1,97 @@
1/* 1/*
2 This file is part of the Opie Project 2 This file is part of the Opie Project
3 =. Copyright (C) 2004 Rajko 'Alwin' Albrecht <alwin@handhelds.org> 3 =. Copyright (C) 2004 Rajko 'Alwin' Albrecht <alwin@handhelds.org>
4 .=l. Copyright (C) The Opie Team <opie-devel@handhelds.org> 4 .=l. Copyright (C) The Opie Team <opie-devel@handhelds.org>
5 .>+-= 5 .>+-=
6_;:, .> :=|. This program is free software; you can 6_;:, .> :=|. This program is free software; you can
7.> <`_, > . <= redistribute it and/or modify it under 7.> <`_, > . <= redistribute it and/or modify it under
8:`=1 )Y*s>-.-- : the terms of the GNU Library General Public 8:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
9.="- .-=="i, .._ License as published by the Free Software 9.="- .-=="i, .._ License as published by the Free Software
10- . .-<_> .<> Foundation; either version 2 of the License, 10- . .-<_> .<> Foundation; either version 2 of the License,
11 ._= =} : or (at your option) any later version. 11 ._= =} : or (at your option) any later version.
12 .%`+i> _;_. 12 .%`+i> _;_.
13 .i_,=:_. -<s. This program is distributed in the hope that 13 .i_,=:_. -<s. This program is distributed in the hope that
14 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 14 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
15 : .. .:, . . . without even the implied warranty of 15 : .. .:, . . . without even the implied warranty of
16 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 16 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
17 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 17 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
18..}^=.= = ; Library General Public License for more 18..}^=.= = ; Library General Public License for more
19++= -. .` .: details. 19++= -. .` .: details.
20: = ...= . :.=- 20: = ...= . :.=-
21-. .:....=;==+<; You should have received a copy of the GNU 21-. .:....=;==+<; You should have received a copy of the GNU
22 -_. . . )=. = Library General Public License along with 22 -_. . . )=. = Library General Public License along with
23 -- :-=` this library; see the file COPYING.LIB. 23 -- :-=` this library; see the file COPYING.LIB.
24 If not, write to the Free Software Foundation, 24 If not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330, 25 Inc., 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA. 26 Boston, MA 02111-1307, USA.
27*/ 27*/
28 28
29/* QT */ 29/* QT */
30#include <qwindowsystem_qws.h> 30#include <qwindowsystem_qws.h>
31#include <qvaluelist.h> 31#include <qvaluelist.h>
32 32
33namespace Opie { 33namespace Opie {
34namespace Core { 34namespace Core {
35 class ODevice; 35 class ODevice;
36namespace Internal { 36
37 class iPAQ;
38 class SIMpad;
39}
40 37
41/** 38/**
42 * A singleton which will manage all possible keyboard filters inside opie. 39 * A singleton which will manage all possible keyboard filters inside opie.
43 * It makes sure that key handlers of odevice are checked first than the 40 * It makes sure that key handlers of odevice are checked first than the
44 * keyfilters of software. 41 * keyfilters of software.
45 * @short a keyfilter proxy 42 * @short a keyfilter proxy
46 * @see QWSServer::KeyboardFilter 43 * @see QWSServer::KeyboardFilter
47 * @author Rajko Albrecht 44 * @author Rajko Albrecht
48 * @version 1.0 45 * @version 1.0
49 */ 46 */
50class OKeyFilter 47class OKeyFilter
51{ 48{
52 friend class Opie::Core::ODevice; 49 friend class Opie::Core::ODevice;
53 friend class Opie::Core::Internal::iPAQ;
54 friend class Opie::Core::Internal::SIMpad;
55 50
56protected: 51protected:
57 /** 52 /**
58 * Protected constructor - generate class via inst() 53 * Protected constructor - generate class via inst()
59 * @see inst() 54 * @see inst()
60 */ 55 */
61 OKeyFilter(); 56 OKeyFilter();
62 /** 57 /**
63 * Protected constructor - generate class via inst() 58 * Protected constructor - generate class via inst()
64 * @see inst() 59 * @see inst()
65 */ 60 */
66 OKeyFilter(const OKeyFilter&){}; 61 OKeyFilter(const OKeyFilter&){};
67 /** 62 /**
68 * Append filter to the primary list. 63 * Append filter to the primary list.
69 * This is only allowed for friend classes from odevice 64 * This is only allowed for friend classes from odevice
70 * @param aFilter a filter to append 65 * @param aFilter a filter to append
71 * @see addHandler 66 * @see addHandler
72 */ 67 */
73 virtual void addPreHandler(QWSServer::KeyboardFilter*aFilter)=0; 68 virtual void addPreHandler(QWSServer::KeyboardFilter*aFilter)=0;
74 /** 69 /**
75 * Remove the specified filter from list and give back ownership. 70 * Remove the specified filter from list and give back ownership.
76 * This is only allowed for friend classes from odevice 71 * This is only allowed for friend classes from odevice
77 * @param aFilter a filter to remove 72 * @param aFilter a filter to remove
78 * @see remHandler 73 * @see remHandler
79 */ 74 */
80 virtual void remPreHandler(QWSServer::KeyboardFilter*aFilter)=0; 75 virtual void remPreHandler(QWSServer::KeyboardFilter*aFilter)=0;
81 76
82public: 77public:
83 virtual ~OKeyFilter(); 78 virtual ~OKeyFilter();
84 /** 79 /**
85 * Append filter to the secondary list. 80 * Append filter to the secondary list.
86 * @param aFilter a filter to append 81 * @param aFilter a filter to append
87 * @see addPreHandler 82 * @see addPreHandler
88 */ 83 */
89 virtual void addHandler(QWSServer::KeyboardFilter*)=0; 84 virtual void addHandler(QWSServer::KeyboardFilter*)=0;
90 /** 85 /**
91 * Remove the specified filter from list and give back ownership. 86 * Remove the specified filter from list and give back ownership.
92 * @param aFilter a filter to remove 87 * @param aFilter a filter to remove
93 * @see remPreHandler 88 * @see remPreHandler
94 */ 89 */
95 virtual void remHandler(QWSServer::KeyboardFilter*)=0; 90 virtual void remHandler(QWSServer::KeyboardFilter*)=0;
96 91
97 /** 92 /**
98 * Returns a handler to an instance of OKeyFilter 93 * Returns a handler to an instance of OKeyFilter
99 * @return a pointer to a working OKeyFilter 94 * @return a pointer to a working OKeyFilter
100 */ 95 */
101 static OKeyFilter*inst(); 96 static OKeyFilter*inst();
102}; 97};