summaryrefslogtreecommitdiff
path: root/library/taskbarappletinterface.h
Unidiff
Diffstat (limited to 'library/taskbarappletinterface.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/taskbarappletinterface.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/library/taskbarappletinterface.h b/library/taskbarappletinterface.h
index 7e20329..705dd9a 100644
--- a/library/taskbarappletinterface.h
+++ b/library/taskbarappletinterface.h
@@ -1,41 +1,53 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of the 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 20
21#ifndef TASKBARAPPLETINTERFACE_H 21#ifndef TASKBARAPPLETINTERFACE_H
22#define TASKBARAPPLETINTERFACE_H 22#define TASKBARAPPLETINTERFACE_H
23 23
24#include <qpe/qcom.h> 24#include <qpe/qcom.h>
25#include <qpixmap.h>
25 26
26#ifndef QT_NO_COMPONENT 27#ifndef QT_NO_COMPONENT
27// {6CA34D0B-C637-4865-A667-7D4CD8A70407} 28// {6CA34D0B-C637-4865-A667-7D4CD8A70407}
28# ifndef IID_TaskbarApplet 29# ifndef IID_TaskbarApplet
29# define IID_TaskbarApplet QUuid( 0x6ca34d0b, 0xc637, 0x4865, 0xa6, 0x67, 0x7d, 0x4c, 0xd8, 0xa7, 0x04, 0x07) 30# define IID_TaskbarApplet QUuid( 0x6ca34d0b, 0xc637, 0x4865, 0xa6, 0x67, 0x7d, 0x4c, 0xd8, 0xa7, 0x04, 0x07)
30# endif 31# endif
31#endif 32#endif
32 33
33class QWidget; 34class QWidget;
34 35
35struct TaskbarAppletInterface : public QUnknownInterface 36struct TaskbarAppletInterface : public QUnknownInterface
36{ 37{
37 virtual QWidget *applet( QWidget *parent ) = 0; 38 virtual QWidget *applet( QWidget *parent ) = 0;
38 virtual int position() const = 0; 39 virtual int position() const = 0;
39}; 40};
40 41
42// {7505E192-4977-465A-B72F-0A8DD491CF43}
43#ifndef IID_TaskbarNamedApplet
44#define IID_TaskbarNamedApplet QUuid( 0x7505e192, 0x4977, 0x465a, 0xb7, 0x2f, 0x0a, 0x8d, 0xd4, 0x91, 0xcf, 0x43)
45#endif
46
47struct TaskbarNamedAppletInterface : public TaskbarAppletInterface
48{
49 virtual QString name() const = 0;
50 virtual QPixmap icon() const = 0;
51};
52
41#endif 53#endif