author | mickeyl <mickeyl> | 2003-09-16 12:31:09 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-09-16 12:31:09 (UTC) |
commit | 81171716bb686e709f27fbbc0931740aa9d9462a (patch) (side-by-side diff) | |
tree | a989e70496240fad7f3a87a72ee3c1a530be26eb /core/applets/vtapplet/vt.h | |
parent | 7338604c783a51c456fdf8d534f8da62e4383e03 (diff) | |
download | opie-81171716bb686e709f27fbbc0931740aa9d9462a.zip opie-81171716bb686e709f27fbbc0931740aa9d9462a.tar.gz opie-81171716bb686e709f27fbbc0931740aa9d9462a.tar.bz2 |
virtual terminal applet says: "Hello"
-rw-r--r-- | core/applets/vtapplet/vt.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/core/applets/vtapplet/vt.h b/core/applets/vtapplet/vt.h new file mode 100644 index 0000000..2df9791 --- a/dev/null +++ b/core/applets/vtapplet/vt.h @@ -0,0 +1,53 @@ +/********************************************************************** +** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved. +** +** Contact me @ mickeyl@handhelds.org +** +** This file may be distributed and/or modified under the terms of the +** GNU General Public License version 2 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +**********************************************************************/ +#ifndef __OPIE_VTAPPLET_H__ +#define __OPIE_VTAPPLET_H__ + +#include <qpe/menuappletinterface.h> +#include <qobject.h> + +class VTApplet : public QObject, public MenuAppletInterface +{ + + Q_OBJECT + +public: + VTApplet ( ); + virtual ~VTApplet ( ); + + QRESULT queryInterface( const QUuid&, QUnknownInterface** ); + Q_REFCOUNT + + virtual int position() const; + + virtual QString name ( ) const; + virtual QIconSet icon ( ) const; + virtual QString text ( ) const; + //virtual QString tr( const char* ) const; + //virtual QString tr( const char*, const char* ) const; + virtual QPopupMenu *popup ( QWidget *parent ) const; + + virtual void activated (); + +public slots: + virtual void changeVT( int index ); + +private: + ulong ref; +}; + +static QPopupMenu* submenu; + +#endif |