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,30 +1,30 @@ #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; 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,48 +1,48 @@ /********************************************************************** ** 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; 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 @@ -17,28 +17,27 @@ ** 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,41 +1,41 @@ /********************************************************************** ** 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 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 @@ -9,28 +9,27 @@ ** ** **********************************************************************/ #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,49 +1,49 @@ /********************************************************************** ** 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 ) 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 @@ -17,28 +17,27 @@ ** 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 |