author | zecke <zecke> | 2004-02-05 17:43:45 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-05 17:43:45 (UTC) |
commit | c5db70388cbe21934d4e3b2df3e8c8c1d9807d41 (patch) (side-by-side diff) | |
tree | 5ec39d9114a60dac06c58e2bcf700f8d0b9a4345 | |
parent | c79bbb6696edf7539ebeda64092f3f91f65ba500 (diff) | |
download | opie-c5db70388cbe21934d4e3b2df3e8c8c1d9807d41.zip opie-c5db70388cbe21934d4e3b2df3e8c8c1d9807d41.tar.gz opie-c5db70388cbe21934d4e3b2df3e8c8c1d9807d41.tar.bz2 |
Janitor: ulong ref removed
8 files changed, 4 insertions, 8 deletions
diff --git a/noncore/applets/autorotateapplet/autorotateimpl.cpp b/noncore/applets/autorotateapplet/autorotateimpl.cpp index 1b15c6d..305ac50 100644 --- a/noncore/applets/autorotateapplet/autorotateimpl.cpp +++ b/noncore/applets/autorotateapplet/autorotateimpl.cpp @@ -1,42 +1,42 @@ #include "autorotate.h" #include "autorotateimpl.h" AutoRotateImpl::AutoRotateImpl() - : autoRotate(0), ref(0) { + : autoRotate(0){ qDebug ("here"); } AutoRotateImpl::~AutoRotateImpl() { delete autoRotate; } QWidget *AutoRotateImpl::applet( QWidget *parent ) { if ( !autoRotate ) { autoRotate = new AutoRotate( parent ); } return autoRotate; } int AutoRotateImpl::position() const { return 7; } QRESULT AutoRotateImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) { *iface = this; } else if ( uuid == IID_TaskbarApplet ) { *iface = this; } else return QS_FALSE; if ( *iface ) { (*iface)->addRef(); } return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( AutoRotateImpl ) } diff --git a/noncore/applets/autorotateapplet/autorotateimpl.h b/noncore/applets/autorotateapplet/autorotateimpl.h index 87b0731..fde23a9 100644 --- a/noncore/applets/autorotateapplet/autorotateimpl.h +++ b/noncore/applets/autorotateapplet/autorotateimpl.h @@ -1,19 +1,18 @@ #include <qpe/taskbarappletinterface.h> class AutoRotate; class AutoRotateImpl : public TaskbarAppletInterface { public: AutoRotateImpl(); virtual ~AutoRotateImpl(); QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT virtual QWidget *applet( QWidget *parent ); virtual int position() const; private: AutoRotate *autoRotate; - ulong ref; }; diff --git a/noncore/applets/memoryapplet/memoryappletimpl.cpp b/noncore/applets/memoryapplet/memoryappletimpl.cpp index a57f4a9..a117e7f 100644 --- a/noncore/applets/memoryapplet/memoryappletimpl.cpp +++ b/noncore/applets/memoryapplet/memoryappletimpl.cpp @@ -1,65 +1,65 @@ /********************************************************************** ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. ** ** This file is part of the Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "memorymeter.h" #include "memoryappletimpl.h" MemoryAppletImpl::MemoryAppletImpl() - : memory(0), ref(0) + : memory(0) { } MemoryAppletImpl::~MemoryAppletImpl() { delete memory; } QWidget *MemoryAppletImpl::applet( QWidget *parent ) { if ( !memory ) memory = new MemoryMeter( parent ); return memory; } int MemoryAppletImpl::position() const { return 8; } QRESULT MemoryAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_TaskbarApplet ) *iface = this; else return QS_FALSE; (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( MemoryAppletImpl ) } diff --git a/noncore/applets/memoryapplet/memoryappletimpl.h b/noncore/applets/memoryapplet/memoryappletimpl.h index e0016e1..2db7dbe 100644 --- a/noncore/applets/memoryapplet/memoryappletimpl.h +++ b/noncore/applets/memoryapplet/memoryappletimpl.h @@ -1,44 +1,43 @@ /********************************************************************** ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. ** ** This file is part of the Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #ifndef MEMORYAPPLETIMPL_H #define MEMORYAPPLETIMPL_H #include <qtopia/taskbarappletinterface.h> class MemoryMeter; class /*QTOPIA_PLUGIN_EXPORT*/ MemoryAppletImpl : public TaskbarAppletInterface { public: MemoryAppletImpl(); virtual ~MemoryAppletImpl(); QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT virtual QWidget *applet( QWidget *parent ); virtual int position() const; private: MemoryMeter *memory; - ulong ref; }; #endif diff --git a/noncore/applets/notesapplet/notesappletimpl.cpp b/noncore/applets/notesapplet/notesappletimpl.cpp index 93de433..8a9da7f 100644 --- a/noncore/applets/notesapplet/notesappletimpl.cpp +++ b/noncore/applets/notesapplet/notesappletimpl.cpp @@ -1,53 +1,53 @@ /********************************************************************** ** Copyright (C) 2002 L.J. Potter <llornkcor@handhelds.org> ** ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** **********************************************************************/ #include "notes.h" #include "notesappletimpl.h" NotesAppletImpl::NotesAppletImpl() - : notes(0), ref(0) { + : notes(0){ } NotesAppletImpl::~NotesAppletImpl() { // not needed though cause we should have a valid parent delete notes; } QWidget *NotesAppletImpl::applet( QWidget *parent ) { if ( !notes ) notes = new NotesApplet( parent ); return notes; } int NotesAppletImpl::position() const { return 6; } QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_TaskbarApplet ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( NotesAppletImpl ) } diff --git a/noncore/applets/notesapplet/notesappletimpl.h b/noncore/applets/notesapplet/notesappletimpl.h index add9865..a87118c 100644 --- a/noncore/applets/notesapplet/notesappletimpl.h +++ b/noncore/applets/notesapplet/notesappletimpl.h @@ -1,36 +1,35 @@ /********************************************************************** ** Copyright (C) 2002 L.J. Potter <llornkcor@handhelds.org> ** ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** **********************************************************************/ #ifndef NOTESAPPLETIMPL_H #define NOTESAPPLETIMPL_H #include <qpe/taskbarappletinterface.h> class NotesApplet; class NotesAppletImpl : public TaskbarAppletInterface { public: NotesAppletImpl(); virtual ~NotesAppletImpl(); QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT virtual QWidget *applet( QWidget *parent ); virtual int position() const; private: NotesApplet *notes; - ulong ref; }; #endif diff --git a/noncore/applets/wirelessapplet/wirelessappletimpl.cpp b/noncore/applets/wirelessapplet/wirelessappletimpl.cpp index 8b7afcf..de70714 100644 --- a/noncore/applets/wirelessapplet/wirelessappletimpl.cpp +++ b/noncore/applets/wirelessapplet/wirelessappletimpl.cpp @@ -1,66 +1,66 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** ** This file is part of Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "wireless.h" #include "wirelessappletimpl.h" WirelessAppletImpl::WirelessAppletImpl() - : wireless(0), ref(0) + : wireless(0) { } WirelessAppletImpl::~WirelessAppletImpl() { delete wireless; } QWidget *WirelessAppletImpl::applet( QWidget *parent ) { if ( !wireless ) wireless = new WirelessApplet( parent ); return wireless; } int WirelessAppletImpl::position() const { return 6; } QRESULT WirelessAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_TaskbarApplet ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( WirelessAppletImpl ) } diff --git a/noncore/applets/wirelessapplet/wirelessappletimpl.h b/noncore/applets/wirelessapplet/wirelessappletimpl.h index 7008d51..1bf4507 100644 --- a/noncore/applets/wirelessapplet/wirelessappletimpl.h +++ b/noncore/applets/wirelessapplet/wirelessappletimpl.h @@ -1,44 +1,43 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** ** This file is part of Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #ifndef WIRELESSAPPLETIMPL_H #define WIRELESSAPPLETIMPL_H #include <qpe/taskbarappletinterface.h> class WirelessApplet; class WirelessAppletImpl : public TaskbarAppletInterface { public: WirelessAppletImpl(); virtual ~WirelessAppletImpl(); QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT virtual QWidget *applet( QWidget *parent ); virtual int position() const; private: WirelessApplet *wireless; - ulong ref; }; #endif |