author | llornkcor <llornkcor> | 2002-02-14 01:39:21 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-14 01:39:21 (UTC) |
commit | a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2 (patch) (unidiff) | |
tree | 4119fd1cccfa4c5fa8bd865ff25f2c66103da2f1 /core/applets/vmemo/vmemoimpl.cpp | |
parent | d804cef9c9ef7f5c4831370cead1392b64a17579 (diff) | |
download | opie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.zip opie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.tar.gz opie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.tar.bz2 |
ok.. now i REALLY moved vmemo..
Diffstat (limited to 'core/applets/vmemo/vmemoimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/vmemo/vmemoimpl.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/core/applets/vmemo/vmemoimpl.cpp b/core/applets/vmemo/vmemoimpl.cpp new file mode 100644 index 0000000..9e6c7cd --- a/dev/null +++ b/core/applets/vmemo/vmemoimpl.cpp | |||
@@ -0,0 +1,59 @@ | |||
1 | /**************************************************************************************94x78** | ||
2 | ** | ||
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 | ||
5 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
6 | ** packaging of this file. | ||
7 | ** | ||
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. | ||
10 | ** | ||
11 | *********************************************************************************************/ | ||
12 | |||
13 | /* | ||
14 | * $Id$ | ||
15 | */ | ||
16 | |||
17 | #include "vmemo.h" | ||
18 | #include "vmemoimpl.h" | ||
19 | |||
20 | |||
21 | VMemoAppletImpl::VMemoAppletImpl() | ||
22 | : vmemo(0), ref(0) | ||
23 | { | ||
24 | } | ||
25 | |||
26 | VMemoAppletImpl::~VMemoAppletImpl() | ||
27 | { | ||
28 | delete vmemo; | ||
29 | } | ||
30 | |||
31 | QWidget *VMemoAppletImpl::applet( QWidget *parent ) | ||
32 | { | ||
33 | if ( !vmemo ) | ||
34 | vmemo = new VMemo( parent ); | ||
35 | return vmemo; | ||
36 | } | ||
37 | |||
38 | int VMemoAppletImpl::position() const | ||
39 | { | ||
40 | return 6; | ||
41 | } | ||
42 | |||
43 | QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | ||
44 | { | ||
45 | *iface = 0; | ||
46 | if ( uuid == IID_QUnknown ) | ||
47 | *iface = this; | ||
48 | else if ( uuid == IID_TaskbarApplet ) | ||
49 | *iface = this; | ||
50 | |||
51 | if ( *iface ) | ||
52 | (*iface)->addRef(); | ||
53 | return QS_OK; | ||
54 | } | ||
55 | |||
56 | Q_EXPORT_INTERFACE() | ||
57 | { | ||
58 | Q_CREATE_INSTANCE( VMemoAppletImpl ) | ||
59 | } | ||