• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.12
  • kdenetwork
  • kopete
  • kopete
  • statusmenu
kopeteonlinestatusaction.cpp
Go to the documentation of this file.
1 /*
2  kopeteonlinestatusmanager.cpp
3 
4  Copyright (c) 2004 by Olivier Goffart <ogoffart@kde.fr>
5  Copyright (c) 2003 by Will Stephenson <wstephenson@kde.org>
6 
7  Kopete (c) 2003-2008 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2 of the License, or (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 
19 #include "kopeteonlinestatusaction.h"
20 
21 #include <kopeteonlinestatus.h>
22 
23 namespace Kopete {
24 
25 class OnlineStatusAction::Private
26 {
27 public:
28  Private( const OnlineStatus& t_status )
29  : status(t_status)
30  {}
31 
32  OnlineStatus status;
33 };
34 
35 OnlineStatusAction::OnlineStatusAction( const OnlineStatus& status, const QString &text, const QIcon &pix, QObject *parent )
36  : KAction( KIcon(pix), text, parent) , d( new Private(status) )
37 {
38  setShortcut( KShortcut() );
39 
40  connect(this, SIGNAL(triggered(bool)), this, SLOT(slotActivated()));
41 
42  connect(parent,SIGNAL(destroyed()),this,SLOT(deleteLater()));
43 }
44 
45 OnlineStatusAction::~OnlineStatusAction()
46 {
47  delete d;
48 }
49 
50 void OnlineStatusAction::slotActivated()
51 {
52  emit activated(d->status);
53 }
54 
55 
56 } //END namespace Kopete
57 
58 #include "kopeteonlinestatusaction.moc"
59 
60 // vim: set noet ts=4 sts=4 sw=4:
61 
QObject
Kopete::OnlineStatusAction::~OnlineStatusAction
~OnlineStatusAction()
Definition: kopeteonlinestatusaction.cpp:45
Kopete::OnlineStatusAction::activated
void activated(const Kopete::OnlineStatus &status)
KAction
kopeteonlinestatusaction.h
Kopete::OnlineStatusAction::OnlineStatusAction
OnlineStatusAction(const OnlineStatus &status, const QString &text, const QIcon &pix, QObject *parent)
Definition: kopeteonlinestatusaction.cpp:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal