Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vt.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2003 Michael 'Mickey' Lauer.  All rights reserved.
00003 **
00004 ** Contact me @ mickeyl@handhelds.org
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 **********************************************************************/
00015 #ifndef __OPIE_VTAPPLET_H__
00016 #define __OPIE_VTAPPLET_H__
00017 
00018 #include <qpe/menuappletinterface.h>
00019 #include <qobject.h>
00020 
00021 class VTApplet : public QObject, public MenuAppletInterface
00022 {
00023 
00024     Q_OBJECT
00025 
00026 public:
00027     VTApplet ( );
00028     virtual ~VTApplet ( );
00029 
00030     QRESULT queryInterface( const QUuid&, QUnknownInterface** );
00031     Q_REFCOUNT
00032 
00033     virtual int position() const;
00034 
00035     virtual QString name ( ) const;
00036     virtual QIconSet icon ( ) const;
00037     virtual QString text ( ) const;
00038     //virtual QString tr( const char* ) const;
00039     //virtual QString tr( const char*, const char* ) const;
00040     virtual QPopupMenu *popup ( QWidget *parent ) const;
00041 
00042     virtual void activated ();
00043 
00044 public slots:
00045     virtual void changeVT( int index );
00046     virtual void updateMenu();
00047 private:
00048     mutable QPopupMenu* m_subMenu;
00049     mutable int m_ourVT;
00050 };
00051 
00052 
00053 #endif

Generated on Sat Nov 5 16:15:25 2005 for OPIE by  doxygen 1.4.2