summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2004-01-27 18:56:29 (UTC)
committer zecke <zecke>2004-01-27 18:56:29 (UTC)
commitec32e99fae963a97b527c2c54813a96c284d99cf (patch) (unidiff)
tree6ccfe6c127c8f9a32e1fa6cf6eb5385bd18f9267 /libopie2
parent829b13ec0e4ffb359ab39c16c564719908173ffa (diff)
downloadopie-ec32e99fae963a97b527c2c54813a96c284d99cf.zip
opie-ec32e99fae963a97b527c2c54813a96c284d99cf.tar.gz
opie-ec32e99fae963a97b527c2c54813a96c284d99cf.tar.bz2
Guess what? return QS_FALSE;
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/otaskbarapplet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opieui/otaskbarapplet.h b/libopie2/opieui/otaskbarapplet.h
index 686b91a..773aba4 100644
--- a/libopie2/opieui/otaskbarapplet.h
+++ b/libopie2/opieui/otaskbarapplet.h
@@ -29,64 +29,66 @@
29 29
30*/ 30*/
31 31
32#ifndef OTASKBARAPPLET_H 32#ifndef OTASKBARAPPLET_H
33#define OTASKBARAPPLET_H 33#define OTASKBARAPPLET_H
34 34
35#include <qpe/taskbarappletinterface.h> 35#include <qpe/taskbarappletinterface.h>
36 36
37/*====================================================================================== 37/*======================================================================================
38 * OTaskbarAppletWrapper 38 * OTaskbarAppletWrapper
39 *======================================================================================*/ 39 *======================================================================================*/
40 40
41template<class T> class OTaskbarAppletWrapper : public TaskbarAppletInterface 41template<class T> class OTaskbarAppletWrapper : public TaskbarAppletInterface
42{ 42{
43 public: 43 public:
44 OTaskbarAppletWrapper():_applet( 0 ), ref( 0 ) 44 OTaskbarAppletWrapper():_applet( 0 ), ref( 0 )
45 { 45 {
46 } 46 }
47 47
48 virtual ~OTaskbarAppletWrapper() 48 virtual ~OTaskbarAppletWrapper()
49 { 49 {
50 delete _applet; 50 delete _applet;
51 } 51 }
52 52
53 QRESULT queryInterface( const QUuid& uuid, QUnknownInterface** iface ) 53 QRESULT queryInterface( const QUuid& uuid, QUnknownInterface** iface )
54 { 54 {
55 qDebug( "OTaskbarAppletWrapper::queryInterface()" ); 55 qDebug( "OTaskbarAppletWrapper::queryInterface()" );
56 *iface = 0; 56 *iface = 0;
57 if ( uuid == IID_QUnknown ) 57 if ( uuid == IID_QUnknown )
58 *iface = this; 58 *iface = this;
59 else if ( uuid == IID_TaskbarApplet ) 59 else if ( uuid == IID_TaskbarApplet )
60 *iface = this; 60 *iface = this;
61 else
62 return QS_FALSE;
61 63
62 if ( *iface ) (*iface)->addRef(); 64 if ( *iface ) (*iface)->addRef();
63 return QS_OK; 65 return QS_OK;
64 } 66 }
65 67
66 Q_REFCOUNT 68 Q_REFCOUNT
67 69
68 virtual T* applet( QWidget* parent ) 70 virtual T* applet( QWidget* parent )
69 { 71 {
70 if ( !_applet ) _applet = new T( parent ); 72 if ( !_applet ) _applet = new T( parent );
71 return _applet; 73 return _applet;
72 } 74 }
73 75
74 virtual int position() const 76 virtual int position() const
75 { 77 {
76 return T::position(); 78 return T::position();
77 } 79 }
78 80
79 private: 81 private:
80 T* _applet; 82 T* _applet;
81 ulong ref; 83 ulong ref;
82}; 84};
83 85
84#include <qframe.h> 86#include <qframe.h>
85#include <qwidget.h> 87#include <qwidget.h>
86#include <qpe/qpeapplication.h> 88#include <qpe/qpeapplication.h>
87 89
88class QMouseEvent; 90class QMouseEvent;
89 91
90/*====================================================================================== 92/*======================================================================================
91 * OTaskbarApplet 93 * OTaskbarApplet
92 *======================================================================================*/ 94 *======================================================================================*/