menuappletinterface.h
00001 /* 00002 =. This file is part of the OPIE Project 00003 .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> 00004 .>+-= 00005 _;:, .> :=|. This library is free software; you can 00006 .> <`_, > . <= redistribute it and/or modify it under 00007 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00008 .="- .-=="i, .._ License as published by the Free Software 00009 - . .-<_> .<> Foundation; either version 2 of the License, 00010 ._= =} : or (at your option) any later version. 00011 .%`+i> _;_. 00012 .i_,=:_. -<s. This library is distributed in the hope that 00013 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00014 : .. .:, . . . without even the implied warranty of 00015 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00016 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00017 ..}^=.= = ; Library General Public License for more 00018 ++= -. .` .: details. 00019 : = ...= . :.=- 00020 -. .:....=;==+<; You should have received a copy of the GNU 00021 -_. . . )=. = Library General Public License along with 00022 -- :-=` this library; see the file COPYING.LIB. 00023 If not, write to the Free Software Foundation, 00024 Inc., 59 Temple Place - Suite 330, 00025 Boston, MA 02111-1307, USA. 00026 00027 */ 00028 00029 #ifndef MENUAPPLETINTERFACE_H 00030 #define MENUAPPLETINTERFACE_H 00031 00032 #include <qpe/qcom.h> 00033 #include <qiconset.h> 00034 00035 #ifndef QT_NO_COMPONENT 00036 // {9bb81198-3061-46fc-a7bd-d14cd065836d} 00037 # ifndef IID_MenuApplet 00038 # define IID_MenuApplet QUuid(0x9bb81198, 0x3061, 0x46fc, 0xa7, 0xbd, 0xd1, 0x4c, 0xd0, 0x65, 0x83, 0x6d) 00039 # endif 00040 #endif 00041 00042 class QPopupMenu; 00043 00044 struct MenuAppletInterface : public QUnknownInterface 00045 { 00046 virtual QString name ( ) const = 0; 00047 00048 virtual int position ( ) const = 0; 00049 virtual QIconSet icon ( ) const = 0; 00050 virtual QString text ( ) const = 0; 00051 00052 virtual QPopupMenu *popup ( QWidget *parent ) const = 0; 00053 00054 // callback for popup() == 0 00055 virtual void activated ( ) = 0; 00056 }; 00057 00058 #endif
