• 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
kopetestatusrootaction.h
Go to the documentation of this file.
1 /*
2  kopetestatusrootaction.h - Kopete Status Root Action
3 
4  Copyright (c) 2008 by Roman Jarosz <kedgedev@centrum.cz>
5  Kopete (c) 2008 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This library is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU Lesser General Public *
11  * License as published by the Free Software Foundation; either *
12  * version 2 of the License, or (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 #ifndef KOPETESTATUSROOTACTION_H
17 #define KOPETESTATUSROOTACTION_H
18 
19 #include <QtCore/QObject>
20 
21 #include "kopete_export.h"
22 
23 class KActionMenu;
24 class QAction;
25 
26 namespace Kopete
27 {
28  class OnlineStatus;
29  class Account;
30  class StatusMessage;
31  class StatusAction;
32 
33  namespace Status
34  {
35  class StatusItem;
36  class Status;
37  }
38 
43 class KOPETE_STATUSMENU_EXPORT StatusRootAction : public QObject
44 {
45  Q_OBJECT
46 public:
47  enum Filter { UseCategory, UseStatus, UseStatusAndCategory };
48 
56  StatusRootAction( KActionMenu* menu );
57 
68  StatusRootAction( KActionMenu* menu, Filter filter, Account *account, const OnlineStatus &onlineStatus, QAction * before = 0 );
69  ~StatusRootAction();
70 
81  static void createAccountStatusActions( Account *account , KActionMenu *parent, QAction * before = 0 );
82 
86  StatusRootAction::Filter filter() const;
87 
91  int category() const;
92 
96  OnlineStatus onlineStatus() const;
97 
103  Account *account() const;
104 
110  void setCurrentMessage( const Kopete::StatusMessage &statusMessage );
111 
112 Q_SIGNALS:
121  void updateMessage( Kopete::StatusRootAction *statusRootAction );
122 
132  void changeStatus( uint category, const Kopete::StatusMessage &statusMessage );
133 
142  void changeMessage( const Kopete::StatusMessage &statusMessage );
143 
144 protected:
145  friend class Kopete::StatusAction;
146  void changeStatus( const Kopete::Status::Status* status );
147 
148 private Q_SLOTS:
149  void rootChanged();
150 
151  void childInserted( int i, Kopete::Status::StatusItem* child );
152  void childRemoved( Kopete::Status::StatusItem* child );
153 
154  void setStatusMessage( const Kopete::StatusMessage &statusMessage );
155  void editStatuses();
156  void showEditStatusDialog();
157  void editStatusDialogFinished(int);
158 
159 private:
160  void init();
161  void insertChild( QAction * before, Status::StatusItem* child );
162 
163  class Private;
164  Private * const d;
165 };
166 
167 }
168 
169 #endif
Kopete::StatusRootAction
Definition: kopetestatusrootaction.h:43
Kopete::StatusRootAction::Filter
Filter
Definition: kopetestatusrootaction.h:47
QObject
KActionMenu
Kopete::StatusAction
Definition: kopetestatusaction.h:32
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