summaryrefslogtreecommitdiff
path: root/core/applets/vmemo/vmemoimpl.cpp
Unidiff
Diffstat (limited to 'core/applets/vmemo/vmemoimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemoimpl.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/core/applets/vmemo/vmemoimpl.cpp b/core/applets/vmemo/vmemoimpl.cpp
index 9e6c7cd..ef4a3a6 100644
--- a/core/applets/vmemo/vmemoimpl.cpp
+++ b/core/applets/vmemo/vmemoimpl.cpp
@@ -1,59 +1,59 @@
1/**************************************************************************************94x78** 1/**************************************************************************************94x78**
2** 2 **
3** This file may be distributed and/or modified under the terms of the 3 ** This file may be distributed and/or modified under the terms of the
4** GNU General Public License version 2 as published by the Free Software 4 ** GNU General Public License version 2 as published by the Free Software
5** Foundation and appearing in the file LICENSE.GPL included in the 5 ** Foundation and appearing in the file LICENSE.GPL included in the
6** packaging of this file. 6 ** packaging of this file.
7** 7 **
8** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 8 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 9 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10** 10 **
11*********************************************************************************************/ 11 *********************************************************************************************/
12 12
13/* 13/*
14 * $Id$ 14 * $Id$
15 */ 15 */
16 16
17#include "vmemo.h" 17#include "vmemo.h"
18#include "vmemoimpl.h" 18#include "vmemoimpl.h"
19 19
20 20
21VMemoAppletImpl::VMemoAppletImpl() 21VMemoAppletImpl::VMemoAppletImpl()
22 : vmemo(0), ref(0) 22 : vmemo(0), ref(0)
23{ 23{
24} 24}
25 25
26VMemoAppletImpl::~VMemoAppletImpl() 26VMemoAppletImpl::~VMemoAppletImpl()
27{ 27{
28 delete vmemo; 28 delete vmemo;
29} 29}
30 30
31QWidget *VMemoAppletImpl::applet( QWidget *parent ) 31QWidget *VMemoAppletImpl::applet( QWidget *parent )
32{ 32{
33 if ( !vmemo ) 33 if ( !vmemo )
34 vmemo = new VMemo( parent ); 34 vmemo = new VMemo( parent );
35 return vmemo; 35 return vmemo;
36} 36}
37 37
38int VMemoAppletImpl::position() const 38int VMemoAppletImpl::position() const
39{ 39{
40 return 6; 40 return 6;
41} 41}
42 42
43QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 43QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
44{ 44{
45 *iface = 0; 45 *iface = 0;
46 if ( uuid == IID_QUnknown ) 46 if ( uuid == IID_QUnknown )
47 *iface = this; 47 *iface = this;
48 else if ( uuid == IID_TaskbarApplet ) 48 else if ( uuid == IID_TaskbarApplet )
49 *iface = this; 49 *iface = this;
50 50
51 if ( *iface ) 51 if ( *iface )
52 (*iface)->addRef(); 52 (*iface)->addRef();
53 return QS_OK; 53 return QS_OK;
54} 54}
55 55
56Q_EXPORT_INTERFACE() 56Q_EXPORT_INTERFACE()
57{ 57{
58 Q_CREATE_INSTANCE( VMemoAppletImpl ) 58 Q_CREATE_INSTANCE( VMemoAppletImpl )
59} 59 }