author | llornkcor <llornkcor> | 2002-02-09 02:39:31 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-09 02:39:31 (UTC) |
commit | b440f07b1f20877618e33248a65bf069150d72c4 (patch) (unidiff) | |
tree | 3da94d49fdf05f464e797b83545bb4f7b6c90253 | |
parent | eca8d68c7cbc82b11879f03e0b6b4a5894cbe435 (diff) | |
download | opie-b440f07b1f20877618e33248a65bf069150d72c4.zip opie-b440f07b1f20877618e33248a65bf069150d72c4.tar.gz opie-b440f07b1f20877618e33248a65bf069150d72c4.tar.bz2 |
whoops.. took out a few volume references
-rw-r--r-- | core/applets/screenshotapplet/screenshotapplet.pro | 4 | ||||
-rw-r--r-- | core/applets/screenshotapplet/screenshotappletimpl.cpp | 10 | ||||
-rw-r--r-- | core/applets/screenshotapplet/screenshotappletimpl.h | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/core/applets/screenshotapplet/screenshotapplet.pro b/core/applets/screenshotapplet/screenshotapplet.pro index 095cce2..bec49b7 100644 --- a/core/applets/screenshotapplet/screenshotapplet.pro +++ b/core/applets/screenshotapplet/screenshotapplet.pro | |||
@@ -1,13 +1,13 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | HEADERS = screenshot.h screenshotappletimpl.h | 3 | HEADERS = screenshot.h screenshotappletimpl.h |
4 | SOURCES = screenshot.cpp screenshotappletimpl.cpp | 4 | SOURCES = screenshot.cpp screenshotappletimpl.cpp |
5 | TARGET = screenshotapplet | 5 | TARGET = screenshotapplet |
6 | DESTDIR = ../../plugins/applets | 6 | DESTDIR = ../../plugins/applets |
7 | INCLUDEPATH += $(OPIEDIR)/include | 7 | INCLUDEPATH += $(QPEDIR)/include |
8 | DEPENDPATH += ../$(OPIEDIR)/include | 8 | DEPENDPATH += ../$(QPEDIR)/include |
9 | LIBS += -lqpe | 9 | LIBS += -lqpe |
10 | VERSION = 1.0.0 | 10 | VERSION = 1.0.0 |
11 | MOC_DIR=opieobj | 11 | MOC_DIR=opieobj |
12 | OBJECTS_DIR=opieobj | 12 | OBJECTS_DIR=opieobj |
13 | 13 | ||
diff --git a/core/applets/screenshotapplet/screenshotappletimpl.cpp b/core/applets/screenshotapplet/screenshotappletimpl.cpp index f1a9827..a537162 100644 --- a/core/applets/screenshotapplet/screenshotappletimpl.cpp +++ b/core/applets/screenshotapplet/screenshotappletimpl.cpp | |||
@@ -1,64 +1,64 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "screenshot.h" | 20 | #include "screenshot.h" |
21 | #include "screenshotappletimpl.h" | 21 | #include "screenshotappletimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | ScreenshotAppletImpl::ScreenshotAppletImpl() | 24 | ScreenshotAppletImpl::ScreenshotAppletImpl() |
25 | : volume(0), ref(0) | 25 | : screenshot(0), ref(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | ScreenshotAppletImpl::~ScreenshotAppletImpl() | 29 | ScreenshotAppletImpl::~ScreenshotAppletImpl() |
30 | { | 30 | { |
31 | delete volume; | 31 | delete screenshot; |
32 | } | 32 | } |
33 | 33 | ||
34 | QWidget *ScreenshotAppletImpl::applet( QWidget *parent ) | 34 | QWidget *ScreenshotAppletImpl::applet( QWidget *parent ) |
35 | { | 35 | { |
36 | if ( !volume ) | 36 | if ( !screenshot ) |
37 | volume = new ScreenshotApplet( parent ); | 37 | screenshot = new ScreenshotApplet( parent ); |
38 | return volume; | 38 | return screenshot; |
39 | } | 39 | } |
40 | 40 | ||
41 | int ScreenshotAppletImpl::position() const | 41 | int ScreenshotAppletImpl::position() const |
42 | { | 42 | { |
43 | return 6; | 43 | return 6; |
44 | } | 44 | } |
45 | 45 | ||
46 | QRESULT ScreenshotAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 46 | QRESULT ScreenshotAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
47 | { | 47 | { |
48 | *iface = 0; | 48 | *iface = 0; |
49 | if ( uuid == IID_QUnknown ) | 49 | if ( uuid == IID_QUnknown ) |
50 | *iface = this; | 50 | *iface = this; |
51 | else if ( uuid == IID_TaskbarApplet ) | 51 | else if ( uuid == IID_TaskbarApplet ) |
52 | *iface = this; | 52 | *iface = this; |
53 | 53 | ||
54 | if ( *iface ) | 54 | if ( *iface ) |
55 | (*iface)->addRef(); | 55 | (*iface)->addRef(); |
56 | return QS_OK; | 56 | return QS_OK; |
57 | } | 57 | } |
58 | 58 | ||
59 | Q_EXPORT_INTERFACE() | 59 | Q_EXPORT_INTERFACE() |
60 | { | 60 | { |
61 | Q_CREATE_INSTANCE( ScreenshotAppletImpl ) | 61 | Q_CREATE_INSTANCE( ScreenshotAppletImpl ) |
62 | } | 62 | } |
63 | 63 | ||
64 | 64 | ||
diff --git a/core/applets/screenshotapplet/screenshotappletimpl.h b/core/applets/screenshotapplet/screenshotappletimpl.h index deca7a9..00661a5 100644 --- a/core/applets/screenshotapplet/screenshotappletimpl.h +++ b/core/applets/screenshotapplet/screenshotappletimpl.h | |||
@@ -8,37 +8,37 @@ | |||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef SCREENSHOTAPPLETIMPL_H | 20 | #ifndef SCREENSHOTAPPLETIMPL_H |
21 | #define SCREENSHOTAPPLETIMPL_H | 21 | #define SCREENSHOTAPPLETIMPL_H |
22 | 22 | ||
23 | #include <qpe/taskbarappletinterface.h> | 23 | #include <qpe/taskbarappletinterface.h> |
24 | 24 | ||
25 | class ScreenshotApplet; | 25 | class ScreenshotApplet; |
26 | 26 | ||
27 | class ScreenshotAppletImpl : public TaskbarAppletInterface | 27 | class ScreenshotAppletImpl : public TaskbarAppletInterface |
28 | { | 28 | { |
29 | public: | 29 | public: |
30 | ScreenshotAppletImpl(); | 30 | ScreenshotAppletImpl(); |
31 | virtual ~ScreenshotAppletImpl(); | 31 | virtual ~ScreenshotAppletImpl(); |
32 | 32 | ||
33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
34 | Q_REFCOUNT | 34 | Q_REFCOUNT |
35 | 35 | ||
36 | virtual QWidget *applet( QWidget *parent ); | 36 | virtual QWidget *applet( QWidget *parent ); |
37 | virtual int position() const; | 37 | virtual int position() const; |
38 | 38 | ||
39 | private: | 39 | private: |
40 | ScreenshotApplet *volume; | 40 | ScreenshotApplet *screenshot; |
41 | ulong ref; | 41 | ulong ref; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | #endif | 44 | #endif |