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

LogoutApplet Class Reference

#include </home/clem/local/src/opie/core/applets/logoutapplet/logout.h>

Inheritance diagram for LogoutApplet:

Inheritance graph
[legend]
Collaboration diagram for LogoutApplet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LogoutApplet ()
virtual ~LogoutApplet ()
QRESULT queryInterface (const QUuid &, QUnknownInterface **)
virtual Q_REFCOUNT int position () const
 the wished position of this applet
virtual QString name () const
 Translated name of the Menu Applet.
virtual QIconSet icon () const
 return a QIconSet.
virtual QString text () const
 return a Text shown to the user in the menu
virtual QString tr (const char *) const
virtual QString tr (const char *, const char *) const
virtual QPopupMenu * popup (QWidget *parent) const
 Provide a SubMenu popup if you want.
virtual void activated ()
 This method gets called once the user clicked on the item.

Constructor & Destructor Documentation

LogoutApplet::LogoutApplet  ) 
 

Definition at line 13 of file logout.cpp.

LogoutApplet::~LogoutApplet  )  [virtual]
 

Definition at line 18 of file logout.cpp.


Member Function Documentation

void LogoutApplet::activated  )  [virtual]
 

This method gets called once the user clicked on the item.

This is the way you get informed about user input. Your plugin has just been clicked

Implements MenuAppletInterface.

Definition at line 77 of file logout.cpp.

References Escape, icon(), qApp, and tr().

QIconSet LogoutApplet::icon  )  const [virtual]
 

return a QIconSet.

The returned icon set will be shown next to text(). Make use of AppLnk::smallIconSize()

Implements MenuAppletInterface.

Definition at line 47 of file logout.cpp.

References Opie::Core::OResource::loadPixmap(), pix, and Opie::Core::OResource::SmallIcon.

Referenced by activated().

QString LogoutApplet::name  )  const [virtual]
 

Translated name of the Menu Applet.

Return a translated name using QObject::tr of your plugin

Implements MenuAppletInterface.

Definition at line 27 of file logout.cpp.

References tr().

QPopupMenu * LogoutApplet::popup QWidget *  parent  )  const [virtual]
 

Provide a SubMenu popup if you want.

You can provide a Submenu popup for your item as well. If you return 0 no popup will be shown.

You can use the QPopupMenu::aboutToShow() signal to be informed before showing the popup

Parameters:
parent The parent of the to be created popup.
See also:
QPopupMenu

Implements MenuAppletInterface.

Definition at line 53 of file logout.cpp.

int LogoutApplet::position  )  const [virtual]
 

the wished position of this applet

The position where you want to be placed. 0 for the down most

Implements MenuAppletInterface.

Definition at line 22 of file logout.cpp.

QRESULT LogoutApplet::queryInterface const QUuid ,
QUnknownInterface ** 
[virtual]
 

Implements QUnknownInterface.

Definition at line 102 of file logout.cpp.

References QUnknownInterface::addRef(), IID_MenuApplet, IID_QUnknown, QS_FALSE, and QS_OK.

QString LogoutApplet::text  )  const [virtual]
 

return a Text shown to the user in the menu

Implements MenuAppletInterface.

Definition at line 32 of file logout.cpp.

References tr().

QString LogoutApplet::tr const char *  ,
const char * 
const [virtual]
 

Definition at line 42 of file logout.cpp.

References qApp.

QString LogoutApplet::tr const char *   )  const [virtual]
 

Definition at line 37 of file logout.cpp.

References qApp.

Referenced by activated(), name(), and text().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:39:09 2005 for OPIE by  doxygen 1.4.2