summaryrefslogtreecommitdiff
authorzecke <zecke>2004-01-27 18:56:29 (UTC)
committer zecke <zecke>2004-01-27 18:56:29 (UTC)
commitec32e99fae963a97b527c2c54813a96c284d99cf (patch) (unidiff)
tree6ccfe6c127c8f9a32e1fa6cf6eb5385bd18f9267
parent829b13ec0e4ffb359ab39c16c564719908173ffa (diff)
downloadopie-ec32e99fae963a97b527c2c54813a96c284d99cf.zip
opie-ec32e99fae963a97b527c2c54813a96c284d99cf.tar.gz
opie-ec32e99fae963a97b527c2c54813a96c284d99cf.tar.bz2
Guess what? return QS_FALSE;
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/otaskbarapplet.h2
-rw-r--r--noncore/todayplugins/fortune/fortunepluginimpl.cpp4
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp4
-rw-r--r--noncore/todayplugins/weather/weatherpluginimpl.cpp3
4 files changed, 10 insertions, 3 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
@@ -49,24 +49,26 @@ template<class T> class OTaskbarAppletWrapper : public TaskbarAppletInterface
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 }
diff --git a/noncore/todayplugins/fortune/fortunepluginimpl.cpp b/noncore/todayplugins/fortune/fortunepluginimpl.cpp
index 466e322..090aaa7 100644
--- a/noncore/todayplugins/fortune/fortunepluginimpl.cpp
+++ b/noncore/todayplugins/fortune/fortunepluginimpl.cpp
@@ -29,21 +29,23 @@ FortunePluginImpl::~FortunePluginImpl()
29 29
30 30
31TodayPluginObject* FortunePluginImpl::guiPart() 31TodayPluginObject* FortunePluginImpl::guiPart()
32{ 32{
33 return fortunePlugin; 33 return fortunePlugin;
34} 34}
35 35
36QRESULT FortunePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) 36QRESULT FortunePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface )
37{ 37{
38 *iface = 0; 38 *iface = 0;
39 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 39 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
40 *iface = this, (*iface)->addRef(); 40 *iface = this, (*iface)->addRef();
41 } 41 }else
42 return QS_FALSE;
43
42 return QS_OK; 44 return QS_OK;
43 45
44} 46}
45 47
46Q_EXPORT_INTERFACE() 48Q_EXPORT_INTERFACE()
47{ 49{
48 Q_CREATE_INSTANCE( FortunePluginImpl ); 50 Q_CREATE_INSTANCE( FortunePluginImpl );
49} 51}
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
index c17781b..ec3e34d 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
@@ -27,20 +27,22 @@ StockTickerPluginImpl::~StockTickerPluginImpl() {
27 delete stocktickerPlugin; 27 delete stocktickerPlugin;
28} 28}
29 29
30 30
31TodayPluginObject* StockTickerPluginImpl::guiPart() { 31TodayPluginObject* StockTickerPluginImpl::guiPart() {
32 return stocktickerPlugin; 32 return stocktickerPlugin;
33} 33}
34 34
35QRESULT StockTickerPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 35QRESULT StockTickerPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
36 *iface = 0; 36 *iface = 0;
37 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 37 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
38 *iface = this, (*iface)->addRef(); 38 *iface = this, (*iface)->addRef();
39 } 39 }else
40 return QS_FALSE;
41
40 return QS_OK; 42 return QS_OK;
41 43
42} 44}
43 45
44Q_EXPORT_INTERFACE() { 46Q_EXPORT_INTERFACE() {
45 Q_CREATE_INSTANCE( StockTickerPluginImpl ); 47 Q_CREATE_INSTANCE( StockTickerPluginImpl );
46} 48}
diff --git a/noncore/todayplugins/weather/weatherpluginimpl.cpp b/noncore/todayplugins/weather/weatherpluginimpl.cpp
index 1a7c27b..fd32a44 100644
--- a/noncore/todayplugins/weather/weatherpluginimpl.cpp
+++ b/noncore/todayplugins/weather/weatherpluginimpl.cpp
@@ -42,21 +42,22 @@ WeatherPluginImpl::~WeatherPluginImpl()
42 42
43TodayPluginObject* WeatherPluginImpl::guiPart() 43TodayPluginObject* WeatherPluginImpl::guiPart()
44{ 44{
45 return weatherPlugin; 45 return weatherPlugin;
46} 46}
47 47
48QRESULT WeatherPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 48QRESULT WeatherPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
49{ 49{
50 *iface = 0; 50 *iface = 0;
51 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) 51 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) )
52 { 52 {
53 *iface = this, (*iface)->addRef(); 53 *iface = this, (*iface)->addRef();
54 } 54 }else
55 return QS_FALSE;
55 56
56 return QS_OK; 57 return QS_OK;
57} 58}
58 59
59Q_EXPORT_INTERFACE() 60Q_EXPORT_INTERFACE()
60{ 61{
61 Q_CREATE_INSTANCE( WeatherPluginImpl ); 62 Q_CREATE_INSTANCE( WeatherPluginImpl );
62} 63}