summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/multikeyapplet/multikeyappletimpl.cpp59
-rw-r--r--core/applets/multikeyapplet/multikeyappletimpl.h39
2 files changed, 0 insertions, 98 deletions
diff --git a/core/applets/multikeyapplet/multikeyappletimpl.cpp b/core/applets/multikeyapplet/multikeyappletimpl.cpp
deleted file mode 100644
index 9fa6ef1..0000000
--- a/core/applets/multikeyapplet/multikeyappletimpl.cpp
+++ b/dev/null
@@ -1,59 +0,0 @@
1/**********************************************************************
2** Copyright (C) 2004 Anton Kachalov mouse@altlinux.ru
3** All rights reserved.
4**
5** This file may be distributed and/or modified under the terms of the
6** GNU General Public License version 2 as published by the Free Software
7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file.
9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12**
13**********************************************************************/
14#include "multikey.h"
15#include "multikeyappletimpl.h"
16
17MultikeyAppletImpl::MultikeyAppletImpl()
18 : kbd(0)
19{
20}
21
22MultikeyAppletImpl::~MultikeyAppletImpl()
23{
24 delete kbd;
25}
26
27QWidget *MultikeyAppletImpl::applet( QWidget *parent )
28{
29 if ( !kbd )
30 kbd = new Multikey(parent);
31 return kbd;
32}
33
34int MultikeyAppletImpl::position() const
35{
36 return 10;
37}
38
39#ifndef QT_NO_COMPONENT
40QRESULT MultikeyAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
41{
42 *iface = 0;
43 if ( uuid == IID_QUnknown )
44 *iface = this;
45 else if ( uuid == IID_TaskbarApplet )
46 *iface = this;
47 else
48 return QS_FALSE;
49
50 if ( *iface )
51 (*iface)->addRef();
52 return QS_OK;
53}
54
55Q_EXPORT_INTERFACE()
56{
57 Q_CREATE_INSTANCE( MultikeyAppletImpl )
58}
59#endif
diff --git a/core/applets/multikeyapplet/multikeyappletimpl.h b/core/applets/multikeyapplet/multikeyappletimpl.h
deleted file mode 100644
index 68962ee..0000000
--- a/core/applets/multikeyapplet/multikeyappletimpl.h
+++ b/dev/null
@@ -1,39 +0,0 @@
1/**********************************************************************
2** Copyright (C) 2004 Anton Kachalov mouse@altlinux.ru
3** All rights reserved.
4**
5** This file may be distributed and/or modified under the terms of the
6** GNU General Public License version 2 as published by the Free Software
7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file.
9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12**
13**********************************************************************/
14#ifndef __MULTIKEYAPPLETIMPL_H__
15#define __MULTIKEYAPPLETIMPL_H__
16
17#include <qpe/taskbarappletinterface.h>
18
19class Multikey;
20
21class MultikeyAppletImpl : public TaskbarAppletInterface
22{
23public:
24 MultikeyAppletImpl();
25 virtual ~MultikeyAppletImpl();
26
27#ifndef QT_NO_COMPONENT
28 QRESULT queryInterface( const QUuid&, QUnknownInterface** );
29 Q_REFCOUNT
30#endif
31
32 virtual QWidget *applet( QWidget *parent );
33 virtual int position() const;
34
35private:
36 Multikey *kbd;
37};
38
39#endif /* __MULTIKEYAPPLETIMPL_H__ */