Logo Search packages:      
Sourcecode: kmess version File versions  Download package

accountaction.h

/***************************************************************************
                          accountaction.h  -  description
                             -------------------
    begin                : Tue Oct 22 2002
    copyright            : (C) 2002 by Mike K. Bennett
    email                : mkb137b@hotmail.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef ACCOUNTACTION_H
#define ACCOUNTACTION_H

#include <kaction.h>

// Forward declarations
class Account;

/**An action menu for an account that gives an account object when
    activated and can update its text when the account changes.

  *@author Mike K. Bennett
  */

00032 class AccountAction : public KAction
{
   Q_OBJECT

  public:
    // The constructor
      AccountAction(Account *account, QWidget *parent=0, const char *name=0);
    // The destructor
      ~AccountAction();

  protected slots:
    //Inherit from KAction...
    void           slotActivated();

  private: // Private attributes
    // The stored user account
    Account       *account_;

  private slots: // Private slots
    // Update the action's text based on the account.
    void           updateText();

  signals:
    void           activated( Account *account );
};

#endif

Generated by  Doxygen 1.6.0   Back to index