• 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.14
  • kdenetwork
  • kopete
  • kopete
kopetewindow.h
Go to the documentation of this file.
1 /*
2  kopetewindow.h - Kopete Main Window
3 
4  Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
5  Copyright (c) 2001-2002 by Stefan Gehn <metz AT gehn.net>
6  Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org>
7 
8  Kopete (c) 2002-2008 by the Kopete developers <kopete-devel@kde.org>
9 
10  *************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  *************************************************************************
18 */
19 
20 #ifndef KOPETEWINDOW_H
21 #define KOPETEWINDOW_H
22 
23 // Qt includes
24 #include <QtGui/QLabel>
25 
26 // KDE includes
27 #include <kxmlguiwindow.h>
28 
29 class QCloseEvent;
30 class QEvent;
31 class QShowEvent;
32 
33 class KMenu;
34 
35 namespace Kopete
36 {
37  class Identity;
38  class Account;
39  class Contact;
40  class Plugin;
41  class StatusMessage;
42  class StatusRootAction;
43 }
44 
48 class KopeteWindow : public KXmlGuiWindow
49 {
50  Q_OBJECT
51 
52 public:
53  explicit KopeteWindow ( QWidget *parent = 0 );
54  ~KopeteWindow();
55 
56  virtual bool eventFilter( QObject* o, QEvent* e );
57 
58 protected:
59  virtual void closeEvent( QCloseEvent *ev );
60  virtual void leaveEvent( QEvent* ev );
61  virtual void showEvent( QShowEvent* ev );
62  virtual void hideEvent( QHideEvent* ev );
63 
64 private slots:
65  void slotToggleShowAllOfflineEmpty( bool toggled );
66  void slotToggleShowOfflineUsers();
67  void slotToggleShowEmptyGroups();
68  void slotConfigChanged();
69  void slotConfNotifications();
70  void slotConfToolbar();
71  void slotUpdateToolbar();
72  void slotConfGlobalKeys();
73  void slotShowHide();
74  void slotToggleAway();
75  void slotNewInfoEvent();
76  void slotAppDestroyed();
77 
78  void setOnlineStatus( uint, const Kopete::StatusMessage& );
79  void setStatusMessage( const Kopete::StatusMessage& );
80 
81  void globalStatusChanged();
82 
87  void slotAutoHide();
88 
92  void slotUpdateSize();
93 
94  void slotStartAutoResizeTimer();
95 
101  void slotContactListAppearanceChanged();
102 
106  void slotGlobalAway();
107  void slotGlobalBusy();
108  void slotGlobalAvailable();
109  void slotSetInvisibleAll();
110  void slotDisconnectAll();
111 
112  void slotQuit();
113 
118  void slotPluginLoaded( Kopete::Plugin *p );
119 
125  void slotIdentityRegistered( Kopete::Identity *identity );
126 
131  void slotIdentityUnregistered( const Kopete::Identity *identity );
132 
137  void slotIdentityToolTipChanged( Kopete::Identity *identity );
138 
143  void slotIdentityStatusIconChanged( Kopete::Identity *identity );
144 
148  void slotIdentityStatusIconLeftClicked( Kopete::Identity *i,
149  const QPoint &p );
150 
151 
155  void slotAccountRegistered( Kopete::Account *account );
156 
160  void slotAccountColorChanged();
161 
165  void slotAccountUnregistered( const Kopete::Account *account );
166 
167  void slotTrayAboutToShowMenu(KMenu *);
168 
172  void showAddContactDialog( Kopete::Account * );
173 
177  void showExportDialog();
178 
184  void slotAllPluginsLoaded();
185 
189  void slotGlobalStatusMessageIconClicked( const QPoint &position );
190 
194  void slotShowInfoEventWidget();
195 
199  void slotInfoIconClicked();
200 
207  void slotAddContactDialogInternal( const QString & accountIdentifier );
208 
209  void updateStatusMenuMessage( Kopete::StatusRootAction *statusRootAction );
210 
211 private:
212  void initView();
213  void initActions();
214  void initSystray();
215  void loadOptions();
216  void saveOptions();
217 
218  void makeTrayToolTip();
219  void startAutoHideTimer();
220 
221  virtual bool queryClose();
222  virtual bool queryExit();
223 
228  bool shouldExitOnClose() const;
229 
230 private:
231  class Private;
232  Private * const d;
233 };
234 
235 
236 class GlobalStatusMessageIconLabel : public QLabel
237 {
238  Q_OBJECT
239 public:
240  GlobalStatusMessageIconLabel(QWidget *parent = 0);
241 
242 protected:
243  void mouseReleaseEvent(QMouseEvent *event);
244 
245 signals:
246  void iconClicked(const QPoint &position);
247 
248 };
249 
250 class InfoEventIconLabel : public QLabel
251 {
252  Q_OBJECT
253 public:
254  InfoEventIconLabel( QWidget *parent = 0 );
255 
256 protected:
257  void mouseReleaseEvent( QMouseEvent *event );
258 
259 signals:
260  void clicked();
261 
262 private slots:
263  void updateIcon();
264 
265 };
266 
267 #endif
268 // vim: set noet ts=4 sts=4 sw=4:
QHideEvent
QEvent
QWidget
KopeteWindow::closeEvent
virtual void closeEvent(QCloseEvent *ev)
Definition: kopetewindow.cpp:893
KopeteWindow::showEvent
virtual void showEvent(QShowEvent *ev)
Definition: kopetewindow.cpp:1306
Kopete::StatusRootAction
Definition: kopetestatusrootaction.h:43
KopeteWindow::~KopeteWindow
~KopeteWindow()
Definition: kopetewindow.cpp:567
InfoEventIconLabel::clicked
void clicked()
QPoint
QMouseEvent
InfoEventIconLabel
Definition: kopetewindow.h:250
KopeteWindow::KopeteWindow
KopeteWindow(QWidget *parent=0)
Definition: kopetewindow.cpp:256
InfoEventIconLabel::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event)
Definition: kopetewindow.cpp:145
QCloseEvent
QLabel::event
virtual bool event(QEvent *e)
KopeteWindow::leaveEvent
virtual void leaveEvent(QEvent *ev)
Definition: kopetewindow.cpp:1301
KXmlGuiWindow
QShowEvent
QObject
QString
KopeteWindow::hideEvent
virtual void hideEvent(QHideEvent *ev)
Definition: kopetewindow.cpp:1312
InfoEventIconLabel::InfoEventIconLabel
InfoEventIconLabel(QWidget *parent=0)
Definition: kopetewindow.cpp:134
GlobalStatusMessageIconLabel
Definition: kopetewindow.h:236
KopeteWindow::eventFilter
virtual bool eventFilter(QObject *o, QEvent *e)
Definition: kopetewindow.cpp:572
KopeteWindow
Definition: kopetewindow.h:48
GlobalStatusMessageIconLabel::GlobalStatusMessageIconLabel
GlobalStatusMessageIconLabel(QWidget *parent=0)
Definition: kopetewindow.cpp:114
GlobalStatusMessageIconLabel::iconClicked
void iconClicked(const QPoint &position)
QLabel
GlobalStatusMessageIconLabel::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event)
Definition: kopetewindow.cpp:123
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 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