00001 /* 00002 This file is part of the Opie Project 00003 =. Copyright (C) 2004 Rajko 'Alwin' Albrecht <alwin@handhelds.org> 00004 .=l. Copyright (C) The Opie Team <opie-devel@handhelds.org> 00005 .>+-= 00006 _;:, .> :=|. This program is free software; you can 00007 .> <`_, > . <= redistribute it and/or modify it under 00008 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00009 .="- .-=="i, .._ License as published by the Free Software 00010 - . .-<_> .<> Foundation; either version 2 of the License, 00011 ._= =} : or (at your option) any later version. 00012 .%`+i> _;_. 00013 .i_,=:_. -<s. This program is distributed in the hope that 00014 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00015 : .. .:, . . . without even the implied warranty of 00016 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00017 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00018 ..}^=.= = ; Library General Public License for more 00019 ++= -. .` .: details. 00020 : = ...= . :.=- 00021 -. .:....=;==+<; You should have received a copy of the GNU 00022 -_. . . )=. = Library General Public License along with 00023 -- :-=` this library; see the file COPYING.LIB. 00024 If not, write to the Free Software Foundation, 00025 Inc., 59 Temple Place - Suite 330, 00026 Boston, MA 02111-1307, USA. 00027 */ 00028 00029 /* QT */ 00030 #include <qwindowsystem_qws.h> 00031 #include <qvaluelist.h> 00032 00033 namespace Opie { 00034 namespace Core { 00035 class ODevice; 00036 00037 00047 class OKeyFilter 00048 { 00049 friend class Opie::Core::ODevice; 00050 00051 protected: 00056 OKeyFilter(); 00061 OKeyFilter(const OKeyFilter&){}; 00068 virtual void addPreHandler(QWSServer::KeyboardFilter *aFilter)=0; 00075 virtual void remPreHandler(QWSServer::KeyboardFilter *aFilter)=0; 00076 00077 public: 00078 virtual ~OKeyFilter(); 00084 virtual void addHandler(QWSServer::KeyboardFilter *aFilter)=0; 00090 virtual void remHandler(QWSServer::KeyboardFilter *aFilter)=0; 00091 00096 static OKeyFilter*inst(); 00097 }; 00098 00099 } 00100 }
1.4.2