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

rotate.h

Go to the documentation of this file.
00001 /*
00002                =.            This file is part of the OPIE Project
00003              .=l.            Copyright (c)  2003 Maximilian Reiss <harlekin@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                                                                                        
00030 
00031 #ifndef __OPIE_ROTATE_APPLET_H__
00032 #define __OPIE_ROTATE_APPLET_H__
00033 
00034 #include <qpe/menuappletinterface.h>
00035 #include <qobject.h>
00036 
00037 
00038 class RotateApplet : public QObject, public MenuAppletInterface
00039 {
00040 
00041     Q_OBJECT
00042 
00043 public:
00044     RotateApplet ( );
00045     virtual ~RotateApplet ( );
00046 
00047     QRESULT queryInterface( const QUuid&, QUnknownInterface** );
00048     Q_REFCOUNT
00049 
00050     virtual int position() const;
00051     
00052     virtual QString name ( ) const;
00053     virtual QIconSet icon ( ) const;
00054     virtual QString text ( ) const;
00055     /* virtual QString tr( const char* ) const;
00056     virtual QString tr( const char*, const char* ) const;
00057     */
00058     virtual QPopupMenu *popup ( QWidget *parent ) const;
00059     virtual void activated ( );
00060     virtual void rotateDefault ( );
00061 
00062 private slots:
00063     void channelReceived( const QCString &msg, const QByteArray & data );
00064 
00065 private:
00066     bool m_flipped : 1;
00067 
00068 };
00069 
00070 #endif

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