summaryrefslogtreecommitdiff
path: root/core/applets/vtapplet/vt.h
authormickeyl <mickeyl>2003-09-16 12:31:09 (UTC)
committer mickeyl <mickeyl>2003-09-16 12:31:09 (UTC)
commit81171716bb686e709f27fbbc0931740aa9d9462a (patch) (unidiff)
treea989e70496240fad7f3a87a72ee3c1a530be26eb /core/applets/vtapplet/vt.h
parent7338604c783a51c456fdf8d534f8da62e4383e03 (diff)
downloadopie-81171716bb686e709f27fbbc0931740aa9d9462a.zip
opie-81171716bb686e709f27fbbc0931740aa9d9462a.tar.gz
opie-81171716bb686e709f27fbbc0931740aa9d9462a.tar.bz2
virtual terminal applet says: "Hello"
Diffstat (limited to 'core/applets/vtapplet/vt.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vtapplet/vt.h53
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 @@
1/**********************************************************************
2** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved.
3**
4** Contact me @ mickeyl@handhelds.org
5**
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
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
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.
13**
14**********************************************************************/
15#ifndef __OPIE_VTAPPLET_H__
16#define __OPIE_VTAPPLET_H__
17
18#include <qpe/menuappletinterface.h>
19#include <qobject.h>
20
21class VTApplet : public QObject, public MenuAppletInterface
22{
23
24 Q_OBJECT
25
26public:
27 VTApplet ( );
28 virtual ~VTApplet ( );
29
30 QRESULT queryInterface( const QUuid&, QUnknownInterface** );
31 Q_REFCOUNT
32
33 virtual int position() const;
34
35 virtual QString name ( ) const;
36 virtual QIconSet icon ( ) const;
37 virtual QString text ( ) const;
38 //virtual QString tr( const char* ) const;
39 //virtual QString tr( const char*, const char* ) const;
40 virtual QPopupMenu *popup ( QWidget *parent ) const;
41
42 virtual void activated ();
43
44public slots:
45 virtual void changeVT( int index );
46
47private:
48 ulong ref;
49};
50
51static QPopupMenu* submenu;
52
53#endif